Class FluidUnitBase
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidUnitBase
- Direct Known Subclasses:
FluidUnit
,FluidUnitSet
public abstract class FluidUnitBase
extends java.lang.Object
Base class for
FluidUnit
and FluidUnitSet
.-
Method Summary
Modifier and Type Method Description net.minecraft.text.Text
getAmount(FluidAmount amount)
net.minecraft.text.Text
getAmount(FluidAmount amount, boolean forceSingular)
net.minecraft.text.Text
getAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)
net.minecraft.text.Text
getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
getAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
getAmount(FluidAmount amount, FluidTooltipContext ctx)
net.minecraft.text.Text
getAmount(FluidAmount amount, net.minecraft.text.Text fluidName)
net.minecraft.text.Text
getAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
getEmptyTank(FluidAmount capacity)
abstract net.minecraft.text.Text
getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
getFlowRate(FluidAmount amountPerTick)
net.minecraft.text.Text
getFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)
net.minecraft.text.Text
getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
getFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
getFullTank(FluidAmount capacity)
net.minecraft.text.Text
getFullTank(FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
getFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
getPartialTank(FluidAmount amount, FluidAmount capacity)
net.minecraft.text.Text
getPartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract net.minecraft.text.Text
getPartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
net.minecraft.text.Text
getTank(FluidAmount amount, FluidAmount capacity)
net.minecraft.text.Text
getTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
net.minecraft.text.Text
getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
net.minecraft.text.Text
getTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizeAmount(FluidAmount amount)
java.lang.String
localizeAmount(FluidAmount amount, boolean forceSingular)
java.lang.String
localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)
java.lang.String
localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)
abstract java.lang.String
localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizeAmount(FluidAmount amount, FluidTooltipContext ctx)
java.lang.String
localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName)
java.lang.String
localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizeEmptyTank(FluidAmount capacity)
abstract java.lang.String
localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
localizeFlowRate(FluidAmount amountPerTick)
java.lang.String
localizeFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)
java.lang.String
localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)
abstract java.lang.String
localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizeFullTank(FluidAmount capacity)
java.lang.String
localizeFullTank(FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract java.lang.String
localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizePartialTank(FluidAmount amount, FluidAmount capacity)
java.lang.String
localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract java.lang.String
localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
java.lang.String
localizeTank(FluidAmount amount, FluidAmount capacity)
java.lang.String
localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
java.lang.String
localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
java.lang.String
localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
-
Method Details
-
localizeAmount
-
getAmount
-
localizeAmount
public final java.lang.String localizeAmount(FluidAmount amount, @Nullable net.minecraft.text.Text fluidName) -
getAmount
public final net.minecraft.text.Text getAmount(FluidAmount amount, @Nullable net.minecraft.text.Text fluidName) -
localizeAmount
-
getAmount
-
localizeAmount
public final java.lang.String localizeAmount(FluidAmount amount, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getAmount
public final net.minecraft.text.Text getAmount(FluidAmount amount, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
localizeAmount
-
getAmount
-
localizeAmount
public final java.lang.String localizeAmount(FluidAmount amount, boolean forceSingular, @Nullable net.minecraft.text.Text fluidName) -
getAmount
public final net.minecraft.text.Text getAmount(FluidAmount amount, boolean forceSingular, @Nullable net.minecraft.text.Text fluidName) -
localizeAmount
public final java.lang.String localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) -
getAmount
public final net.minecraft.text.Text getAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) -
localizeAmount
public abstract java.lang.String localizeAmount(FluidAmount amount, boolean forceSingular, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getAmount
public abstract net.minecraft.text.Text getAmount(FluidAmount amount, boolean forceSingular, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
localizeEmptyTank
-
getEmptyTank
-
localizeEmptyTank
-
getEmptyTank
public abstract net.minecraft.text.Text getEmptyTank(FluidAmount capacity, FluidTooltipContext ctx) -
localizeFullTank
-
getFullTank
-
localizeFullTank
public final java.lang.String localizeFullTank(FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
getFullTank
public final net.minecraft.text.Text getFullTank(FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
localizeFullTank
-
getFullTank
-
localizeFullTank
public abstract java.lang.String localizeFullTank(FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getFullTank
public abstract net.minecraft.text.Text getFullTank(FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
localizePartialTank
-
getPartialTank
-
localizePartialTank
public final java.lang.String localizePartialTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
getPartialTank
public final net.minecraft.text.Text getPartialTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
localizePartialTank
public final java.lang.String localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) -
getPartialTank
public final net.minecraft.text.Text getPartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) -
localizePartialTank
public abstract java.lang.String localizePartialTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getPartialTank
public abstract net.minecraft.text.Text getPartialTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
localizeTank
-
getTank
-
localizeTank
public final java.lang.String localizeTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
getTank
public final net.minecraft.text.Text getTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName) -
localizeTank
public final java.lang.String localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) -
getTank
public final net.minecraft.text.Text getTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) -
localizeTank
public final java.lang.String localizeTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getTank
public final net.minecraft.text.Text getTank(FluidAmount amount, FluidAmount capacity, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
localizeFlowRate
-
getFlowRate
-
localizeFlowRate
public final java.lang.String localizeFlowRate(FluidAmount amountPerTick, @Nullable net.minecraft.text.Text fluidName) -
getFlowRate
public final net.minecraft.text.Text getFlowRate(FluidAmount amountPerTick, @Nullable net.minecraft.text.Text fluidName) -
localizeFlowRate
-
getFlowRate
public final net.minecraft.text.Text getFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx) -
localizeFlowRate
public abstract java.lang.String localizeFlowRate(FluidAmount amountPerTick, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx) -
getFlowRate
public abstract net.minecraft.text.Text getFlowRate(FluidAmount amountPerTick, @Nullable net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
-