Class SlotSingleItem
java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotExtended
org.cyclops.cyclopscore.inventory.slot.SlotSingleItem
Slot that is used for only accepting one item.
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y
-
Constructor Summary
ConstructorDescriptionSlotSingleItem
(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.item.Item item) Make a new instance. -
Method Summary
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, isHighlightable, isSameInventory, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
SlotSingleItem
public SlotSingleItem(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.item.Item item) Make a new instance.- Parameters:
inventory
- The inventory this slot will be in.index
- The index of this slot.x
- X coordinate.y
- Y coordinate.item
- The item to accept.
-
-
Method Details
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack) - Overrides:
mayPlace
in classSlotExtended
-