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

    Fields
    Modifier and Type
    Field
    Description
    final boolean
     
    final ICustomer
     
    static final int
     
    static final int
     
    final net.minecraft.world.SimpleContainer
     

    Fields 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

    Constructors
    Modifier
    Constructor
    Description
     
    RestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.RegistryFriendlyByteBuf buffer)
     
    protected
    RestaurantOrderMenu(net.minecraft.world.inventory.MenuType<RestaurantOrderMenu> menuType, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, ICustomer customer, boolean canServe)
     
    net.minecraft.world.item.ItemStack
    quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
     
    void
    removed(net.minecraft.world.entity.player.Player player)
     
    boolean
    stillValid(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public final ICustomer 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:
      stillValid in class net.minecraft.world.inventory.AbstractContainerMenu
    • quickMoveStack

      public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index)
      Specified by:
      quickMoveStack in class net.minecraft.world.inventory.AbstractContainerMenu
    • removed

      public void removed(net.minecraft.world.entity.player.Player player)
      Overrides:
      removed in class net.minecraft.world.inventory.AbstractContainerMenu