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.Identifier
FLOWING_POTION_TEXTURE
net.minecraft.potion.Potion
potion
static net.minecraft.util.Identifier
POTION_TEXTURE
Fields 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 void
addTooltipExtras(FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)
Add extra data to the tooltip.PotionFluidVolume
readVolume(com.google.gson.JsonObject json)
PotionFluidVolume
readVolume(net.minecraft.nbt.CompoundTag tag)
PotionFluidVolume
withAmount(int amount)
Deprecated.Replaced bywithAmount(FluidAmount)
.PotionFluidVolume
withAmount(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:
readVolume
in classFluidKey
-
readVolume
public PotionFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolume
in classFluidKey
- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
Deprecated.Replaced bywithAmount(FluidAmount)
.- Overrides:
withAmount
in classFluidKey
-
withAmount
- Overrides:
withAmount
in classFluidKey
-
addTooltipExtras
public void addTooltipExtras(FluidTooltipContext context, java.util.List<net.minecraft.text.Text> tooltip)Description copied from class:FluidKey
Add extra data to the tooltip.- Overrides:
addTooltipExtras
in classFluidKey
-