Class UntouchableSlot

java.lang.Object
net.minecraft.world.inventory.Slot
net.minecraftforge.items.SlotItemHandler
me.desht.pneumaticcraft.common.inventory.slot.UntouchableSlot
All Implemented Interfaces:
IPhantomSlot

public class UntouchableSlot extends net.minecraftforge.items.SlotItemHandler implements IPhantomSlot
  • Field Summary

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

    container, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    UntouchableSlot(net.minecraftforge.items.IItemHandler handler, int slotIndex, int x, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
    boolean
    mayPickup(net.minecraft.world.entity.player.Player player)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack itemstack)
     
    void
    setEnabled(boolean enabled)
     

    Methods inherited from class net.minecraftforge.items.SlotItemHandler

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

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

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

    Methods inherited from class java.lang.Object

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

    • UntouchableSlot

      public UntouchableSlot(net.minecraftforge.items.IItemHandler handler, int slotIndex, int x, int y)
  • Method Details

    • mayPlace

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

      public boolean mayPickup(net.minecraft.world.entity.player.Player player)
      Overrides:
      mayPickup in class net.minecraftforge.items.SlotItemHandler
    • canAdjust

      public boolean canAdjust()
      Specified by:
      canAdjust in interface IPhantomSlot
    • setEnabled

      public void setEnabled(boolean enabled)
    • isActive

      public boolean isActive()
      Overrides:
      isActive in class net.minecraft.world.inventory.Slot