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 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
ConstructorsConstructorDescriptionDeprecated, 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.intgetColourFromBiome(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
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(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.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.
-
ColouredFluidKey.ColouredFluidKeyBuilderinstead and pass that toBiomeSourcedFluidKey(ColouredFluidKeyBuilder).