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 SummaryNested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKeyColouredFluidKey.ColouredFluidKeyBuilderNested classes/interfaces inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKeyFluidKey.FluidKeyBuilder
- 
Field SummaryFields inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidKeydefaultAlpha, defaultBlue, defaultGreen, defaultRed, maxAlpha, maxBlue, maxGreen, maxRed, minAlpha, minBlue, minGreen, minRedFields 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 SummaryConstructorsConstructorDescriptionBiomeSourcedFluidKey(FluidKey.FluidKeyBuilder builder)Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryModifier 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.ColouredFluidKeycreateFromMcBufferMethods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidKeyaddFullTooltip, 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 class- ColouredFluidKey
 
- 
readVolumepublic BiomeSourcedFluidVolume readVolume(com.google.gson.JsonObject json) throws com.google.gson.JsonSyntaxException- Overrides:
- readVolumein class- ColouredFluidKey
- Throws:
- com.google.gson.JsonSyntaxException
 
- 
withAmount- Overrides:
- withAmountin class- ColouredFluidKey
 
- 
withAmountpublic BiomeSourcedFluidVolume withAmount(net.minecraft.world.biome.Biome source, FluidAmount amount)
- 
getColourFromBiomepublic int getColourFromBiome(net.minecraft.world.biome.Biome source)
- 
fromWorldpublic 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).