Class SlotExtended

java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotExtended
Direct Known Subclasses:
SlotRemoveOnly, SlotSingleItem

public class SlotExtended extends net.minecraft.world.inventory.Slot
A slot with some fancy and fun extra features.
  • Field Summary

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotExtended(net.minecraft.world.Container inventoryIn, int index, int x, int y)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mayPickup(net.minecraft.world.entity.player.Player playerIn)
     
    boolean
    mayPlace(net.minecraft.world.item.ItemStack stack)
     

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

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

    Methods inherited from class java.lang.Object

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

    • SlotExtended

      public SlotExtended(net.minecraft.world.Container inventoryIn, int index, int x, int y)
  • Method Details

    • mayPlace

      public boolean mayPlace(net.minecraft.world.item.ItemStack stack)
      Overrides:
      mayPlace 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