net.minecraft.world.inventory

public abstract class AbstractContainerMenu

bmj
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
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>
k
lastSlots
field_7764
trackedStacks
f_38841_
public final NonNullList<Slot>
i
slots
field_7761
slots
f_38839_
private final List<DataSlot>
l
dataSlots
field_17285
properties
f_38842_
private ItemStack
m
carried
field_29205
cursorStack
f_150393_
private final NonNullList<ItemStack>
n
remoteSlots
field_29206
previousTrackedStacks
f_150394_
private final it.unimi.dsi.fastutil.ints.IntList
o
remoteDataSlots
field_29559
trackedPropertyValues
f_150395_
private ItemStack
p
remoteCarried
field_29207
previousCursorStack
f_150396_
private final MenuType<?>
q
menuType
field_17493
type
f_38843_
public final int
j
containerId
field_7763
syncId
f_38840_
private int
r
quickcraftType
field_7762
quickCraftButton
f_38845_
private int
s
quickcraftStatus
field_7759
quickCraftStage
f_38846_
private final Set<Slot>
t
quickcraftSlots
field_7757
quickCraftSlots
f_38847_
private final List<ContainerListener>
u
containerListeners
field_7765
listeners
f_38848_
private ContainerSynchronizer
v
synchronizer
field_29208
syncHandler
f_150397_
private boolean
w
suppressRemoteUpdates
field_29209
disableSync
f_150398_

Constructor summary

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

Method summary

Modifier and TypeMethod
protected static boolean
a(bmu arg0, bkd arg1, bzo 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_()
getType()
protected static void
a(art 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(bmt 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_)
protected Slot
a(boa arg0)
addSlot(Slot arg0)
method_7621(class_1735 arg0)
addSlot(Slot slot)
m_38897_(C_1305_ arg0)
protected DataSlot
a(bmz arg0)
addDataSlot(DataSlot arg0)
method_17362(class_3915 arg0)
addProperty(Property property)
m_38895_(C_1253_ arg0)
protected void
a(bmt arg0)
addDataSlots(ContainerData arg0)
method_17360(class_3913 arg0)
addProperties(PropertyDelegate propertyDelegate)
m_38884_(C_1246_ arg0)
public void
a(bmv arg0)
addSlotListener(ContainerListener arg0)
method_7596(class_1712 arg0)
addListener(ScreenHandlerListener listener)
m_38893_(C_1250_ arg0)
addSlotListener(ICrafting arg0)
public void
a(bmw 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_()
updateInventory()
public void
b(bmv 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_()
private void
a(int arg0, bqp arg1, Supplier<bqp> 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, bqp arg1, Supplier<bqp> 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
c(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
i()
synchronizeCarriedToRemote()
method_34258()
checkCursorStackUpdates()
m_150445_()
public void
a(int arg0, bqp 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
a(bqp arg0)
setRemoteCarried(ItemStack arg0)
method_34250(class_1799 arg0)
setPreviousCursorStack(ItemStack stack)
m_150422_(C_1391_ arg0)
public boolean
a(bkd 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
a(int arg0)
getSlot(int arg0)
method_7611(int arg0)
getSlot(int index)
m_38853_(int arg0)
getSlot(int arg0)
public ItemStack
b(bkd arg0, int arg1)
quickMoveStack(Player arg0, int arg1)
method_7601(class_1657 arg0, int arg1)
transferSlot(PlayerEntity player, int index)
m_7648_(C_1141_ p_38942_, int arg1)
shiftClick(EntityHuman arg0, int arg1)
public void
a(int arg0, int arg1, bms arg2, bkd 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, bms arg2, bkd 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 SlotAccess
j()
createCarriedSlotAccess()
method_34259()
getCursorStackReference()
m_150446_()
public boolean
a(bqp arg0, boa 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(bkd arg0)
removed(Player arg0)
method_7595(class_1657 arg0)
close(PlayerEntity arg0)
m_6877_(C_1141_ arg0)
protected void
a(bkd arg0, art 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(art arg0)
slotsChanged(Container arg0)
method_7609(class_1263 arg0)
onContentChanged(Inventory inventory)
m_6199_(C_464_ arg0)
public void
b(int arg0, bqp arg1)
setItem(int arg0, ItemStack arg1)
method_7619(int arg0, class_1799 arg1)
setStackInSlot(int slot, ItemStack stack)
m_38865_(int p_38867_, C_1391_ arg1)
setItem(int arg0, ItemStack arg1)
public void
a(List<bqp> arg0)
setAll(List<ItemStack> arg0)
method_7610(List<class_1799> arg0)
updateSlotStacks(List<ItemStack> stacks)
m_38920_(List<C_1391_> arg0)
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)
setContainerData(int arg0, int arg1)
public abstract boolean
a(bkd arg0)
stillValid(Player arg0)
method_7597(class_1657 arg0)
canUse(PlayerEntity player)
m_6875_(C_1141_ arg0)
canUse(EntityHuman arg0)
protected boolean
a(bqp 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
b(int arg0)
getQuickcraftType(int arg0)
method_7620(int arg0)
unpackQuickCraftButton(int quickCraftData)
m_38928_(int p_38929_)
public static int
c(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, bkd 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
e()
resetQuickCraft()
method_7605()
endQuickCraft()
m_38951_()
public static boolean
a(boa arg0, bqp 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 void
a(Set<boa> arg0, int arg1, bqp arg2, int arg3)
getQuickCraftSlotCount(Set<Slot> arg0, int arg1, ItemStack arg2, int arg3)
method_7617(Set<class_1735> arg0, int arg1, class_1799 arg2, int arg3)
calculateStackSize(Set<Slot> slots, int mode, ItemStack stack, int stackSize)
m_38922_(Set<C_1305_> p_38923_, int p_38924_, C_1391_ p_38925_, int p_38926_)
public boolean
b(boa arg0)
canDragTo(Slot arg0)
method_7615(class_1735 arg0)
canInsertIntoSlot(Slot slot)
m_5622_(C_1305_ arg0)
public static int
a(cip arg0)
getRedstoneSignalFromBlockEntity(BlockEntity arg0)
method_7608(class_2586 arg0)
calculateComparatorOutput(BlockEntity entity)
m_38918_(C_1991_ p_38919_)
public static int
b(art arg0)
getRedstoneSignalFromContainer(Container arg0)
method_7618(class_1263 arg0)
calculateComparatorOutput(Inventory inventory)
m_38938_(C_464_ p_38939_)
public void
b(bqp arg0)
setCarried(ItemStack arg0)
method_34254(class_1799 arg0)
setCursorStack(ItemStack stack)
m_142503_(C_1391_ arg0)
setCarried(ItemStack arg0)
public ItemStack
f()
getCarried()
method_34255()
getCursorStack()
m_142621_()
getCarried()
public void
g()
suppressRemoteUpdates()
method_34256()
disableSyncing()
m_150443_()
public void
h()
resumeRemoteUpdates()
method_34257()
enableSyncing()
m_150444_()
public void
a(bmj arg0)
transferState(AbstractContainerMenu arg0)
method_34247(class_1703 arg0)
copySharedSlots(ScreenHandler handler)
m_150414_(C_1226_ arg0)