public abstract class USyncedContainer extends UContainer implements ISyncedData
UContainer.SlotHandlerFunction, UContainer.SlotInventoryFunction| Constructor and Description |
|---|
USyncedContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id)
This is the server constructor for the container.
|
USyncedContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.network.PacketBuffer buffer)
This is the client constructor for the container.
|
appendInventory, appendInventory, appendInventory, appendInventory, appendPlayerInventory, canInteractWithaddListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, canMergeSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, transferStackInSlot, updateProgressBarclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandleFromClient, handleFromServer, sendDataToClient, sendDataToClient, sendDataToServer, sendDataToServer, sendToClient, sendToServerpublic USyncedContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id)
type - Container typeid - Window idpublic USyncedContainer(net.minecraft.inventory.container.ContainerType<?> type,
int id,
net.minecraft.network.PacketBuffer buffer)
type - Container typeid - Window idbuffer - Initial data (specified with NetworkHooks#openGui(player, containerSupplier,extraDataWriter))