Class NormalFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.NormalFluidKey
@Deprecated public class NormalFluidKey extends FluidKey
Deprecated.
Because any
FluidKey
can map to a single Fluid
, and SimpleFluidKey
has a much
better name than this.Identical to
NormalFluidVolume
, but without an amount and with extra data hidden from public view. As such
this is safe to use in normal maps and sets.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NormalFluidKey.NormalFluidKeyBuilder
Deprecated.Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Fields Modifier and Type Field Description net.minecraft.fluid.Fluid
fluid
Deprecated.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
-
Constructor Summary
Constructors Constructor Description NormalFluidKey(NormalFluidKey.NormalFluidKeyBuilder builder)
Deprecated. -
Method Summary
Modifier and Type Method Description static NormalFluidKey.NormalFluidKeyBuilder
builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name)
Deprecated.As the flowing sprite ID is needed as well.static NormalFluidKey.NormalFluidKeyBuilder
builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)
Deprecated.net.minecraft.fluid.Fluid
getRawFluid()
Deprecated.NormalFluidVolume
readVolume(com.google.gson.JsonObject json)
Deprecated.NormalFluidVolume
readVolume(net.minecraft.nbt.CompoundTag tag)
Deprecated.NormalFluidVolume
withAmount(int amount)
Deprecated.NormalFluidVolume
withAmount(FluidAmount amount)
Deprecated.Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
addFullTooltip, addTooltipExtras, addTooltipExtras, addTooltipProperties, addTooltipProperties, addTooltipTemperature, createFromMcBuffer, equals, forceRegisterProperty, fromJson, fromMcBuffer, fromTag, fromWorld, getFullTooltip, getFullTooltip, getProperties, getTemperature, hashCode, isEmpty, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty
-
Field Details
-
fluid
@Nonnull public final net.minecraft.fluid.Fluid fluidDeprecated.
-
-
Constructor Details
-
NormalFluidKey
Deprecated.
-
-
Method Details
-
builder
@Deprecated public static NormalFluidKey.NormalFluidKeyBuilder builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name)Deprecated.As the flowing sprite ID is needed as well. -
builder
public static NormalFluidKey.NormalFluidKeyBuilder builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name)Deprecated. -
getRawFluid
public net.minecraft.fluid.Fluid getRawFluid()Deprecated.- Overrides:
getRawFluid
in classFluidKey
-
withAmount
Deprecated.- Overrides:
withAmount
in classFluidKey
-
withAmount
Deprecated.- Overrides:
withAmount
in classFluidKey
-
readVolume
Deprecated.- Specified by:
readVolume
in classFluidKey
-
readVolume
public NormalFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxExceptionDeprecated.- Overrides:
readVolume
in classFluidKey
- Throws:
com.google.gson.JsonSyntaxException
-