Class SlotDummy

java.lang.Object
net.minecraft.world.inventory.Slot
codechicken.lib.inventory.container.SlotHandleClicks
codechicken.lib.inventory.container.SlotDummy

public class SlotDummy extends SlotHandleClicks
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
     

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y)
     
    SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y, int limit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mayPickup(net.minecraft.world.entity.player.Player playerIn)
     
    void
    set(net.minecraft.world.item.ItemStack stack)
     
    void
    slotClick(ContainerExtended container, net.minecraft.world.entity.player.Player player, int button, net.minecraft.world.inventory.ClickType clickType)
     
    void
    slotClick(net.minecraft.world.item.ItemStack held, int button, boolean shift)
     

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

    allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPlace, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, setBackground, setByPlayer, setByPlayer, setChanged, tryRemove

    Methods inherited from class java.lang.Object

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

    • stackLimit

      public final int stackLimit
  • Constructor Details

    • SlotDummy

      public SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y)
    • SlotDummy

      public SlotDummy(net.minecraft.world.Container inv, int slot, int x, int y, int limit)
  • Method Details

    • slotClick

      public void slotClick(ContainerExtended container, net.minecraft.world.entity.player.Player player, int button, net.minecraft.world.inventory.ClickType clickType)
      Specified by:
      slotClick in class SlotHandleClicks
    • slotClick

      public void slotClick(net.minecraft.world.item.ItemStack held, int button, boolean shift)
    • set

      public void set(net.minecraft.world.item.ItemStack stack)
      Overrides:
      set in class net.minecraft.world.inventory.Slot
    • mayPickup

      public boolean mayPickup(net.minecraft.world.entity.player.Player playerIn)
      Overrides:
      mayPickup in class net.minecraft.world.inventory.Slot