Class NormalFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.NormalFluidKey
Deprecated, for removal: This API element is subject to removal in a future version.
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
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionfinal net.minecraft.fluid.Fluid
Deprecated, for removal: This API element is subject to removal in a future version.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
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbuilder
(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name) Deprecated, for removal: This API element is subject to removal in a future version.As the flowing sprite ID is needed as well.builder
(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.util.Identifier flowingSpriteId, net.minecraft.text.Text name) Deprecated, for removal: This API element is subject to removal in a future version.net.minecraft.fluid.Fluid
Deprecated, for removal: This API element is subject to removal in a future version.readVolume
(com.google.gson.JsonObject json) Deprecated, for removal: This API element is subject to removal in a future version.readVolume
(net.minecraft.nbt.NbtCompound tag) Deprecated, for removal: This API element is subject to removal in a future version.withAmount
(int amount) Deprecated, for removal: This API element is subject to removal in a future version.withAmount
(FluidAmount amount) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
NormalFluidKey
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
builder
@Deprecated(since="0.6.0", forRemoval=true) public static NormalFluidKey.NormalFluidKeyBuilder builder(net.minecraft.fluid.Fluid fluid, net.minecraft.util.Identifier spriteId, net.minecraft.text.Text name) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version. -
getRawFluid
public net.minecraft.fluid.Fluid getRawFluid()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getRawFluid
in classFluidKey
-
withAmount
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
withAmount
in classFluidKey
-
withAmount
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
withAmount
in classFluidKey
-
readVolume
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
readVolume
in classFluidKey
-
readVolume
public NormalFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
readVolume
in classFluidKey
- Throws:
com.google.gson.JsonSyntaxException
-
FluidKey
can map to a singleFluid
, andSimpleFluidKey
has a much better name than this.