Class PotionFluidVolume
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.PotionFluidVolume
public final class PotionFluidVolume extends FluidVolume
-
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
BASE_UNIT, BOTTLE, BUCKET, DESERIALIZER, fluidKey -
Constructor Summary
Constructors Constructor Description PotionFluidVolume(PotionFluidKey key, int amount)Deprecated.PotionFluidVolume(PotionFluidKey key, FluidAmount amount)PotionFluidVolume(PotionFluidKey key, com.google.gson.JsonObject json)PotionFluidVolume(PotionFluidKey key, net.minecraft.nbt.CompoundTag tag) -
Method Summary
Modifier and Type Method Description PotionFluidKeygetFluidKey()net.minecraft.potion.PotiongetPotion()FluidVolumeRenderergetRenderer()Returns theFluidVolumeRendererto use for rendering this fluid.java.util.List<net.minecraft.text.Text>getTooltipText(net.minecraft.client.item.TooltipContext ctx)Deprecated.Replaced byFluidVolume.getFullTooltip().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. -
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 public java.util.List<net.minecraft.text.Text> getTooltipText(net.minecraft.client.item.TooltipContext ctx)Deprecated.Replaced byFluidVolume.getFullTooltip().- Overrides:
getTooltipTextin classFluidVolume
-
getRenderer
Description copied from class:FluidVolumeReturns theFluidVolumeRendererto use for rendering this fluid.- Overrides:
getRendererin classFluidVolume
-