Class BiomeSourcedFluidVolume
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.ColouredFluidVolume
alexiil.mc.lib.attributes.fluid.volume.BiomeSourcedFluidVolume
A fluid that changes it's makup based on the
Biome
s that it is taken from.-
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
BASE_UNIT, BOTTLE, BUCKET, DESERIALIZER, fluidKey
-
Constructor Summary
ConstructorDescriptionBiomeSourcedFluidVolume(BiomeSourcedFluidKey key, int amount)
Deprecated, for removal: This API element is subject to removal in a future version.BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, FluidAmount amount)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, com.google.gson.JsonObject json)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.nbt.NbtCompound tag)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, int amount)
Deprecated, for removal: This API element is subject to removal in a future version.BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, FluidAmount amount)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setColourFromBiome(net.minecraft.world.biome.Biome source)
Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.ColouredFluidVolume
addTooltipExtras, asArgb, copy0, fromMcBufferInternal, getAlpha, getBlue, getGreen, getName, getNoncolouredName, getRed, getRenderColor, mergeInternal, setAbgr, setArgb, setRgb, setRgba, split0, toJson, toMcBufferInternal, toTag
Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
addFullTooltip, addFullTooltip, addFullTooltip, addTooltipNameAmount, addTooltipProperties, addTooltipTemperature, amount, areEqualExceptAmounts, areFullyEqual, canMerge, copy, create, create, create, equals, fromJson, fromMcBuffer, fromTag, getAmount, getAmount_F, getFlowingSprite, getFullTooltip, getFullTooltip, getFullTooltip, getProperty, getRawAmount, getRawAmount_F, getRawFluid, getRenderer, getSprite, getStillSprite, getTooltipText, hashCode, isEmpty, localizeAmount, localizeAmount, localizeInTank, localizeInTank, merge, merge, merge, merge, merge0, mergeInto, mergeInto, mergeInto, multiplyAmount, parseAmount, render, renderGuiRect, setAmount, setAmount, setProperty, split, split, split, toMcBuffer, toString, toTag, withAmount
-
Constructor Details
-
BiomeSourcedFluidVolume
public BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, FluidAmount amount) -
BiomeSourcedFluidVolume
@Deprecated(since="0.6.4", forRemoval=true) public BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, int amount)Deprecated, for removal: This API element is subject to removal in a future version. -
BiomeSourcedFluidVolume
-
BiomeSourcedFluidVolume
@Deprecated(since="0.6.4", forRemoval=true) public BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, int amount)Deprecated, for removal: This API element is subject to removal in a future version. -
BiomeSourcedFluidVolume
-
BiomeSourcedFluidVolume
-
-
Method Details
-
getFluidKey
- Overrides:
getFluidKey
in classColouredFluidVolume
- Returns:
- The
FluidKey
for this volume. Subclasses may override this to use a return type for their key class.
-
setColourFromBiome
public void setColourFromBiome(net.minecraft.world.biome.Biome source)
-