Class SlotArmor
java.lang.Object
net.minecraft.world.inventory.Slot
org.cyclops.cyclopscore.inventory.slot.SlotArmor
public class SlotArmor
extends net.minecraft.world.inventory.Slot
Slot that is used to hold armor.
-
Field Summary
Fields inherited from class net.minecraft.world.inventory.Slot
container, index, x, y
-
Constructor Summary
ConstructorDescriptionSlotArmor
(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot armorType) Make a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
mayPlace
(net.minecraft.world.item.ItemStack itemStack) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, setChanged, tryRemove
-
Constructor Details
-
SlotArmor
public SlotArmor(net.minecraft.world.Container inventory, int index, int x, int y, net.minecraft.world.entity.player.Player player, net.minecraft.world.entity.EquipmentSlot armorType) 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.player
- The player entity.armorType
- The armor type.
-
-
Method Details
-
getMaxStackSize
public int getMaxStackSize()- Overrides:
getMaxStackSize
in classnet.minecraft.world.inventory.Slot
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack) - Overrides:
mayPlace
in classnet.minecraft.world.inventory.Slot
-