Class SmallPartsMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
tech.anonymoushacker1279.immersiveweapons.menu.SmallPartsMenu
public class SmallPartsMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.Item,net.minecraft.world.item.Item>> Fields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots -
Constructor Summary
ConstructorsConstructorDescriptionSmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory) SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.ContainerLevelAccess levelAccess) -
Method Summary
Modifier and TypeMethodDescriptionbooleanclickMenuButton(net.minecraft.world.entity.player.Player player, int id) List<net.minecraft.world.item.Item>getAvailableCraftables(net.minecraft.world.item.ItemStack stack) net.minecraft.world.inventory.Slotintnet.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex) Handle when the stack in slotindexis shift-clicked.voidregisterUpdateListener(Runnable runnable) voidremoved(net.minecraft.world.entity.player.Player pPlayer) Called when the container is closed.voidslotsChanged(net.minecraft.world.Container pInventory) Callback for when the crafting matrix is changed.booleanstillValid(net.minecraft.world.entity.player.Player pPlayer) Determines whether supplied player can use this containerMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
ALL_CRAFTABLES
public static final List<com.mojang.datafixers.util.Pair<net.minecraft.world.item.Item,net.minecraft.world.item.Item>> ALL_CRAFTABLES
-
-
Constructor Details
-
SmallPartsMenu
public SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory) -
SmallPartsMenu
public SmallPartsMenu(int containerID, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.inventory.ContainerLevelAccess levelAccess)
-
-
Method Details
-
getAvailableCraftables
public List<net.minecraft.world.item.Item> getAvailableCraftables(net.minecraft.world.item.ItemStack stack) -
getSelectedPartsPatternIndex
public int getSelectedPartsPatternIndex() -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player pPlayer) Determines whether supplied player can use this container- Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
clickMenuButton
public boolean clickMenuButton(net.minecraft.world.entity.player.Player player, int id) - Overrides:
clickMenuButtonin classnet.minecraft.world.inventory.AbstractContainerMenu
-
slotsChanged
public void slotsChanged(net.minecraft.world.Container pInventory) Callback for when the crafting matrix is changed.- Overrides:
slotsChangedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
registerUpdateListener
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player pPlayer, int pIndex) Handle when the stack in slotindexis shift-clicked. Normally this moves the stack between the player inventory and the other inventory(s).- Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player pPlayer) Called when the container is closed.- Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getMaterialSlot
public net.minecraft.world.inventory.Slot getMaterialSlot()
-