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 ClassesNested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatfinal floatFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ColouredFluidVolumecreateFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Creates a newFluidVolumeand 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:
readVolumein classFluidKey
-
readVolume
public ColouredFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException - Overrides:
readVolumein classFluidKey- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
- Overrides:
withAmountin classFluidKey
-
createFromMcBuffer
protected ColouredFluidVolume createFromMcBuffer(net.minecraft.network.PacketByteBuf buffer, FluidAmount amount) Description copied from class:FluidKeyCreates a newFluidVolumeand reads it from the buffer withFluidVolume.fromMcBufferInternal(PacketByteBuf). This should not attempt to read properties.- Overrides:
createFromMcBufferin classFluidKey
-