net.minecraft.world.inventory

public abstract class AbstractContainerMenu

cib
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.class_1703
net.minecraft.screen.ScreenHandler
net.minecraft.src.C_1226_
net.minecraft.world.inventory.Container

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
k
LOGGER
field_36534
LOGGER
f_207773_
public static final int
a
SLOT_CLICKED_OUTSIDE
field_30730
EMPTY_SPACE_SLOT_INDEX
f_150385_
public static final int
b
QUICKCRAFT_TYPE_CHARITABLE
field_30731
field_30731
f_150386_
public static final int
c
QUICKCRAFT_TYPE_GREEDY
field_30732
field_30732
f_150387_
public static final int
d
QUICKCRAFT_TYPE_CLONE
field_30733
field_30733
f_150388_
public static final int
e
QUICKCRAFT_HEADER_START
field_30734
field_30734
f_150389_
public static final int
f
QUICKCRAFT_HEADER_CONTINUE
field_30735
field_30735
f_150390_
public static final int
g
QUICKCRAFT_HEADER_END
field_30736
field_30736
f_150391_
public static final int
h
CARRIED_SLOT_SIZE
field_30737
field_30737
f_150392_
private final NonNullList<ItemStack>
l
lastSlots
field_7764
trackedStacks
f_38841_
public final NonNullList<Slot>
i
slots
field_7761
slots
f_38839_
private final List<DataSlot>
m
dataSlots
field_17285
properties
f_38842_
private ItemStack
n
carried
field_29205
cursorStack
f_150393_
private final NonNullList<ItemStack>
o
remoteSlots
field_29206
previousTrackedStacks
f_150394_
private final it.unimi.dsi.fastutil.ints.IntList
p
remoteDataSlots
field_29559
trackedPropertyValues
f_150395_
private ItemStack
q
remoteCarried
field_29207
previousCursorStack
f_150396_
private int
r
stateId
field_34024
revision
f_182405_
private final MenuType<?>
s
menuType
field_17493
type
f_38843_
public final int
j
containerId
field_7763
syncId
f_38840_
private int
t
quickcraftType
field_7762
quickCraftButton
f_38845_
private int
u
quickcraftStatus
field_7759
quickCraftStage
f_38846_
private final Set<Slot>
v
quickcraftSlots
field_7757
quickCraftSlots
f_38847_
private final List<ContainerListener>
w
containerListeners
field_7765
listeners
f_38848_
private ContainerSynchronizer
x
synchronizer
field_29208
syncHandler
f_150397_
private boolean
y
suppressRemoteUpdates
field_29209
disableSync
f_150398_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected static boolean
a(cim arg0, cfi arg1, cwq 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)
m_38889_(C_1247_ p_38890_, C_1141_ p_38891_, C_1706_ p_38892_)
public MenuType<?>
a()
getType()
method_17358()
getType()
m_6772_()
protected static void
a(bju arg0, int arg1)
checkContainerSize(Container arg0, int arg1)
method_17359(class_1263 arg0, int arg1)
checkSize(Inventory inventory, int expectedSize)
m_38869_(C_464_ p_38870_, int p_38871_)
protected static void
a(cil arg0, int arg1)
checkContainerDataCount(ContainerData arg0, int arg1)
method_17361(class_3913 arg0, int arg1)
checkDataCount(PropertyDelegate data, int expectedCount)
m_38886_(C_1246_ p_38887_, int p_38888_)
public boolean
a(int arg0)
isValidSlotIndex(int arg0)
method_40442(int arg0)
isValid(int slot)
m_207775_(int arg0)
protected Slot
a(cjw arg0)
addSlot(Slot arg0)
method_7621(class_1735 arg0)
addSlot(Slot slot)
m_38897_(C_1305_ arg0)
protected DataSlot
a(cit arg0)
addDataSlot(DataSlot arg0)
method_17362(class_3915 arg0)
addProperty(Property property)
m_38895_(C_1253_ arg0)
protected void
a(cil arg0)
addDataSlots(ContainerData arg0)
method_17360(class_3913 arg0)
addProperties(PropertyDelegate propertyDelegate)
m_38884_(C_1246_ arg0)
public void
a(cin arg0)
addSlotListener(ContainerListener arg0)
method_7596(class_1712 arg0)
addListener(ScreenHandlerListener listener)
m_38893_(C_1250_ arg0)
public void
a(cio arg0)
setSynchronizer(ContainerSynchronizer arg0)
method_34248(class_5916 arg0)
updateSyncHandler(ScreenHandlerSyncHandler handler)
m_150416_(C_141164_ arg0)
public void
b()
sendAllDataToRemote()
method_34252()
syncState()
m_150429_()
public void
b(cin arg0)
removeSlotListener(ContainerListener arg0)
method_7603(class_1712 arg0)
removeListener(ScreenHandlerListener listener)
m_38943_(C_1250_ arg0)
public NonNullList<ItemStack>
c()
getItems()
method_7602()
getStacks()
m_38927_()
public void
d()
broadcastChanges()
method_7623()
sendContentUpdates()
m_38946_()
public void
e()
broadcastFullState()
method_37420()
updateToClient()
m_182423_()
private void
c(int arg0, int arg1)
updateDataSlotListeners(int arg0, int arg1)
method_37419(int arg0, int arg1)
notifyPropertyUpdate(int index, int value)
m_182420_(int p_182422_, int arg1)
private void
a(int arg0, cmy arg1, Supplier<cmy> 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)
m_150407_(int p_150409_, C_1391_ p_150410_, Supplier<C_1391_> arg2)
private void
b(int arg0, cmy arg1, Supplier<cmy> 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)
m_150435_(int p_150437_, C_1391_ p_150438_, Supplier<C_1391_> arg2)
private void
d(int arg0, int arg1)
synchronizeDataSlotToRemote(int arg0, int arg1)
method_34715(int arg0, int arg1)
checkPropertyUpdates(int id, int value)
m_150440_(int p_150442_, int arg1)
private void
l()
synchronizeCarriedToRemote()
method_34258()
checkCursorStackUpdates()
m_150445_()
public void
a(int arg0, cmy arg1)
setRemoteSlot(int arg0, ItemStack arg1)
method_34245(int arg0, class_1799 arg1)
setPreviousTrackedSlot(int slot, ItemStack stack)
m_150404_(int p_150406_, C_1391_ arg1)
public void
b(int arg0, cmy arg1)
setRemoteSlotNoCopy(int arg0, ItemStack arg1)
method_37449(int arg0, class_1799 arg1)
setPreviousTrackedSlotMutable(int slot, ItemStack stack)
m_182414_(int p_182416_, C_1391_ arg1)
public void
a(cmy arg0)
setRemoteCarried(ItemStack arg0)
method_34250(class_1799 arg0)
setPreviousCursorStack(ItemStack stack)
m_150422_(C_1391_ arg0)
public boolean
b(cfi arg0, int arg1)
clickMenuButton(Player arg0, int arg1)
method_7604(class_1657 arg0, int arg1)
onButtonClick(PlayerEntity player, int id)
m_6366_(C_1141_ p_38876_, int arg1)
public Slot
b(int arg0)
getSlot(int arg0)
method_7611(int arg0)
getSlot(int index)
m_38853_(int arg0)
public abstract ItemStack
a(cfi arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity player, int slot)
m_7648_(C_1141_ p_38942_, int arg1)
public void
a(int arg0, int arg1, cik arg2, cfi 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)
m_150399_(int p_150401_, int p_150402_, C_1245_ p_150403_, C_1141_ arg3)
private void
b(int arg0, int arg1, cik arg2, cfi 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)
m_150430_(int p_150432_, int p_150433_, C_1245_ p_150434_, C_1141_ arg3)
private boolean
a(cfi arg0, cij arg1, cjw arg2, cmy arg3, cmy 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)
m_246200_(C_1141_ p_250300_, C_141163_ p_249384_, C_1305_ p_251073_, C_1391_ p_252026_, C_1391_ arg4)
private SlotAccess
m()
createCarriedSlotAccess()
method_34259()
getCursorStackReference()
m_150446_()
public boolean
a(cmy arg0, cjw arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack stack, Slot slot)
m_5882_(C_1391_ p_38909_, C_1305_ arg1)
public void
b(cfi arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
onClosed(PlayerEntity player)
m_6877_(C_1141_ arg0)
protected void
a(cfi arg0, bju arg1)
clearContainer(Player arg0, Container arg1)
method_7607(class_1657 arg0, class_1263 arg1)
dropInventory(PlayerEntity player, Inventory inventory)
m_150411_(C_1141_ p_150413_, C_464_ arg1)
public void
a(bju arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory inventory)
m_6199_(C_464_ arg0)
public void
a(int arg0, int arg1, cmy arg2)
setItem(int arg0, int arg1, ItemStack arg2)
method_7619(int arg0, int arg1, class_1799 arg2)
setStackInSlot(int slot, int revision, ItemStack stack)
m_182406_(int p_182408_, int p_182409_, C_1391_ arg2)
public void
a(int arg0, List<cmy> arg1, cmy 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)
m_182410_(int p_182412_, List<C_1391_> p_182413_, C_1391_ arg2)
public void
a(int arg0, int arg1)
setData(int arg0, int arg1)
method_7606(int arg0, int arg1)
setProperty(int id, int value)
m_7511_(int p_38856_, int arg1)
public abstract boolean
a(cfi arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity player)
m_6875_(C_1141_ arg0)
protected boolean
a(cmy 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)
m_38903_(C_1391_ p_38905_, int p_38906_, int p_38907_, boolean arg3)
public static int
c(int arg0)
getQuickcraftType(int arg0)
method_7620(int arg0)
unpackQuickCraftButton(int quickCraftData)
m_38928_(int p_38929_)
public static int
d(int arg0)
getQuickcraftHeader(int arg0)
method_7594(int arg0)
unpackQuickCraftStage(int quickCraftData)
m_38947_(int p_38948_)
public static int
b(int arg0, int arg1)
getQuickcraftMask(int arg0, int arg1)
method_7591(int arg0, int arg1)
packQuickCraftData(int quickCraftStage, int buttonId)
m_38930_(int p_38931_, int p_38932_)
public static boolean
a(int arg0, cfi arg1)
isValidQuickcraftType(int arg0, Player arg1)
method_7600(int arg0, class_1657 arg1)
shouldQuickCraftContinue(int stage, PlayerEntity player)
m_38862_(int p_38863_, C_1141_ p_38864_)
protected void
f()
resetQuickCraft()
method_7605()
endQuickCraft()
m_38951_()
public static boolean
a(cjw arg0, cmy 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)
m_38899_(C_1305_ p_38900_, C_1391_ p_38901_, boolean p_38902_)
public static int
a(Set<cjw> arg0, int arg1, cmy 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)
m_278794_(Set<C_1305_> p_279393_, int p_279288_, C_1391_ p_279172_)
public boolean
b(cjw arg0)
canDragTo(Slot arg0)
method_7615(class_1735 arg0)
canInsertIntoSlot(Slot slot)
m_5622_(C_1305_ arg0)
public static int
a(dgv arg0)
getRedstoneSignalFromBlockEntity(BlockEntity arg0)
method_7608(class_2586 arg0)
calculateComparatorOutput(BlockEntity entity)
m_38918_(C_1991_ p_38919_)
public static int
b(bju arg0)
getRedstoneSignalFromContainer(Container arg0)
method_7618(class_1263 arg0)
calculateComparatorOutput(Inventory inventory)
m_38938_(C_464_ p_38939_)
public void
b(cmy arg0)
setCarried(ItemStack arg0)
method_34254(class_1799 arg0)
setCursorStack(ItemStack stack)
m_142503_(C_1391_ arg0)
public ItemStack
g()
getCarried()
method_34255()
getCursorStack()
m_142621_()
public void
h()
suppressRemoteUpdates()
method_34256()
disableSyncing()
m_150443_()
public void
i()
resumeRemoteUpdates()
method_34257()
enableSyncing()
m_150444_()
public void
a(cib arg0)
transferState(AbstractContainerMenu arg0)
method_34247(class_1703 arg0)
copySharedSlots(ScreenHandler handler)
m_150414_(C_1226_ arg0)
public OptionalInt
b(bju arg0, int arg1)
findSlot(Container arg0, int arg1)
method_37418(class_1263 arg0, int arg1)
getSlotIndex(Inventory inventory, int index)
m_182417_(C_464_ p_182419_, int arg1)
public int
j()
getStateId()
method_37421()
getRevision()
m_182424_()
public int
k()
incrementStateId()
method_37422()
nextRevision()
m_182425_()