Class InventoryScreenHandler

  • Direct Known Subclasses:
    FurnaceBoatScreenHandler

    public abstract class InventoryScreenHandler
    extends net.minecraft.screen.ScreenHandler
    • Field Summary

      • Fields inherited from class net.minecraft.screen.ScreenHandler

        slots, syncId
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected InventoryScreenHandler​(int syncId, net.minecraft.entity.player.PlayerInventory playerInventory, net.minecraft.inventory.Inventory inventory)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canUse​(net.minecraft.entity.player.PlayerEntity playerEntity_1)  
      void close​(net.minecraft.entity.player.PlayerEntity playerEntity_1)  
      net.minecraft.entity.player.PlayerInventory getPlayerInventory()  
      protected abstract int getSize()  
      net.minecraft.item.ItemStack transferSlot​(net.minecraft.entity.player.PlayerEntity playerEntity_1, int int_1)  
      • Methods inherited from class net.minecraft.screen.ScreenHandler

        addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canStacksCombine, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
    • Constructor Detail

      • InventoryScreenHandler

        protected InventoryScreenHandler​(int syncId,
                                         net.minecraft.entity.player.PlayerInventory playerInventory,
                                         net.minecraft.inventory.Inventory inventory)
    • Method Detail

      • getPlayerInventory

        public net.minecraft.entity.player.PlayerInventory getPlayerInventory()
      • getSize

        protected abstract int getSize()
      • canUse

        public boolean canUse​(net.minecraft.entity.player.PlayerEntity playerEntity_1)
        Specified by:
        canUse in class net.minecraft.screen.ScreenHandler
      • transferSlot

        public net.minecraft.item.ItemStack transferSlot​(net.minecraft.entity.player.PlayerEntity playerEntity_1,
                                                         int int_1)
        Overrides:
        transferSlot in class net.minecraft.screen.ScreenHandler
      • close

        public void close​(net.minecraft.entity.player.PlayerEntity playerEntity_1)
        Overrides:
        close in class net.minecraft.screen.ScreenHandler