public class SlotFluidContainer
extends net.minecraft.inventory.Slot
IFluidContainerItem.| Constructor and Description |
|---|
SlotFluidContainer(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y)
Make a new instance that accepts containers for all fluids.
|
SlotFluidContainer(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
SingleUseTank tank)
Make a new instance that accepts containers for a given fluid.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIsItemValid(net.minecraft.item.ItemStack itemStack,
SingleUseTank tank)
Check if the given item is valid and the fluid equals the fluid inside the
container (or the fluid in the container is null).
|
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
canTakeStack, decrStackSize, func_111238_b, getBackgroundIconIndex, getBackgroundIconTexture, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isSlotInInventory, onCrafting, onCrafting, onPickupFromSlot, onSlotChange, onSlotChanged, putStack, setBackgroundIcon, setBackgroundIconTexturepublic SlotFluidContainer(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y)
inventory - The inventory this slot will be in.index - The index of this slot.x - X coordinate.y - Y coordinate.public SlotFluidContainer(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
SingleUseTank tank)
inventory - The inventory this slot will be in.index - The index of this slot.x - X coordinate.y - Y coordinate.tank - The accepting tank.public boolean isItemValid(net.minecraft.item.ItemStack itemStack)
isItemValid in class net.minecraft.inventory.Slotpublic static boolean checkIsItemValid(net.minecraft.item.ItemStack itemStack,
SingleUseTank tank)
itemStack - The item that will be checked.tank - The accepting tank.