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
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
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfromWorld
(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) readVolume
(com.google.gson.JsonObject json) readVolume
(net.minecraft.nbt.NbtCompound tag) withAmount
(FluidAmount amount) 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(since="0.8.1", forRemoval=true) public BiomeSourcedFluidKey(FluidKey.FluidKeyBuilder builder) Deprecated, for removal: This API element is subject to removal in a future version.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.
-
ColouredFluidKey.ColouredFluidKeyBuilder
instead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder)
.