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 SummaryNested ClassesNested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKeyFluidKey.FluidKeyBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatfloatFields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKeycohesion, 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 SummaryConstructors
- 
Method SummaryModifier 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.FluidKeyaddFullTooltip, 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- 
defaultRedpublic final float defaultRed
- 
defaultGreenpublic final float defaultGreen
- 
defaultBluepublic final float defaultBlue
- 
defaultAlphapublic final float defaultAlpha
- 
minRedpublic final float minRed
- 
minGreenpublic final float minGreen
- 
minBluepublic final float minBlue
- 
minAlphapublic final float minAlpha
- 
maxRedpublic final float maxRed
- 
maxGreenpublic final float maxGreen
- 
maxBluepublic final float maxBlue
- 
maxAlphapublic final float maxAlpha
 
- 
- 
Constructor Details- 
ColouredFluidKey
 
- 
- 
Method Details- 
readVolume- Specified by:
- readVolumein class- FluidKey
 
- 
readVolumepublic ColouredFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
- readVolumein class- FluidKey
- Throws:
- com.google.gson.JsonSyntaxException
 
- 
withAmount- Overrides:
- withAmountin class- FluidKey
 
- 
createFromMcBufferprotected 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 class- FluidKey
 
 
-