public abstract class GhostItemContainer<T> extends net.minecraft.inventory.container.Container implements IClearableContainer
| Modifier and Type | Field and Description |
|---|---|
T |
contentHolder |
net.minecraftforge.items.ItemStackHandler |
ghostInventory |
net.minecraft.entity.player.PlayerEntity |
player |
net.minecraft.entity.player.PlayerInventory |
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 void |
addPlayerSlots(int x,
int y) |
protected abstract void |
addSlots() |
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 abstract T |
createOnClient(net.minecraft.network.PacketBuffer extraData) |
protected void |
init(net.minecraft.entity.player.PlayerInventory inv,
T contentHolder) |
net.minecraft.item.ItemStack |
quickMoveStack(net.minecraft.entity.player.PlayerEntity playerIn,
int index) |
protected abstract void |
readData(T contentHolder) |
void |
removed(net.minecraft.entity.player.PlayerEntity playerIn) |
protected abstract void |
saveData(T contentHolder) |
addDataSlot, 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, stillValid, stillValidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendClearPacketpublic net.minecraft.entity.player.PlayerEntity player
public net.minecraft.entity.player.PlayerInventory playerInventory
public net.minecraftforge.items.ItemStackHandler ghostInventory
public T contentHolder
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)
protected abstract T createOnClient(net.minecraft.network.PacketBuffer extraData)
protected abstract void addSlots()
protected abstract net.minecraftforge.items.ItemStackHandler createGhostInventory()
protected abstract void readData(T contentHolder)
protected abstract void saveData(T contentHolder)
protected abstract boolean allowRepeats()
protected void init(net.minecraft.entity.player.PlayerInventory inv,
T contentHolder)
public void clearContents()
clearContents in interface IClearableContainerprotected void addPlayerSlots(int x,
int y)
public 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.Containerpublic void removed(net.minecraft.entity.player.PlayerEntity playerIn)
removed in class net.minecraft.inventory.container.Container