net.minecraft.world.inventory

public abstract class AbstractContainerMenu

cpw
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.class_1703
net.minecraft.unmapped.C_mkrkudpa
net.minecraft.screen.ScreenHandler
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
f_wmdvjomu
LOGGER
LOGGER
f_207773_
public static final int
a
SLOT_CLICKED_OUTSIDE
field_30730
f_dzpzsehr
EMPTY_SPACE_SLOT_INDEX
EMPTY_SPACE_SLOT_INDEX
f_150385_
public static final int
b
QUICKCRAFT_TYPE_CHARITABLE
field_30731
f_zluvtkbo
field_30731
f_150386_
public static final int
c
QUICKCRAFT_TYPE_GREEDY
field_30732
f_mpkxtviw
field_30732
f_150387_
public static final int
d
QUICKCRAFT_TYPE_CLONE
field_30733
f_vepiarfr
field_30733
f_150388_
public static final int
e
QUICKCRAFT_HEADER_START
field_30734
f_isbvaloe
field_30734
f_150389_
public static final int
f
QUICKCRAFT_HEADER_CONTINUE
field_30735
f_ttexomut
field_30735
f_150390_
public static final int
g
QUICKCRAFT_HEADER_END
field_30736
f_qtsdwhzg
field_30736
f_150391_
public static final int
h
CARRIED_SLOT_SIZE
field_30737
f_tmudhqmb
field_30737
f_150392_
private final NonNullList<ItemStack>
l
lastSlots
field_7764
f_vhrlzmvv
trackedStacks
trackedStacks
f_38841_
public final NonNullList<Slot>
i
slots
field_7761
f_hxgogfad
slots
slots
f_38839_
private final List<DataSlot>
m
dataSlots
field_17285
f_ohsebxnx
properties
properties
f_38842_
private ItemStack
n
carried
field_29205
f_ncygejdp
cursorStack
cursorStack
f_150393_
private final NonNullList<ItemStack>
o
remoteSlots
field_29206
f_deikmtob
previousTrackedStacks
previousTrackedStacks
f_150394_
private final it.unimi.dsi.fastutil.ints.IntList
p
remoteDataSlots
field_29559
f_zfnahkkj
trackedPropertyValues
trackedPropertyValues
f_150395_
private ItemStack
q
remoteCarried
field_29207
f_qudznxqx
previousCursorStack
previousCursorStack
f_150396_
private int
r
stateId
field_34024
f_ljmbkbhb
revision
revision
f_182405_
private final MenuType<?>
s
menuType
field_17493
f_evbfmbxv
type
type
f_38843_
public final int
j
containerId
field_7763
f_sqbckkwj
syncId
syncId
f_38840_
private int
t
quickcraftType
field_7762
f_utnpqaht
quickCraftButton
quickCraftButton
f_38845_
private int
u
quickcraftStatus
field_7759
f_vfmcowfs
quickCraftStage
quickCraftStage
f_38846_
private final Set<Slot>
v
quickcraftSlots
field_7757
f_nowhfpaa
quickCraftSlots
quickCraftSlots
f_38847_
private final List<ContainerListener>
w
containerListeners
field_7765
f_fsfvuoam
listeners
listeners
f_38848_
private ContainerSynchronizer
x
synchronizer
field_29208
f_filigdkx
syncHandler
syncHandler
f_150397_
private boolean
y
suppressRemoteUpdates
field_29209
f_glybminc
disableSync
disableSync
f_150398_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected static boolean
a(cqh arg0, cmz arg1, dfb arg2)
stillValid(ContainerLevelAccess arg0, Player arg1, Block arg2)
method_17695(class_3914 arg0, class_1657 arg1, class_2248 arg2)
m_twttiitc(C_gsmfcjha arg0, C_jzrpycqo arg1, C_mmxmpdoq arg2)
canUse(ScreenHandlerContext context, PlayerEntity player, Block block)
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()
m_gdlxijre()
getType()
getType()
m_6772_()
protected static void
a(bqp arg0, int arg1)
checkContainerSize(Container arg0, int arg1)
method_17359(class_1263 arg0, int arg1)
m_wptmujfs(C_pjtstjoq arg0, int arg1)
checkSize(Inventory inventory, int expectedSize)
checkSize(Inventory inventory, int expectedSize)
m_38869_(C_464_ p_38870_, int p_38871_)
protected static void
a(cqg arg0, int arg1)
checkContainerDataCount(ContainerData arg0, int arg1)
method_17361(class_3913 arg0, int arg1)
m_rcfnfrjy(C_fwwsyhuv arg0, int arg1)
checkDataCount(PropertyDelegate data, int expectedCount)
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)
m_gicqrqdm(int arg0)
isValid(int slot)
isValidSlotIndex(int slot)
m_207775_(int arg0)
protected Slot
a(crr arg0)
addSlot(Slot arg0)
method_7621(class_1735 arg0)
m_nnckitdl(C_nhvqfffd arg0)
addSlot(Slot slot)
addSlot(Slot slot)
m_38897_(C_1305_ arg0)
protected DataSlot
a(cqo arg0)
addDataSlot(DataSlot arg0)
method_17362(class_3915 arg0)
m_yduzhebn(C_xzbkunds arg0)
addProperty(Property property)
addProperty(Property property)
m_38895_(C_1253_ arg0)
protected void
a(cqg arg0)
addDataSlots(ContainerData arg0)
method_17360(class_3913 arg0)
m_tajudxxz(C_fwwsyhuv arg0)
addProperties(PropertyDelegate propertyDelegate)
addProperties(PropertyDelegate propertyDelegate)
m_38884_(C_1246_ arg0)
public void
a(cqi arg0)
addSlotListener(ContainerListener arg0)
method_7596(class_1712 arg0)
m_lwqctrjs(C_juruncbf arg0)
addListener(ScreenHandlerListener listener)
addListener(ScreenHandlerListener listener)
m_38893_(C_1250_ arg0)
public void
a(cqj arg0)
setSynchronizer(ContainerSynchronizer arg0)
method_34248(class_5916 arg0)
m_izwotjcw(C_ccogdvwm arg0)
updateSyncHandler(ScreenHandlerSyncHandler handler)
updateSyncHandler(ScreenHandlerSyncHandler handler)
m_150416_(C_141164_ arg0)
public void
b()
sendAllDataToRemote()
method_34252()
m_mzacudbm()
syncState()
syncState()
m_150429_()
public void
b(cqi arg0)
removeSlotListener(ContainerListener arg0)
method_7603(class_1712 arg0)
m_jtxzzylc(C_juruncbf arg0)
removeListener(ScreenHandlerListener listener)
removeListener(ScreenHandlerListener listener)
m_38943_(C_1250_ arg0)
public NonNullList<ItemStack>
c()
getItems()
method_7602()
m_eaptcgiv()
getStacks()
getStacks()
m_38927_()
public void
d()
broadcastChanges()
method_7623()
m_riyzljzo()
sendContentUpdates()
sendContentUpdates()
m_38946_()
public void
e()
broadcastFullState()
method_37420()
m_elojqpdj()
updateToClient()
updateToClient()
m_182423_()
private void
c(int arg0, int arg1)
updateDataSlotListeners(int arg0, int arg1)
method_37419(int arg0, int arg1)
m_xbcsosjt(int arg0, int arg1)
notifyPropertyUpdate(int index, int value)
notifyPropertyUpdate(int index, int value)
m_182420_(int p_182422_, int arg1)
private void
a(int arg0, cur arg1, Supplier<cur> arg2)
triggerSlotListeners(int arg0, ItemStack arg1, Supplier<ItemStack> arg2)
method_34246(int arg0, class_1799 arg1, Supplier<class_1799> arg2)
m_mjpdgvrl(int arg0, C_sddaxwyk arg1, Supplier<C_sddaxwyk> arg2)
updateTrackedSlot(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
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, cur arg1, Supplier<cur> arg2)
synchronizeSlotToRemote(int arg0, ItemStack arg1, Supplier<ItemStack> arg2)
method_34253(int arg0, class_1799 arg1, Supplier<class_1799> arg2)
m_vbkxaaxc(int arg0, C_sddaxwyk arg1, Supplier<C_sddaxwyk> arg2)
checkSlotUpdates(int slot, ItemStack stack, Supplier<ItemStack> copySupplier)
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)
m_xucrqdwn(int arg0, int arg1)
checkPropertyUpdates(int id, int value)
checkPropertyUpdates(int id, int value)
m_150440_(int p_150442_, int arg1)
private void
l()
synchronizeCarriedToRemote()
method_34258()
m_ijbtjwai()
checkCursorStackUpdates()
checkCursorStackUpdates()
m_150445_()
public void
a(int arg0, cur arg1)
setRemoteSlot(int arg0, ItemStack arg1)
method_34245(int arg0, class_1799 arg1)
m_rhgvjirq(int arg0, C_sddaxwyk arg1)
setPreviousTrackedSlot(int slot, ItemStack stack)
setPreviousTrackedSlot(int slot, ItemStack stack)
m_150404_(int p_150406_, C_1391_ arg1)
public void
b(int arg0, cur arg1)
setRemoteSlotNoCopy(int arg0, ItemStack arg1)
method_37449(int arg0, class_1799 arg1)
m_fyvkvqaw(int arg0, C_sddaxwyk arg1)
setPreviousTrackedSlotMutable(int slot, ItemStack stack)
setPreviousTrackedSlotMutable(int slot, ItemStack stack)
m_182414_(int p_182416_, C_1391_ arg1)
public void
a(cur arg0)
setRemoteCarried(ItemStack arg0)
method_34250(class_1799 arg0)
m_spcnmyyt(C_sddaxwyk arg0)
setPreviousCursorStack(ItemStack stack)
setPreviousCursorStack(ItemStack stack)
m_150422_(C_1391_ arg0)
public boolean
b(cmz arg0, int arg1)
clickMenuButton(Player arg0, int arg1)
method_7604(class_1657 arg0, int arg1)
m_ydpykrle(C_jzrpycqo arg0, int arg1)
onButtonClick(PlayerEntity player, int id)
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)
m_ekmjdrko(int arg0)
getSlot(int index)
getSlot(int index)
m_38853_(int arg0)
public abstract ItemStack
a(cmz arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
m_oujzgmbb(C_jzrpycqo arg0, int arg1)
quickMove(PlayerEntity player, int slot)
quickTransfer(PlayerEntity player, int fromIndex)
m_7648_(C_1141_ p_38942_, int arg1)
public void
a(int arg0, int arg1, cqf arg2, cmz arg3)
clicked(int arg0, int arg1, ClickType arg2, Player arg3)
method_7593(int arg0, int arg1, class_1713 arg2, class_1657 arg3)
m_gdprhdol(int arg0, int arg1, C_viureuve arg2, C_jzrpycqo arg3)
onSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
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, cqf arg2, cmz arg3)
doClick(int arg0, int arg1, ClickType arg2, Player arg3)
method_30010(int arg0, int arg1, class_1713 arg2, class_1657 arg3)
m_nqfgpzfl(int arg0, int arg1, C_viureuve arg2, C_jzrpycqo arg3)
internalOnSlotClick(int slotIndex, int button, SlotActionType actionType, PlayerEntity player)
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(cmz arg0, cqe arg1, crr arg2, cur arg3, cur 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)
m_qjjszeul(C_jzrpycqo arg0, C_qcuteihm arg1, C_nhvqfffd arg2, C_sddaxwyk arg3, C_sddaxwyk arg4)
handleSlotClick(PlayerEntity player, ClickType clickType, Slot slot, ItemStack stack, ItemStack cursorStack)
tryItemClickBehaviorOverride(PlayerEntity player, ClickType clickType, Slot slot, ItemStack slotStack, 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()
m_njgcxjgd()
getCursorStackReference()
getCursorStackReference()
m_150446_()
public boolean
a(cur arg0, crr arg1)
canTakeItemForPickAll(ItemStack arg0, Slot arg1)
method_7613(class_1799 arg0, class_1735 arg1)
m_pmldxlql(C_sddaxwyk arg0, C_nhvqfffd arg1)
canInsertIntoSlot(ItemStack stack, Slot slot)
canInsertIntoSlot(ItemStack stack, Slot slot)
m_5882_(C_1391_ p_38909_, C_1305_ arg1)
public void
b(cmz arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
m_bftcwuek(C_jzrpycqo arg0)
onClosed(PlayerEntity player)
close(PlayerEntity player)
m_6877_(C_1141_ arg0)
protected void
a(cmz arg0, bqp arg1)
clearContainer(Player arg0, Container arg1)
method_7607(class_1657 arg0, class_1263 arg1)
m_jmxluqeu(C_jzrpycqo arg0, C_pjtstjoq arg1)
dropInventory(PlayerEntity player, Inventory inventory)
dropInventory(PlayerEntity player, Inventory inventory)
m_150411_(C_1141_ p_150413_, C_464_ arg1)
public void
a(bqp arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
m_heazfhiy(C_pjtstjoq arg0)
onContentChanged(Inventory inventory)
onContentChanged(Inventory inventory)
m_6199_(C_464_ arg0)
public void
a(int arg0, int arg1, cur arg2)
setItem(int arg0, int arg1, ItemStack arg2)
method_7619(int arg0, int arg1, class_1799 arg2)
m_egbeyyjm(int arg0, int arg1, C_sddaxwyk arg2)
setStackInSlot(int slot, int revision, ItemStack stack)
setStackInSlot(int slot, int revision, ItemStack stack)
m_182406_(int p_182408_, int p_182409_, C_1391_ arg2)
public void
a(int arg0, List<cur> arg1, cur arg2)
initializeContents(int arg0, List<ItemStack> arg1, ItemStack arg2)
method_7610(int arg0, List<class_1799> arg1, class_1799 arg2)
m_bvjwezob(int arg0, List<C_sddaxwyk> arg1, C_sddaxwyk arg2)
updateSlotStacks(int revision, List<ItemStack> stacks, ItemStack cursorStack)
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)
m_ltaaytca(int arg0, int arg1)
setProperty(int id, int value)
setProperty(int id, int value)
m_7511_(int p_38856_, int arg1)
public abstract boolean
a(cmz arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
m_zipsjvkj(C_jzrpycqo arg0)
canUse(PlayerEntity player)
canUse(PlayerEntity player)
m_6875_(C_1141_ arg0)
protected boolean
a(cur 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)
m_jpjdgbxy(C_sddaxwyk arg0, int arg1, int arg2, boolean arg3)
insertItem(ItemStack stack, int startIndex, int endIndex, boolean fromLast)
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)
m_btbrgjnj(int arg0)
unpackQuickCraftButton(int quickCraftData)
unpackQuickCraftButton(int quickCraftData)
m_38928_(int p_38929_)
public static int
d(int arg0)
getQuickcraftHeader(int arg0)
method_7594(int arg0)
m_dwapvpiw(int arg0)
unpackQuickCraftStage(int quickCraftData)
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)
m_xpjlxrsf(int arg0, int arg1)
packQuickCraftData(int quickCraftStage, int buttonId)
packQuickCraftData(int quickCraftStage, int buttonId)
m_38930_(int p_38931_, int p_38932_)
public static boolean
a(int arg0, cmz arg1)
isValidQuickcraftType(int arg0, Player arg1)
method_7600(int arg0, class_1657 arg1)
m_rounjcuy(int arg0, C_jzrpycqo arg1)
shouldQuickCraftContinue(int stage, PlayerEntity player)
shouldQuickCraftContinue(int stage, PlayerEntity player)
m_38862_(int p_38863_, C_1141_ p_38864_)
protected void
f()
resetQuickCraft()
method_7605()
m_fqbvotew()
endQuickCraft()
endQuickCraft()
m_38951_()
public static boolean
a(crr arg0, cur arg1, boolean arg2)
canItemQuickReplace(Slot arg0, ItemStack arg1, boolean arg2)
method_7592(class_1735 arg0, class_1799 arg1, boolean arg2)
m_lexkqjew(C_nhvqfffd arg0, C_sddaxwyk arg1, boolean arg2)
canInsertItemIntoSlot(Slot slot, ItemStack stack, boolean allowOverflow)
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<crr> arg0, int arg1, cur arg2)
getQuickCraftPlaceCount(Set<Slot> arg0, int arg1, ItemStack arg2)
method_7617(Set<class_1735> arg0, int arg1, class_1799 arg2)
m_xsvwbxsr(Set<C_nhvqfffd> arg0, int arg1, C_sddaxwyk arg2)
calculateStackSize(Set<Slot> slots, int mode, ItemStack stack)
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(crr arg0)
canDragTo(Slot arg0)
method_7615(class_1735 arg0)
m_qrcwwplz(C_nhvqfffd arg0)
canInsertIntoSlot(Slot slot)
canInsertIntoSlot(Slot slot)
m_5622_(C_1305_ arg0)
public static int
a(dpj arg0)
getRedstoneSignalFromBlockEntity(BlockEntity arg0)
method_7608(class_2586 arg0)
m_gidgxsfu(C_kvegafmh arg0)
calculateComparatorOutput(BlockEntity entity)
calculateComparatorOutput(BlockEntity entity)
m_38918_(C_1991_ p_38919_)
public static int
b(bqp arg0)
getRedstoneSignalFromContainer(Container arg0)
method_7618(class_1263 arg0)
m_itytzndi(C_pjtstjoq arg0)
calculateComparatorOutput(Inventory inventory)
calculateComparatorOutput(Inventory inventory)
m_38938_(C_464_ p_38939_)
public void
b(cur arg0)
setCarried(ItemStack arg0)
method_34254(class_1799 arg0)
m_gbbwvfyb(C_sddaxwyk arg0)
setCursorStack(ItemStack stack)
setCursorStack(ItemStack stack)
m_142503_(C_1391_ arg0)
public ItemStack
g()
getCarried()
method_34255()
m_tpzpzthr()
getCursorStack()
getCursorStack()
m_142621_()
public void
h()
suppressRemoteUpdates()
method_34256()
m_nkkdvjuz()
disableSyncing()
disableSyncing()
m_150443_()
public void
i()
resumeRemoteUpdates()
method_34257()
m_gkxduzuz()
enableSyncing()
enableSyncing()
m_150444_()
public void
a(cpw arg0)
transferState(AbstractContainerMenu arg0)
method_34247(class_1703 arg0)
m_owkqkrmv(C_mkrkudpa arg0)
copySharedSlots(ScreenHandler handler)
copySharedSlots(ScreenHandler handler)
m_150414_(C_1226_ arg0)
public OptionalInt
b(bqp arg0, int arg1)
findSlot(Container arg0, int arg1)
method_37418(class_1263 arg0, int arg1)
m_cayvsjhi(C_pjtstjoq arg0, int arg1)
getSlotIndex(Inventory inventory, int index)
getSlotIndex(Inventory inventory, int index)
m_182417_(C_464_ p_182419_, int arg1)
public int
j()
getStateId()
method_37421()
m_npcuwiop()
getRevision()
getRevision()
m_182424_()
public int
k()
incrementStateId()
method_37422()
m_utvkxflr()
nextRevision()
nextRevision()
m_182425_()