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
ConstructorDescriptionSlotExtended
(net.minecraft.world.Container inventoryIn, int index, int x, int y) -
Method Summary
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
-
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 classnet.minecraft.world.inventory.Slot
-
mayPickup
public boolean mayPickup(net.minecraft.world.entity.player.Player playerIn) - Overrides:
mayPickup
in classnet.minecraft.world.inventory.Slot
-