Class ColouredFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
- Direct Known Subclasses:
BiomeSourcedFluidKey
public class ColouredFluidKey extends FluidKey
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ColouredFluidKey.ColouredFluidKeyBuilder
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Fields Modifier and Type Field Description float
defaultAlpha
float
defaultBlue
float
defaultGreen
float
defaultRed
float
maxAlpha
float
maxBlue
float
maxGreen
float
maxRed
float
minAlpha
float
minBlue
float
minGreen
float
minRed
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 ColouredFluidKey(ColouredFluidKey.ColouredFluidKeyBuilder builder)
-
Method Summary
Modifier and Type Method Description protected ColouredFluidVolume
createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount)
Creates a newFluidVolume
and reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf)
.ColouredFluidVolume
readVolume(com.google.gson.JsonObject json)
ColouredFluidVolume
readVolume(net.minecraft.nbt.CompoundTag tag)
ColouredFluidVolume
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
-
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
-