net.minecraft.world.inventory

public abstract class AbstractContainerMenu

ctc
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.class_1703
net.minecraft.screen.ScreenHandler
net.minecraft.world.inventory.Container

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
m
LOGGER
field_36534
LOGGER
public static final int
a
SLOT_CLICKED_OUTSIDE
field_30730
EMPTY_SPACE_SLOT_INDEX
public static final int
b
QUICKCRAFT_TYPE_CHARITABLE
field_30731
field_30731
public static final int
c
QUICKCRAFT_TYPE_GREEDY
field_30732
field_30732
public static final int
d
QUICKCRAFT_TYPE_CLONE
field_30733
field_30733
public static final int
e
QUICKCRAFT_HEADER_START
field_30734
field_30734
public static final int
f
QUICKCRAFT_HEADER_CONTINUE
field_30735
field_30735
public static final int
g
QUICKCRAFT_HEADER_END
field_30736
field_30736
public static final int
h
CARRIED_SLOT_SIZE
field_30737
field_30737
public static final int
i
SLOTS_PER_ROW
field_52557
field_52557
public static final int
j
SLOT_SIZE
field_52558
field_52558
private final NonNullList<ItemStack>
n
lastSlots
field_7764
trackedStacks
public final NonNullList<Slot>
k
slots
field_7761
slots
private final List<DataSlot>
o
dataSlots
field_17285
properties
private ItemStack
p
carried
field_29205
cursorStack
private final NonNullList<ItemStack>
q
remoteSlots
field_29206
previousTrackedStacks
private final it.unimi.dsi.fastutil.ints.IntList
r
remoteDataSlots
field_29559
trackedPropertyValues
private ItemStack
s
remoteCarried
field_29207
previousCursorStack
private int
t
stateId
field_34024
revision
private final MenuType<?>
u
menuType
field_17493
type
public final int
l
containerId
field_7763
syncId
private int
v
quickcraftType
field_7762
quickCraftButton
private int
w
quickcraftStatus
field_7759
quickCraftStage
private final Set<Slot>
x
quickcraftSlots
field_7757
quickCraftSlots
private final List<ContainerListener>
y
containerListeners
field_7765
listeners
private ContainerSynchronizer
z
synchronizer
field_29208
syncHandler
private boolean
A
suppressRemoteUpdates
field_29209
disableSync

Constructor summary

ModifierConstructor
protected (MenuType<?> type, int syncId)

Method summary

Modifier and TypeMethod
protected void
a(btc arg0, int arg1, int arg2)
addInventoryHotbarSlots(Container arg0, int arg1, int arg2)
method_61622(class_1263 arg0, int arg1, int arg2)
addPlayerHotbarSlots(Inventory playerInventory, int left, int y)
protected void
b(btc arg0, int arg1, int arg2)
addInventoryExtendedSlots(Container arg0, int arg1, int arg2)
method_61623(class_1263 arg0, int arg1, int arg2)
addPlayerInventorySlots(Inventory playerInventory, int left, int top)
protected void
c(btc arg0, int arg1, int arg2)
addStandardInventorySlots(Container arg0, int arg1, int arg2)
method_61624(class_1263 arg0, int arg1, int arg2)
addPlayerSlots(Inventory playerInventory, int left, int top)
protected static boolean
a(ctp arg0, cpx arg1, dkm arg2)
stillValid(ContainerLevelAccess arg0, Player arg1, Block arg2)
method_17695(class_3914 arg0, class_1657 arg1, class_2248 arg2)
canUse(ScreenHandlerContext context, PlayerEntity player, Block block)
public MenuType<?>
a()
getType()
method_17358()
getType()
protected static void
a(btc arg0, int arg1)
checkContainerSize(Container arg0, int arg1)
method_17359(class_1263 arg0, int arg1)
checkSize(Inventory inventory, int expectedSize)
protected static void
a(cto arg0, int arg1)
checkContainerDataCount(ContainerData arg0, int arg1)
method_17361(class_3913 arg0, int arg1)
checkDataCount(PropertyDelegate data, int expectedCount)
public boolean
a(int arg0)
isValidSlotIndex(int arg0)
method_40442(int arg0)
isValid(int slot)
protected Slot
a(cuz arg0)
addSlot(Slot arg0)
method_7621(class_1735 arg0)
addSlot(Slot slot)
protected DataSlot
a(ctw arg0)
addDataSlot(DataSlot arg0)
method_17362(class_3915 arg0)
addProperty(Property property)
protected void
a(cto arg0)
addDataSlots(ContainerData arg0)
method_17360(class_3913 arg0)
addProperties(PropertyDelegate propertyDelegate)
public void
a(ctq arg0)
addSlotListener(ContainerListener arg0)
method_7596(class_1712 arg0)
addListener(ScreenHandlerListener listener)
public void
a(ctr arg0)
setSynchronizer(ContainerSynchronizer arg0)
method_34248(class_5916 arg0)
updateSyncHandler(ScreenHandlerSyncHandler handler)
public void
b()
sendAllDataToRemote()
method_34252()
syncState()
public void
b(ctq arg0)
removeSlotListener(ContainerListener arg0)
method_7603(class_1712 arg0)
removeListener(ScreenHandlerListener listener)
public NonNullList<ItemStack>
c()
getItems()
method_7602()
getStacks()
public void
d()
broadcastChanges()
method_7623()
sendContentUpdates()
public void
e()
broadcastFullState()
method_37420()
updateToClient()
private void
d(int arg0, int arg1)
updateDataSlotListeners(int arg0, int arg1)
method_37419(int arg0, int arg1)
notifyPropertyUpdate(int index, int value)
private void
a(int arg0, cxp arg1, Supplier<cxp> arg2)
triggerSlotListeners(int arg0, ItemStack arg1, Supplier<ItemStack> arg2)
method_34246(int arg0, class_1799 arg1, Supplier<class_1799> arg2)
updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
private void
b(int arg0, cxp arg1, Supplier<cxp> arg2)
synchronizeSlotToRemote(int arg0, ItemStack arg1, Supplier<ItemStack> arg2)
method_34253(int arg0, class_1799 arg1, Supplier<class_1799> arg2)
checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
private void
e(int arg0, int arg1)
synchronizeDataSlotToRemote(int arg0, int arg1)
method_34715(int arg0, int arg1)
checkPropertyUpdates(int id, int value)
private void
l()
synchronizeCarriedToRemote()
method_34258()
checkCursorStackUpdates()
public void
a(int arg0, cxp arg1)
setRemoteSlot(int arg0, ItemStack arg1)
method_34245(int arg0, class_1799 arg1)
setPreviousTrackedSlot(int slot, ItemStack stack)
public void
b(int arg0, cxp arg1)
setRemoteSlotNoCopy(int arg0, ItemStack arg1)
method_37449(int arg0, class_1799 arg1)
setPreviousTrackedSlotMutable(int slot, ItemStack stack)
public void
a(cxp arg0)
setRemoteCarried(ItemStack arg0)
method_34250(class_1799 arg0)
setPreviousCursorStack(ItemStack stack)
public boolean
a(cpx arg0, int arg1)
clickMenuButton(Player arg0, int arg1)
method_7604(class_1657 arg0, int arg1)
onButtonClick(PlayerEntity player, int id)
public Slot
b(int arg0)
getSlot(int arg0)
method_7611(int arg0)
getSlot(int index)
public abstract ItemStack
b(cpx arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity player, int slot)
public void
a(int arg0, int arg1)
setSelectedBundleItemIndex(int arg0, int arg1)
method_61621(int arg0, int arg1)
selectBundleStack(int slot, int selectedStack)
public void
a(int arg0, int arg1, ctn arg2, cpx arg3)
clicked(int arg0, int arg1, ClickType arg2, Player arg3)
method_7593(int arg0, int arg1, class_1713 arg2, class_1657 arg3)
onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
private void
b(int arg0, int arg1, ctn arg2, cpx arg3)
doClick(int arg0, int arg1, ClickType arg2, Player arg3)
method_30010(int arg0, int arg1, class_1713 arg2, class_1657 arg3)
internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
private boolean
a(cpx arg0, ctm arg1, cuz arg2, cxp arg3, cxp arg4)
tryItemClickBehaviourOverride(Player arg0, ClickAction arg1, Slot arg2, ItemStack arg3, ItemStack arg4)
method_45409(class_1657 arg0, class_5536 arg1, class_1735 arg2, class_1799 arg3, class_1799 arg4)
handleSlotClick(PlayerEntity player, ClickType clickType, Slot slot, ItemStack stack, ItemStack cursorStack)
private SlotAccess
m()
createCarriedSlotAccess()
method_34259()
getCursorStackReference()
public boolean
a(cxp arg0, cuz arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack stack, Slot slot)
public void
a(cpx arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
onClosed(PlayerEntity player)
private static void
a(cpx arg0, cxp arg1)
dropOrPlaceInInventory(Player arg0, ItemStack arg1)
method_64192(class_1657 arg0, class_1799 arg1)
offerOrDropStack(PlayerEntity player, ItemStack stack)
protected void
a(cpx arg0, btc arg1)
clearContainer(Player arg0, Container arg1)
method_7607(class_1657 arg0, class_1263 arg1)
dropInventory(PlayerEntity player, Inventory inventory)
public void
a(btc arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory inventory)
public void
a(int arg0, int arg1, cxp arg2)
setItem(int arg0, int arg1, ItemStack arg2)
method_7619(int arg0, int arg1, class_1799 arg2)
setStackInSlot(int slot, int revision, ItemStack stack)
public void
a(int arg0, List<cxp> arg1, cxp arg2)
initializeContents(int arg0, List<ItemStack> arg1, ItemStack arg2)
method_7610(int arg0, List<class_1799> arg1, class_1799 arg2)
updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack)
public void
b(int arg0, int arg1)
setData(int arg0, int arg1)
method_7606(int arg0, int arg1)
setProperty(int id, int value)
public abstract boolean
b(cpx arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity player)
protected boolean
a(cxp arg0, int arg1, int arg2, boolean arg3)
moveItemStackTo(ItemStack arg0, int arg1, int arg2, boolean arg3)
method_7616(class_1799 arg0, int arg1, int arg2, boolean arg3)
insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
public static int
c(int arg0)
getQuickcraftType(int arg0)
method_7620(int arg0)
unpackQuickCraftButton(int quickCraftData)
public static int
d(int arg0)
getQuickcraftHeader(int arg0)
method_7594(int arg0)
unpackQuickCraftStage(int quickCraftData)
public static int
c(int arg0, int arg1)
getQuickcraftMask(int arg0, int arg1)
method_7591(int arg0, int arg1)
packQuickCraftData(int quickCraftStage, int buttonId)
public static boolean
a(int arg0, cpx arg1)
isValidQuickcraftType(int arg0, Player arg1)
method_7600(int arg0, class_1657 arg1)
shouldQuickCraftContinue(int stage, PlayerEntity player)
protected void
f()
resetQuickCraft()
method_7605()
endQuickCraft()
public static boolean
a(cuz arg0, cxp arg1, boolean arg2)
canItemQuickReplace(Slot arg0, ItemStack arg1, boolean arg2)
method_7592(class_1735 arg0, class_1799 arg1, boolean arg2)
canInsertItemIntoSlot(Slot slot, ItemStack stack, boolean allowOverflow)
public static int
a(Set<cuz> arg0, int arg1, cxp arg2)
getQuickCraftPlaceCount(Set<Slot> arg0, int arg1, ItemStack arg2)
method_7617(Set<class_1735> arg0, int arg1, class_1799 arg2)
calculateStackSize(Set<Slot> slots, int mode, ItemStack stack)
public boolean
b(cuz arg0)
canDragTo(Slot arg0)
method_7615(class_1735 arg0)
canInsertIntoSlot(Slot slot)
public static int
a(dux arg0)
getRedstoneSignalFromBlockEntity(BlockEntity arg0)
method_7608(class_2586 arg0)
calculateComparatorOutput(BlockEntity entity)
public static int
b(btc arg0)
getRedstoneSignalFromContainer(Container arg0)
method_7618(class_1263 arg0)
calculateComparatorOutput(Inventory inventory)
public void
b(cxp arg0)
setCarried(ItemStack arg0)
method_34254(class_1799 arg0)
setCursorStack(ItemStack stack)
public ItemStack
g()
getCarried()
method_34255()
getCursorStack()
public void
h()
suppressRemoteUpdates()
method_34256()
disableSyncing()
public void
i()
resumeRemoteUpdates()
method_34257()
enableSyncing()
public void
a(ctc arg0)
transferState(AbstractContainerMenu arg0)
method_34247(class_1703 arg0)
copySharedSlots(ScreenHandler handler)
public OptionalInt
b(btc arg0, int arg1)
findSlot(Container arg0, int arg1)
method_37418(class_1263 arg0, int arg1)
getSlotIndex(Inventory inventory, int index)
public int
j()
getStateId()
method_37421()
getRevision()
public int
k()
incrementStateId()
method_37422()
nextRevision()