Class HandlerUtils
java.lang.Object
com.portingdeadmods.portingdeadlibs.utils.capabilities.HandlerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DynamicFluidTanknewDynamicFluidTank(BiPredicate<Integer, net.neoforged.neoforge.fluids.FluidStack> fluidValidator, it.unimi.dsi.fastutil.ints.Int2IntFunction tankLimit, Consumer<Integer> onChange, int ignoredTanks) static net.neoforged.neoforge.energy.EnergyStoragenewEnergystorage(int capacity, int maxReceive, int maxExtract, Runnable onChanged) static net.neoforged.neoforge.fluids.capability.templates.FluidTanknewFluidTank(BiPredicate<Integer, net.neoforged.neoforge.fluids.FluidStack> fluidValidator, it.unimi.dsi.fastutil.ints.Int2IntFunction tankLimit, Consumer<Integer> onChange, int ignoredTanks) static net.neoforged.neoforge.items.ItemStackHandlernewItemStackHandler(BiPredicate<Integer, net.minecraft.world.item.ItemStack> validator, it.unimi.dsi.fastutil.ints.Int2IntFunction slotLimit, Consumer<Integer> onChange, int slots)
-
Constructor Details
-
HandlerUtils
public HandlerUtils()
-
-
Method Details
-
newItemStackHandler
public static net.neoforged.neoforge.items.ItemStackHandler newItemStackHandler(BiPredicate<Integer, net.minecraft.world.item.ItemStack> validator, it.unimi.dsi.fastutil.ints.Int2IntFunction slotLimit, Consumer<Integer> onChange, int slots) -
newFluidTank
public static net.neoforged.neoforge.fluids.capability.templates.FluidTank newFluidTank(BiPredicate<Integer, net.neoforged.neoforge.fluids.FluidStack> fluidValidator, it.unimi.dsi.fastutil.ints.Int2IntFunction tankLimit, Consumer<Integer> onChange, int ignoredTanks) -
newDynamicFluidTank
public static DynamicFluidTank newDynamicFluidTank(BiPredicate<Integer, net.neoforged.neoforge.fluids.FluidStack> fluidValidator, it.unimi.dsi.fastutil.ints.Int2IntFunction tankLimit, Consumer<Integer> onChange, int ignoredTanks) -
newEnergystorage
public static net.neoforged.neoforge.energy.EnergyStorage newEnergystorage(int capacity, int maxReceive, int maxExtract, Runnable onChanged)
-