public abstract class GhostItemContainer<T> extends ContainerBase<T> implements IClearableContainer
| Modifier and Type | Field and Description |
|---|---|
net.minecraftforge.items.ItemStackHandler |
ghostInventory |
contentHolder, player, playerInventory| Modifier | Constructor and Description |
|---|---|
protected |
GhostItemContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.network.PacketBuffer extraData) |
protected |
GhostItemContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
T contentHolder) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
allowRepeats() |
boolean |
canDragTo(net.minecraft.inventory.container.Slot slotIn) |
boolean |
canTakeItemForPickAll(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn) |
void |
clearContents() |
net.minecraft.item.ItemStack |
clicked(int slotId,
int dragType,
net.minecraft.inventory.container.ClickType clickTypeIn,
net.minecraft.entity.player.PlayerEntity player) |
protected abstract net.minecraftforge.items.ItemStackHandler |
createGhostInventory() |
protected void |
initAndReadInventory(T contentHolder) |
net.minecraft.item.ItemStack |
quickMoveStack(net.minecraft.entity.player.PlayerEntity playerIn,
int index) |
addPlayerSlots, addSlots, createOnClient, init, removed, saveData, stillValidaddDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, slotsChanged, stillValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendClearPacketprotected GhostItemContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
net.minecraft.network.PacketBuffer extraData)
protected GhostItemContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.entity.player.PlayerInventory inv,
T contentHolder)
protected abstract net.minecraftforge.items.ItemStackHandler createGhostInventory()
protected abstract boolean allowRepeats()
protected void initAndReadInventory(T contentHolder)
initAndReadInventory in class ContainerBase<T>public void clearContents()
clearContents in interface IClearableContainerpublic boolean canTakeItemForPickAll(net.minecraft.item.ItemStack stack,
net.minecraft.inventory.container.Slot slotIn)
canTakeItemForPickAll in class net.minecraft.inventory.container.Containerpublic boolean canDragTo(net.minecraft.inventory.container.Slot slotIn)
canDragTo in class net.minecraft.inventory.container.Containerpublic net.minecraft.item.ItemStack clicked(int slotId,
int dragType,
net.minecraft.inventory.container.ClickType clickTypeIn,
net.minecraft.entity.player.PlayerEntity player)
clicked in class net.minecraft.inventory.container.Containerpublic net.minecraft.item.ItemStack quickMoveStack(net.minecraft.entity.player.PlayerEntity playerIn,
int index)
quickMoveStack in class net.minecraft.inventory.container.Container