Class RestaurantOrderMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
petrolpark.mc.library.core.world.restaurant.gui.RestaurantOrderMenu
@ParametersAreNonnullByDefault
public class RestaurantOrderMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal ICustomerstatic final intstatic final intfinal net.minecraft.world.SimpleContainerFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, containerListeners, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, remoteSlots, SLOT_CLICKED_OUTSIDE, slots -
Constructor Summary
ConstructorsModifierConstructorDescriptionRestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.RegistryFriendlyByteBuf buffer) protectedRestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe) -
Method Summary
Modifier and TypeMethodDescriptionstatic RestaurantOrderMenucreate(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidremoved(net.minecraft.world.entity.player.Player player) booleanstillValid(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, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
SERVING_SLOT_X
public static final int SERVING_SLOT_X- See Also:
-
SERVING_SLOT_Y
public static final int SERVING_SLOT_Y- See Also:
-
customer
-
canServe
public final boolean canServe -
servingContainer
public final net.minecraft.world.SimpleContainer servingContainer
-
-
Constructor Details
-
RestaurantOrderMenu
public RestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.RegistryFriendlyByteBuf buffer) -
RestaurantOrderMenu
protected RestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe)
-
-
Method Details
-
create
public static RestaurantOrderMenu create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe) -
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-