Class SimpleFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.SimpleFluidKey
Simple implementation of a
FluidKey
that doesn't do anything special.-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionreadVolume(com.google.gson.JsonObject json)
readVolume(net.minecraft.nbt.NbtCompound tag)
withAmount(FluidAmount amount)
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, getRawFluid, getTemperature, hashCode, isEmpty, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty, withAmount
-
Constructor Details
-
SimpleFluidKey
-
-
Method Details
-
readVolume
- Specified by:
readVolume
in classFluidKey
-
readVolume
public FluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolume
in classFluidKey
- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
- Overrides:
withAmount
in classFluidKey
-