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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classDeprecated, 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.FluidKeyFluidKey.FluidKeyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionnet.minecraft.fluid.FluidDeprecated, for removal: This API element is subject to removal in a future version.Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKeycohesion, 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 SummaryConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier 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.FluidDeprecated, 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.FluidKeyaddFullTooltip, 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- 
NormalFluidKeyDeprecated, 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.
- 
builderpublic 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.
- 
getRawFluidpublic net.minecraft.fluid.Fluid getRawFluid()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- getRawFluidin class- FluidKey
 
- 
withAmountDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- withAmountin class- FluidKey
 
- 
withAmountDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- withAmountin class- FluidKey
 
- 
readVolumeDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- readVolumein class- FluidKey
 
- 
readVolumepublic NormalFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxExceptionDeprecated, for removal: This API element is subject to removal in a future version.- Overrides:
- readVolumein class- FluidKey
- Throws:
- com.google.gson.JsonSyntaxException
 
 
- 
FluidKeycan map to a singleFluid, andSimpleFluidKeyhas a much better name than this.