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
public class BiomeSourcedFluidVolume extends ColouredFluidVolume
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
Constructors Constructor Description BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, int amount)
Deprecated.BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, FluidAmount amount)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, com.google.gson.JsonObject json)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.nbt.CompoundTag tag)
BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, int amount)
Deprecated.BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, FluidAmount amount)
-
Method Summary
Modifier and Type Method Description BiomeSourcedFluidKey
getFluidKey()
void
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 public BiomeSourcedFluidVolume(BiomeSourcedFluidKey key, net.minecraft.world.biome.Biome source, int amount)Deprecated. -
BiomeSourcedFluidVolume
-
BiomeSourcedFluidVolume
Deprecated. -
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)
-