Class FluidUnitBase
java.lang.Object
alexiil.mc.lib.attributes.fluid.volume.FluidUnitBase
- Direct Known Subclasses:
FluidUnit
,FluidUnitSet
Base class for
FluidUnit
and FluidUnitSet
.-
Method Summary
Modifier and TypeMethodDescriptionnet.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)
localizeAmount(FluidAmount amount)
localizeAmount(FluidAmount amount, boolean forceSingular)
localizeAmount(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx)
localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName)
abstract String
localizeAmount(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
localizeAmount(FluidAmount amount, FluidTooltipContext ctx)
localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName)
localizeAmount(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
localizeEmptyTank(FluidAmount capacity)
abstract String
localizeEmptyTank(FluidAmount capacity, FluidTooltipContext ctx)
localizeFlowRate(FluidAmount amountPerTick)
localizeFlowRate(FluidAmount amountPerTick, FluidTooltipContext ctx)
localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName)
abstract String
localizeFlowRate(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
localizeFullTank(FluidAmount capacity)
localizeFullTank(FluidAmount capacity, FluidTooltipContext ctx)
localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract String
localizeFullTank(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
localizePartialTank(FluidAmount amount, FluidAmount capacity)
localizePartialTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
abstract String
localizePartialTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
localizeTank(FluidAmount amount, FluidAmount capacity)
localizeTank(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx)
localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName)
localizeTank(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
-
Method Details
-
localizeAmount
-
getAmount
-
localizeAmount
public final 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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)
-