Class FluidInventory
java.lang.Object
com.refinedmods.refinedstorage.inventory.fluid.FluidInventory
- Direct Known Subclasses:
ConfiguredFluidsInFilterItemHandler
,ConfiguredIconInFluidFilterItemHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddListener
(InventoryListener<FluidInventory> listener) net.neoforged.neoforge.fluids.FluidStack
getFluid
(int slot) net.neoforged.neoforge.fluids.FluidStack[]
int
int
getSlots()
boolean
isEmpty()
void
onChanged
(int slot) void
readFromNbt
(net.minecraft.nbt.CompoundTag tag) void
setFluid
(int slot, net.neoforged.neoforge.fluids.FluidStack stack) net.minecraft.nbt.CompoundTag
-
Constructor Details
-
FluidInventory
public FluidInventory(int size, int maxAmount) -
FluidInventory
public FluidInventory(int size)
-
-
Method Details
-
addListener
-
getSlots
public int getSlots() -
getMaxAmount
public int getMaxAmount() -
getFluids
public net.neoforged.neoforge.fluids.FluidStack[] getFluids() -
getFluid
@Nonnull public net.neoforged.neoforge.fluids.FluidStack getFluid(int slot) -
setFluid
public void setFluid(int slot, @Nonnull net.neoforged.neoforge.fluids.FluidStack stack) -
onChanged
public void onChanged(int slot) -
writeToNbt
public net.minecraft.nbt.CompoundTag writeToNbt() -
readFromNbt
public void readFromNbt(net.minecraft.nbt.CompoundTag tag) -
isEmpty
public boolean isEmpty()
-