public abstract class InventorySided extends InventoryHandler
inventoryContents
Constructor and Description |
---|
InventorySided(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canExtractItem(int slot,
net.minecraft.item.ItemStack stack,
net.minecraft.util.Direction dir)
Can this extract the item
|
abstract boolean |
canInsertItem(int slot,
net.minecraft.item.ItemStack itemStackIn,
net.minecraft.util.Direction dir)
Can insert the item into the inventory
|
<T> net.minecraftforge.common.util.LazyOptional<T> |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.Direction facing)
TileEntity *
|
abstract int[] |
getSlotsForFace(net.minecraft.util.Direction face)
Get the slots for the given face
|
addCallback, copyFrom, extractItem, getInventorySize, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValidForSlot, isValidSlot, onInventoryChanged, read, setStackInSlot, write
getVariable, sendValueToClient, sendValueToServer, setVariable, updateClientValueFromServer
getUpdatePacket, getUpdateTag, markForUpdate, onClientTick, onDataPacket, onServerTick, tick
addInfoToCrashReport, create, getBlockState, getDistanceSq, getMaxRenderDistanceSquared, getPos, getTileData, getType, getWorld, hasWorld, isRemoved, markDirty, mirror, onlyOpsCanSetNbt, receiveClientEvent, remove, rotate, setPos, setWorld, updateContainingBlockInfo, validate, warnInvalidBlock
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, getCapabilities, invalidateCaps, reviveCaps, serializeCaps
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public InventorySided(net.minecraft.tileentity.TileEntityType<?> tileEntityTypeIn)
public abstract int[] getSlotsForFace(net.minecraft.util.Direction face)
face
- The facepublic abstract boolean canInsertItem(int slot, net.minecraft.item.ItemStack itemStackIn, net.minecraft.util.Direction dir)
slot
- The slotitemStackIn
- The stack to insertdir
- The dirpublic abstract boolean canExtractItem(int slot, net.minecraft.item.ItemStack stack, net.minecraft.util.Direction dir)
slot
- The slotstack
- The stackdir
- The dirpublic <T> net.minecraftforge.common.util.LazyOptional<T> getCapability(@Nonnull net.minecraftforge.common.capabilities.Capability<T> capability, net.minecraft.util.Direction facing)
getCapability
in interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability
in class InventoryHandler
T
- The object to casecapability
- The capabilityfacing
- Which face