Class BiomeSourcedFluidKey
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidKey
alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
alexiil.mc.lib.attributes.fluid.volume.BiomeSourcedFluidKey
public class BiomeSourcedFluidKey extends ColouredFluidKey
A
ColouredFluidKey
which gets it's colour from a Biome
s water colour.-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
ColouredFluidKey.ColouredFluidKeyBuilder
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
FluidKey.FluidKeyBuilder
-
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
defaultAlpha, defaultBlue, defaultGreen, defaultRed, maxAlpha, maxBlue, maxGreen, maxRed, minAlpha, minBlue, minGreen, 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 BiomeSourcedFluidKey(ColouredFluidKey.ColouredFluidKeyBuilder builder)
BiomeSourcedFluidKey(FluidKey.FluidKeyBuilder builder)
Deprecated.because it's recommended to create aColouredFluidKey.ColouredFluidKeyBuilder
instead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder)
. -
Method Summary
Modifier and Type Method Description FluidVolume
fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)
Called when this is pumped out from the world.int
getColourFromBiome(net.minecraft.world.biome.Biome source)
BiomeSourcedFluidVolume
readVolume(com.google.gson.JsonObject json)
BiomeSourcedFluidVolume
readVolume(net.minecraft.nbt.CompoundTag tag)
BiomeSourcedFluidVolume
withAmount(FluidAmount amount)
BiomeSourcedFluidVolume
withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount)
Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
createFromMcBuffer
Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKey
addFullTooltip, addTooltipExtras, addTooltipExtras, addTooltipProperties, addTooltipProperties, addTooltipTemperature, equals, forceRegisterProperty, fromJson, fromMcBuffer, fromTag, getFullTooltip, getFullTooltip, getProperties, getRawFluid, getTemperature, hashCode, isEmpty, readVolume, register, toJson, toJson, toMcBuffer, toString, toTag, toTag, tryRegisterProperty, withAmount
-
Constructor Details
-
BiomeSourcedFluidKey
Deprecated.because it's recommended to create aColouredFluidKey.ColouredFluidKeyBuilder
instead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder)
. -
BiomeSourcedFluidKey
-
-
Method Details
-
readVolume
- Overrides:
readVolume
in classColouredFluidKey
-
readVolume
public BiomeSourcedFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolume
in classColouredFluidKey
- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
- Overrides:
withAmount
in classColouredFluidKey
-
withAmount
public BiomeSourcedFluidVolume withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount) -
getColourFromBiome
public int getColourFromBiome(net.minecraft.world.biome.Biome source) -
fromWorld
public FluidVolume fromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)Description copied from class:FluidKey
Called when this is pumped out from the world.
-