Class PotionFluidVolume
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.PotionFluidVolume
- 
Field SummaryFields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolumeBASE_UNIT, BOTTLE, BUCKET, DESERIALIZER, fluidKey
- 
Constructor SummaryConstructorsConstructorDescriptionPotionFluidVolume(PotionFluidKey key, int amount)Deprecated, for removal: This API element is subject to removal in a future version.PotionFluidVolume(PotionFluidKey key, FluidAmount amount)PotionFluidVolume(PotionFluidKey key, com.google.gson.JsonObject json)PotionFluidVolume(PotionFluidKey key, net.minecraft.nbt.NbtCompound tag)
- 
Method SummaryModifier and TypeMethodDescriptionnet.minecraft.potion.PotionReturns theFluidVolumeRendererto use for rendering this fluid.List<net.minecraft.text.Text>getTooltipText(net.minecraft.client.item.TooltipContext ctx)Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolumeaddFullTooltip, addFullTooltip, addFullTooltip, addTooltipExtras, addTooltipNameAmount, addTooltipProperties, addTooltipTemperature, amount, areEqualExceptAmounts, areFullyEqual, canMerge, copy, copy0, create, create, create, equals, fromJson, fromMcBuffer, fromMcBufferInternal, fromTag, getAmount, getAmount_F, getFlowingSprite, getFullTooltip, getFullTooltip, getFullTooltip, getName, getProperty, getRawAmount, getRawAmount_F, getRawFluid, getRenderColor, getSprite, getStillSprite, hashCode, isEmpty, localizeAmount, localizeAmount, localizeInTank, localizeInTank, merge, merge, merge, merge, merge0, mergeInternal, mergeInto, mergeInto, mergeInto, multiplyAmount, parseAmount, render, renderGuiRect, setAmount, setAmount, setProperty, split, split, split, split0, toJson, toMcBuffer, toMcBufferInternal, toString, toTag, toTag, withAmount
- 
Constructor Details- 
PotionFluidVolume@Deprecated(since="0.6.0", forRemoval=true) public PotionFluidVolume(PotionFluidKey key, int amount)Deprecated, for removal: This API element is subject to removal in a future version.
- 
PotionFluidVolume
- 
PotionFluidVolume
- 
PotionFluidVolumepublic PotionFluidVolume(PotionFluidKey key, com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Throws:
- com.google.gson.JsonSyntaxException
 
 
- 
- 
Method Details- 
getPotionpublic net.minecraft.potion.Potion getPotion()
- 
getFluidKey- Overrides:
- getFluidKeyin class- FluidVolume
- Returns:
- The FluidKeyfor this volume. Subclasses may override this to use a return type for their key class.
 
- 
getTooltipText@Environment(CLIENT) @Deprecated(since="0.7.0", forRemoval=true) public List<net.minecraft.text.Text> getTooltipText(net.minecraft.client.item.TooltipContext ctx)Deprecated, for removal: This API element is subject to removal in a future version.Replaced byFluidVolume.getFullTooltip().- Overrides:
- getTooltipTextin class- FluidVolume
 
- 
getRendererDescription copied from class:FluidVolumeReturns theFluidVolumeRendererto use for rendering this fluid.- Overrides:
- getRendererin class- FluidVolume
 
 
- 
FluidVolume.getFullTooltip().