Class BotanyPotMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.darkhax.botanypots.common.impl.block.menu.BotanyPotMenu

public class BotanyPotMenu extends net.minecraft.world.inventory.AbstractContainerMenu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.inventory.MenuType<BotanyPotMenu>>
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
     
    static final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.inventory.MenuType<BotanyPotMenu>>
     
    protected final boolean
     

    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
    BotanyPotMenu(net.minecraft.world.inventory.MenuType<?> menuType, int id, net.minecraft.world.entity.player.Inventory playerInv, net.minecraft.world.Container potContainer, boolean isHopper, net.minecraft.world.inventory.ContainerData data)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    basicMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv)
     
     
    hopperMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv)
     
    potMenuServer(int containerId, net.minecraft.world.entity.player.Inventory playerInv, BotanyPotBlockEntity pot)
     
    @NotNull net.minecraft.world.item.ItemStack
    quickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int clickedSlotId)
     
    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

    • EMPTY_SLOT_SOIL

      public static final net.minecraft.resources.ResourceLocation EMPTY_SLOT_SOIL
    • EMPTY_SLOT_SEED

      public static final net.minecraft.resources.ResourceLocation EMPTY_SLOT_SEED
    • EMPTY_SLOT_HOE

      public static final net.minecraft.resources.ResourceLocation EMPTY_SLOT_HOE
    • BASIC_MENU

      public static final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.inventory.MenuType<BotanyPotMenu>> BASIC_MENU
    • HOPPER_MENU

      public static final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.inventory.MenuType<BotanyPotMenu>> HOPPER_MENU
    • HARVEST_ITEM

      public static final net.minecraft.tags.TagKey<net.minecraft.world.item.Item> HARVEST_ITEM
    • isHopper

      protected final boolean isHopper
  • Constructor Details

    • BotanyPotMenu

      public BotanyPotMenu(net.minecraft.world.inventory.MenuType<?> menuType, int id, net.minecraft.world.entity.player.Inventory playerInv, net.minecraft.world.Container potContainer, boolean isHopper, net.minecraft.world.inventory.ContainerData data)
  • Method Details

    • basicMenuClient

      public static BotanyPotMenu basicMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv)
    • hopperMenuClient

      public static BotanyPotMenu hopperMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv)
    • potMenuServer

      public static BotanyPotMenu potMenuServer(int containerId, net.minecraft.world.entity.player.Inventory playerInv, BotanyPotBlockEntity pot)
    • 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
    • stillValid

      public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • getContext

      @Nullable public @Nullable BlockEntityContext getContext()