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 PotionFluidKey
getFluidKey()
net.minecraft.potion.Potion
getPotion()
FluidVolumeRenderer
getRenderer()
Returns theFluidVolumeRenderer
to 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:
getFluidKey
in classFluidVolume
- Returns:
- The
FluidKey
for 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:
getTooltipText
in classFluidVolume
-
getRenderer
Description copied from class:FluidVolume
Returns theFluidVolumeRenderer
to use for rendering this fluid.- Overrides:
getRenderer
in classFluidVolume
-