Class BookshelfMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.binaris.wizardry.content.menu.BookshelfMenu
public class BookshelfMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionBookshelfMenu(int i, net.minecraft.world.entity.player.Inventory inventory) BookshelfMenu(int i, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanisBook(net.minecraft.world.item.ItemStack stack) @NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int clickedSlotId) static voidregisterBookItem(net.minecraft.world.item.Item item) booleanstillValid(@NotNull net.minecraft.world.entity.player.Player player) Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
container
public net.minecraft.world.Container container
-
-
Constructor Details
-
BookshelfMenu
public BookshelfMenu(int i, net.minecraft.world.entity.player.Inventory inventory) -
BookshelfMenu
public BookshelfMenu(int i, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.world.Container container)
-
-
Method Details
-
isBook
public static boolean isBook(net.minecraft.world.item.ItemStack stack) -
registerBookItem
public static void registerBookItem(net.minecraft.world.item.Item item) -
initBookItems
public static void initBookItems() -
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
@NotNull public @NotNull net.minecraft.world.item.ItemStack quickMoveStack(@NotNull @NotNull net.minecraft.world.entity.player.Player player, int clickedSlotId) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-