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 TypeMethodDescriptionfinal net.minecraft.text.Text
getAmount
(FluidAmount amount) final net.minecraft.text.Text
getAmount
(FluidAmount amount, boolean forceSingular) final net.minecraft.text.Text
getAmount
(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) final 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) final net.minecraft.text.Text
getAmount
(FluidAmount amount, FluidTooltipContext ctx) final net.minecraft.text.Text
getAmount
(FluidAmount amount, net.minecraft.text.Text fluidName) final net.minecraft.text.Text
getAmount
(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final net.minecraft.text.Text
getEmptyTank
(FluidAmount capacity) abstract net.minecraft.text.Text
getEmptyTank
(FluidAmount capacity, FluidTooltipContext ctx) final net.minecraft.text.Text
getFlowRate
(FluidAmount amountPerTick) final net.minecraft.text.Text
getFlowRate
(FluidAmount amountPerTick, FluidTooltipContext ctx) final 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) final net.minecraft.text.Text
getFullTank
(FluidAmount capacity) final net.minecraft.text.Text
getFullTank
(FluidAmount capacity, FluidTooltipContext ctx) final 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) final net.minecraft.text.Text
getPartialTank
(FluidAmount amount, FluidAmount capacity) final net.minecraft.text.Text
getPartialTank
(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final 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) final net.minecraft.text.Text
getTank
(FluidAmount amount, FluidAmount capacity) final net.minecraft.text.Text
getTank
(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final net.minecraft.text.Text
getTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) final net.minecraft.text.Text
getTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizeAmount
(FluidAmount amount) final String
localizeAmount
(FluidAmount amount, boolean forceSingular) final String
localizeAmount
(FluidAmount amount, boolean forceSingular, FluidTooltipContext ctx) final String
localizeAmount
(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName) abstract String
localizeAmount
(FluidAmount amount, boolean forceSingular, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizeAmount
(FluidAmount amount, FluidTooltipContext ctx) final String
localizeAmount
(FluidAmount amount, net.minecraft.text.Text fluidName) final String
localizeAmount
(FluidAmount amount, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizeEmptyTank
(FluidAmount capacity) abstract String
localizeEmptyTank
(FluidAmount capacity, FluidTooltipContext ctx) final String
localizeFlowRate
(FluidAmount amountPerTick) final String
localizeFlowRate
(FluidAmount amountPerTick, FluidTooltipContext ctx) final String
localizeFlowRate
(FluidAmount amountPerTick, net.minecraft.text.Text fluidName) abstract String
localizeFlowRate
(FluidAmount amountPerTick, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizeFullTank
(FluidAmount capacity) final String
localizeFullTank
(FluidAmount capacity, FluidTooltipContext ctx) final String
localizeFullTank
(FluidAmount capacity, net.minecraft.text.Text fluidName) abstract String
localizeFullTank
(FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizePartialTank
(FluidAmount amount, FluidAmount capacity) final String
localizePartialTank
(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final String
localizePartialTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) abstract String
localizePartialTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx) final String
localizeTank
(FluidAmount amount, FluidAmount capacity) final String
localizeTank
(FluidAmount amount, FluidAmount capacity, FluidTooltipContext ctx) final String
localizeTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName) final String
localizeTank
(FluidAmount amount, FluidAmount capacity, net.minecraft.text.Text fluidName, FluidTooltipContext ctx)
-
Method Details
-
localizeAmount
-
getAmount
-
localizeAmount
-
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
-
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
-
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)
-