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 Biomes water colour.-
Nested Class Summary
Nested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
ColouredFluidKey.ColouredFluidKeyBuilderNested 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, minRedFields 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.ColouredFluidKeyBuilderinstead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder). -
Method Summary
Modifier and Type Method Description FluidVolumefromWorld(net.minecraft.world.WorldView world, net.minecraft.util.math.BlockPos pos)Called when this is pumped out from the world.intgetColourFromBiome(net.minecraft.world.biome.Biome source)BiomeSourcedFluidVolumereadVolume(com.google.gson.JsonObject json)BiomeSourcedFluidVolumereadVolume(net.minecraft.nbt.CompoundTag tag)BiomeSourcedFluidVolumewithAmount(FluidAmount amount)BiomeSourcedFluidVolumewithAmount(net.minecraft.world.biome.Biome source, FluidAmount amount)Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKey
createFromMcBufferMethods 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.ColouredFluidKeyBuilderinstead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder). -
BiomeSourcedFluidKey
-
-
Method Details
-
readVolume
- Overrides:
readVolumein classColouredFluidKey
-
readVolume
public BiomeSourcedFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
readVolumein classColouredFluidKey- Throws:
com.google.gson.JsonSyntaxException
-
withAmount
- Overrides:
withAmountin 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:FluidKeyCalled when this is pumped out from the world.
-