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
ConstructorsConstructorDescriptionSlotArmor(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 TypeMethodDescriptionintbooleanmayPlace(net.minecraft.world.item.ItemStack itemStack) Methods inherited from class net.minecraft.world.inventory.Slot
allowModification, checkTakeAchievements, getContainerSlot, getItem, getMaxStackSize, getNoItemIcon, getSlotIndex, hasItem, isActive, isFake, isHighlightable, isSameInventory, mayPickup, onQuickCraft, onQuickCraft, onSwapCraft, onTake, remove, safeInsert, safeInsert, safeTake, set, setBackground, setByPlayer, 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:
getMaxStackSizein classnet.minecraft.world.inventory.Slot
-
mayPlace
public boolean mayPlace(net.minecraft.world.item.ItemStack itemStack) - Overrides:
mayPlacein classnet.minecraft.world.inventory.Slot
-