Class SimpleFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.SimpleFluidKey
public class SimpleFluidKey extends FluidKey
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
Constructors Constructor Description SimpleFluidKey(FluidKey.FluidKeyBuilder builder) -
Method Summary
Modifier and Type Method Description FluidVolumereadVolume(com.google.gson.JsonObject json)FluidVolumereadVolume(net.minecraft.nbt.CompoundTag tag)FluidVolumewithAmount(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
-
Method Details
-
readVolume
- Specified by:
readVolumein classFluidKey
-
readVolume
public FluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolumein classFluidKey- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
- Overrides:
withAmountin classFluidKey
-