Class ColouredFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
- Direct Known Subclasses:
BiomeSourcedFluidKey
-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Modifier and TypeFieldDescriptionfinal float
final float
final float
final float
final float
final float
final float
final float
final float
final float
final float
final float
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 TypeMethodDescriptionprotected ColouredFluidVolume
createFromMcBuffer
(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Creates a newFluidVolume
and reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf)
.readVolume
(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, equals, forceRegisterProperty, fromJson, fromMcBuffer, fromTag, fromWorld, getFullTooltip, getFullTooltip, getProperties, getRawFluid, getTemperature, hashCode, isEmpty, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty, withAmount
-
Field Details
-
defaultRed
public final float defaultRed -
defaultGreen
public final float defaultGreen -
defaultBlue
public final float defaultBlue -
defaultAlpha
public final float defaultAlpha -
minRed
public final float minRed -
minGreen
public final float minGreen -
minBlue
public final float minBlue -
minAlpha
public final float minAlpha -
maxRed
public final float maxRed -
maxGreen
public final float maxGreen -
maxBlue
public final float maxBlue -
maxAlpha
public final float maxAlpha
-
-
Constructor Details
-
ColouredFluidKey
-
-
Method Details
-
readVolume
- Specified by:
readVolume
in classFluidKey
-
readVolume
public ColouredFluidVolume 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
-
createFromMcBuffer
protected ColouredFluidVolume createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Description copied from class:FluidKey
Creates a newFluidVolume
and reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf)
. This should not attempt to read properties.- Overrides:
createFromMcBuffer
in classFluidKey
-