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
FieldsModifier and TypeFieldDescriptionstatic final net.darkhax.bookshelf.common.api.function.CachedSupplier<net.minecraft.world.inventory.MenuType<BotanyPotMenu>> static final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic 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 booleanFields 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
ConstructorsConstructorDescriptionBotanyPotMenu(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 TypeMethodDescriptionstatic BotanyPotMenubasicMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv) @Nullable BlockEntityContextstatic BotanyPotMenuhopperMenuClient(int containerId, net.minecraft.world.entity.player.Inventory playerInv) static BotanyPotMenupotMenuServer(int containerId, net.minecraft.world.entity.player.Inventory playerInv, BotanyPotBlockEntity pot) @NotNull net.minecraft.world.item.ItemStackquickMoveStack(@NotNull net.minecraft.world.entity.player.Player player, int slotId) 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
-
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 slotId) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
stillValid
public boolean stillValid(@NotNull @NotNull net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
getContext
-