Class NormalFluidVolume
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidVolume
alexiil.mc.lib.attributes.fluid.volume.NormalFluidVolume
@Deprecated public class NormalFluidVolume extends FluidVolume
Deprecated.
Because any
FluidKey
can map to a single Fluid
, and SimpleFluidVolume
has a much
better name than this.ItemStack
equivalent for fluids
. Instances must be constructed via
FluidKeys.get(Fluid)
.withAmount(FluidAmount)
.-
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
BASE_UNIT, BOTTLE, BUCKET, DESERIALIZER, fluidKey
-
Method Summary
Modifier and Type Method Description NormalFluidKey
getFluidKey()
Deprecated.net.minecraft.fluid.Fluid
getRawFluid()
Deprecated.Methods inherited from class alexiil.mc.lib.attributes.fluid.volume.FluidVolume
addFullTooltip, addFullTooltip, addFullTooltip, addTooltipExtras, addTooltipNameAmount, addTooltipProperties, addTooltipTemperature, amount, areEqualExceptAmounts, areFullyEqual, canMerge, copy, copy0, create, create, create, equals, fromJson, fromMcBuffer, fromMcBufferInternal, fromTag, getAmount, getAmount_F, getFlowingSprite, getFullTooltip, getFullTooltip, getFullTooltip, getName, getProperty, getRawAmount, getRawAmount_F, getRenderColor, getRenderer, getSprite, getStillSprite, getTooltipText, hashCode, isEmpty, localizeAmount, localizeAmount, localizeInTank, localizeInTank, merge, merge, merge, merge, merge0, mergeInternal, mergeInto, mergeInto, mergeInto, multiplyAmount, parseAmount, render, renderGuiRect, setAmount, setAmount, setProperty, split, split, split, split0, toJson, toMcBuffer, toMcBufferInternal, toString, toTag, toTag, withAmount
-
Method Details
-
getRawFluid
@Nonnull public final net.minecraft.fluid.Fluid getRawFluid()Deprecated.- Overrides:
getRawFluid
in classFluidVolume
- Returns:
- The minecraft
Fluid
instance that this contains, or null if this is based on something else (likePotion
's).
-
getFluidKey
Deprecated.- Overrides:
getFluidKey
in classFluidVolume
- Returns:
- The
FluidKey
for this volume. Subclasses may override this to use a return type for their key class.
-