Class WeightedFluidKey<T>
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.WeightedFluidKey<T>
public abstract class WeightedFluidKey<T> extends FluidKey
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Fields Modifier and Type Field Description T
defaultValue
java.lang.Class<T>
valueClass
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 WeightedFluidKey(FluidKey.FluidKeyBuilder builder, java.lang.Class<T> valueClass, T defaultValue)
-
Method Summary
Modifier and Type Method Description WeightedFluidVolume<T>
withAmount(int amount)
Deprecated.WeightedFluidVolume<T>
withAmount(FluidAmount amount)
WeightedFluidVolume<T>
withAmount(T value, int amount)
Deprecated.abstract WeightedFluidVolume<T>
withAmount(T value, 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, readVolume, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty
-
Field Details
-
Constructor Details
-
WeightedFluidKey
public WeightedFluidKey(FluidKey.FluidKeyBuilder builder, java.lang.Class<T> valueClass, T defaultValue)
-
-
Method Details
-
withAmount
- Overrides:
withAmount
in classFluidKey
-
withAmount
Deprecated.- Overrides:
withAmount
in classFluidKey
-
withAmount
-
withAmount
Deprecated.
-