Class AbstractResourceContainerMenu

java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.refinedmods.refinedstorage.common.support.AbstractBaseContainerMenu
com.refinedmods.refinedstorage.common.support.containermenu.AbstractResourceContainerMenu
Direct Known Subclasses:
AbstractGridContainerMenu, AbstractSimpleFilterContainerMenu, AbstractSingleAmountContainerMenu, AbstractStorageContainerMenu, AutocraftingPreviewContainerMenu, DiskInterfaceContainerMenu, InterfaceContainerMenu, ResourceAmountScreen.SingleResourceContainerMenu, StorageMonitorContainerMenu

public abstract class AbstractResourceContainerMenu extends AbstractBaseContainerMenu
  • Field Details

    • player

      @Nullable protected final net.minecraft.world.entity.player.Player player
  • Constructor Details

    • AbstractResourceContainerMenu

      protected AbstractResourceContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId, net.minecraft.world.entity.player.Player player)
    • AbstractResourceContainerMenu

      protected AbstractResourceContainerMenu(@Nullable net.minecraft.world.inventory.MenuType<?> type, int syncId)
  • Method Details

    • handleResourceSlotUpdate

      public void handleResourceSlotUpdate(int slotIndex, @Nullable ResourceAmount resourceAmount)
    • handleResourceFilterSlotUpdate

      public void handleResourceFilterSlotUpdate(int slotIndex, PlatformResourceKey resource)
    • handleResourceSlotChange

      public void handleResourceSlotChange(int slotIndex, boolean tryAlternatives)
    • sendResourceSlotChange

      public void sendResourceSlotChange(int slotIndex, boolean tryAlternatives)
    • handleResourceSlotAmountChange

      public void handleResourceSlotAmountChange(int slotIndex, long amount)
    • broadcastChanges

      public void broadcastChanges()
      Overrides:
      broadcastChanges in class net.minecraft.world.inventory.AbstractContainerMenu
    • getResourceSlots

      public List<ResourceSlot> getResourceSlots()
    • addSlot

      protected net.minecraft.world.inventory.Slot addSlot(net.minecraft.world.inventory.Slot slot)
      Overrides:
      addSlot in class net.minecraft.world.inventory.AbstractContainerMenu
    • resetSlots

      protected void resetSlots()
      Overrides:
      resetSlots in class AbstractBaseContainerMenu
    • addToResourceSlotIfNotExisting

      public void addToResourceSlotIfNotExisting(net.minecraft.world.item.ItemStack stack)
    • areAllResourceSlotsEmpty

      protected final boolean areAllResourceSlotsEmpty()
    • canTakeItemForPickAll

      public boolean canTakeItemForPickAll(net.minecraft.world.item.ItemStack stack, net.minecraft.world.inventory.Slot slot)
      Overrides:
      canTakeItemForPickAll in class AbstractBaseContainerMenu
    • clicked

      public void clicked(int id, int dragType, net.minecraft.world.inventory.ClickType clickType, net.minecraft.world.entity.player.Player p)
      Overrides:
      clicked in class AbstractBaseContainerMenu