java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraftforge.items.SlotItemHandler
me.desht.pneumaticcraft.common.inventory.slot.UpgradeSlot

public class UpgradeSlot extends net.minecraftforge.items.SlotItemHandler
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.Slot

    container, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    UpgradeSlot(AbstractPneumaticCraftBlockEntity te, int index, int xPosition, int yPosition)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getMaxStackSize(net.minecraft.world.item.ItemStack stack)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     
    void
     

    Methods inherited from class net.minecraftforge.items.SlotItemHandler

    getItem, getItemHandler, getMaxStackSize, initialize, mayPickup, onQuickCraft, remove, set

    Methods inherited from class net.minecraft.world.inventory.Slot

    allowModification, checkTakeAchievements, getContainerSlot, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, onQuickCraft, onSwapCraft, onTake, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, tryRemove

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • mayPlace

      public boolean mayPlace(@Nonnull net.minecraft.world.item.ItemStack stack)
      Overrides:
      mayPlace in class net.minecraftforge.items.SlotItemHandler
    • setChanged

      public void setChanged()
      Overrides:
      setChanged in class net.minecraft.world.inventory.Slot
    • getMaxStackSize

      public int getMaxStackSize(@Nonnull net.minecraft.world.item.ItemStack stack)
      Overrides:
      getMaxStackSize in class net.minecraftforge.items.SlotItemHandler