Class PotionFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.PotionFluidKey
public final class PotionFluidKey extends FluidKey
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder -
Field Summary
Fields Modifier and Type Field Description static net.minecraft.util.IdentifierFLOWING_POTION_TEXTUREnet.minecraft.potion.Potionpotionstatic net.minecraft.util.IdentifierPOTION_TEXTUREFields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
cohesion, DEFAULT_GAS_COHESION, DEFAULT_GAS_DENSITY, DEFAULT_GAS_VISCOSITY, density, DESERIALIZER, entry, exactFilter, flowingSpriteId, gaseous, luminosity, name, netherCohesion, netherViscosity, renderColor, spriteId, thermalCapacity, unit, unitSet, viscosity -
Method Summary
Modifier and Type Method Description voidaddTooltipExtras(FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Add extra data to the tooltip.PotionFluidVolumereadVolume(com.google.gson.JsonObject json)PotionFluidVolumereadVolume(net.minecraft.nbt.CompoundTag tag)PotionFluidVolumewithAmount(int amount)Deprecated.Replaced bywithAmount(FluidAmount).PotionFluidVolumewithAmount(FluidAmount amount)Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
addFullTooltip, addTooltipExtras, addTooltipProperties, addTooltipProperties, addTooltipTemperature, createFromMcBuffer, equals, forceRegisterProperty, fromJson, fromMcBuffer, fromTag, fromWorld, getFullTooltip, getFullTooltip, getProperties, getRawFluid, getTemperature, hashCode, isEmpty, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty
-
Field Details
-
POTION_TEXTURE
public static final net.minecraft.util.Identifier POTION_TEXTURE -
FLOWING_POTION_TEXTURE
public static final net.minecraft.util.Identifier FLOWING_POTION_TEXTURE -
potion
public final net.minecraft.potion.Potion potion
-
-
Method Details
-
readVolume
- Specified by:
readVolumein classFluidKey
-
readVolume
public PotionFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolumein classFluidKey- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
Deprecated.Replaced bywithAmount(FluidAmount).- Overrides:
withAmountin classFluidKey
-
withAmount
- Overrides:
withAmountin classFluidKey
-
addTooltipExtras
public void addTooltipExtras(FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Description copied from class:FluidKeyAdd extra data to the tooltip.- Overrides:
addTooltipExtrasin classFluidKey
-