Class PotionFluidVolume
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.PotionFluidVolume
- 
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
BASE_UNIT, BOTTLE, BUCKET, DESERIALIZER, fluidKey - 
Constructor Summary
ConstructorsConstructorDescriptionPotionFluidVolume(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 Summary
Modifier 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.FluidVolume
addFullTooltip, 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
 - 
PotionFluidVolume
public PotionFluidVolume(PotionFluidKey key, com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException - Throws:
 com.google.gson.JsonSyntaxException
 
 - 
 - 
Method Details
- 
getPotion
public net.minecraft.potion.Potion getPotion() - 
getFluidKey
- Overrides:
 getFluidKeyin classFluidVolume- 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 classFluidVolume
 - 
getRenderer
Description copied from class:FluidVolumeReturns theFluidVolumeRendererto use for rendering this fluid.- Overrides:
 getRendererin classFluidVolume
 
 - 
 
FluidVolume.getFullTooltip().