Class SlotRemoveOnly

java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotExtended
org.cyclops.cyclopscore.inventory.slot.SlotRemoveOnly

public class SlotRemoveOnly extends SlotExtended
A slot from which the player can only remove an item, not place one inside it.
  • Field Summary

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

    container, index, x, y
  • Constructor Summary

    Constructors
    Constructor
    Description
    SlotRemoveOnly(net.minecraft.world.Container inventory, int index, int x, int y)
    Make a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    mayPlace(net.minecraft.world.item.ItemStack itemStack)
     

    Methods inherited from class org.cyclops.cyclopscore.inventory.slot.SlotExtended

    mayPickup

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

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

    Methods inherited from class java.lang.Object

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

    • SlotRemoveOnly

      public SlotRemoveOnly(net.minecraft.world.Container inventory, int index, int x, int y)
      Make a new instance.
      Parameters:
      inventory - The inventory for which the slot applies.
      index - The index the slot is at.
      x - The X coordinate for the slot to render at.
      y - The Y coordinate for the slot to render at.
  • Method Details

    • mayPlace

      public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack)
      Overrides:
      mayPlace in class SlotExtended