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
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    net.minecraft.world.Container
     

    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

    Constructors
    Constructor
    Description
    BookshelfMenu(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 Type
    Method
    Description
    static void
     
    static boolean
    isBook(net.minecraft.world.item.ItemStack stack)
     
    @NotNull net.minecraft.world.item.ItemStack
    quickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int clickedSlotId)
     
    static void
    registerBookItem(net.minecraft.world.item.Item item)
     
    boolean
    stillValid(@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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      stillValid in class net.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:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu