Class PotionFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.PotionFluidKey
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionstatic net.minecraft.util.Identifier
net.minecraft.potion.Potion
static net.minecraft.util.Identifier
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 TypeMethodDescriptionvoid
addTooltipExtras(FluidTooltipContext context, List<net.minecraft.text.Text> tooltip)
Add extra data to the tooltip.readVolume(com.google.gson.JsonObject json)
readVolume(net.minecraft.nbt.NbtCompound tag)
withAmount(int amount)
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Replaced bywithAmount(FluidAmount)
.- Overrides:
withAmount
in classFluidKey
-
withAmount
- Overrides:
withAmount
in classFluidKey
-
addTooltipExtras
Description copied from class:FluidKey
Add extra data to the tooltip.- Overrides:
addTooltipExtras
in classFluidKey
-
withAmount(FluidAmount)
.