Uses of Enum Class
net.minecraft.entity.EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.block
Modifier and TypeMethodDescriptionAbstractSkullBlock.getSlotType()
WearableCarvedPumpkinBlock.getSlotType()
-
Uses of EquipmentSlot in net.minecraft.client.render.entity.feature
Modifier and TypeMethodDescriptionprivate A
ArmorFeatureRenderer.getModel
(EquipmentSlot slot) private void
ArmorFeatureRenderer.renderArmor
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model) protected void
ArmorFeatureRenderer.setVisible
(A bipedModel, EquipmentSlot slot) private boolean
ArmorFeatureRenderer.usesInnerModel
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
Enchantments.ALL_ARMOR
private final EquipmentSlot[]
Enchantment.slotTypes
Modifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot,
ItemStack> EnchantmentHelper.chooseEquipmentWith
(Enchantment enchantment, LivingEntity entity) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static Map.Entry<EquipmentSlot,
ItemStack> EnchantmentHelper.chooseEquipmentWith
(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Enchantment.getEquipment
(LivingEntity entity) ModifierConstructorDescriptionAquaAffinityEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) BindingCurseEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) ChannelingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) DamageEnchantment
(Enchantment.Rarity weight, int typeIndex, EquipmentSlot[] slots) DepthStriderEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
EfficiencyEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
Enchantment
(Enchantment.Rarity weight, EnchantmentTarget target, EquipmentSlot[] slotTypes) protected
FireAspectEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) FlameEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) FrostWalkerEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) ImpalingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) InfinityEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
KnockbackEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slot) LoyaltyEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
LuckEnchantment
(Enchantment.Rarity weight, EnchantmentTarget target, EquipmentSlot[] slotTypes) protected
LureEnchantment
(Enchantment.Rarity weight, EnchantmentTarget target, EquipmentSlot[] slotTypes) MendingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) MultishotEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) PiercingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) PowerEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) ProtectionEnchantment
(Enchantment.Rarity weight, ProtectionEnchantment.Type protectionType, EquipmentSlot[] slotTypes) PunchEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) QuickChargeEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slot) RespirationEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) RiptideEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
SilkTouchEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) SoulSpeedEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) SweepingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) SwiftSneakEnchantment
(Enchantment.Rarity rarity, EquipmentSlot[] slots) ThornsEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) protected
UnbreakingEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) VanishingCurseEnchantment
(Enchantment.Rarity weight, EquipmentSlot[] slotTypes) -
Uses of EquipmentSlot in net.minecraft.entity
Modifier and TypeMethodDescriptionstatic EquipmentSlot
Returns the slot where the name is equal toname
.static EquipmentSlot
EquipmentSlot.fromTypeIndex
(EquipmentSlot.Type type, int index) Returns the equipment slot where the slot ID is equal toindex
and the type of the slot is equal totype
.private static @Nullable EquipmentSlot
LivingEntity.getEquipmentSlot
(int slotId) static EquipmentSlot
LivingEntity.getPreferredEquipmentSlot
(ItemStack stack) static EquipmentSlot
Returns the enum constant of this class with the specified name.static EquipmentSlot[]
EquipmentSlot.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprivate @Nullable Map<EquipmentSlot,
ItemStack> LivingEntity.getEquipmentChanges()
Returns the difference between the last sent equipment set and the current one.Modifier and TypeMethodDescriptionvoid
Entity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.abstract void
LivingEntity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.private static byte
LivingEntity.getEquipmentBreakStatus
(EquipmentSlot slot) abstract ItemStack
LivingEntity.getEquippedStack
(EquipmentSlot slot) private static StackReference
LivingEntity.getStackReference
(LivingEntity entity, EquipmentSlot slot) private ItemStack
LivingEntity.getSyncedArmorStack
(EquipmentSlot slot) private ItemStack
LivingEntity.getSyncedHandStack
(EquipmentSlot slot) boolean
LivingEntity.hasStackEquipped
(EquipmentSlot slot) protected boolean
LivingEntity.isArmorSlot
(EquipmentSlot slot) void
LivingEntity.onEquipStack
(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) void
LivingEntity.sendEquipmentBreakStatus
(EquipmentSlot slot) private void
LivingEntity.setSyncedArmorStack
(EquipmentSlot slot, ItemStack armor) private void
LivingEntity.setSyncedHandStack
(EquipmentSlot slot, ItemStack stack) Modifier and TypeMethodDescriptionprivate void
LivingEntity.checkHandStackSwap
(Map<EquipmentSlot, ItemStack> equipmentChanges) Notifies nearby players if the stacks in the hands have been swapped.private void
LivingEntity.sendEquipmentChanges
(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players. -
Uses of EquipmentSlot in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStandEntity.getSlotFromPosition
(Vec3d hitPos) Modifier and TypeMethodDescriptionprivate boolean
ArmorStandEntity.equip
(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) void
ArmorStandEntity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.ArmorStandEntity.getEquippedStack
(EquipmentSlot slot) private boolean
ArmorStandEntity.isSlotDisabled
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity.mob
Modifier and TypeMethodDescriptionprotected void
MobEntity.enchantEquipment
(Random random, float power, EquipmentSlot slot) private void
PiglinEntity.equipAtChance
(EquipmentSlot slot, ItemStack stack, Random random) protected void
MobEntity.equipLootStack
(EquipmentSlot slot, ItemStack stack) void
AbstractSkeletonEntity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.void
MobEntity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.protected float
MobEntity.getDropChance
(EquipmentSlot slot) MobEntity.getEquipmentForSlot
(EquipmentSlot equipmentSlot, int equipmentLevel) MobEntity.getEquippedStack
(EquipmentSlot slot) void
MobEntity.setEquipmentDropChance
(EquipmentSlot slot, float chance) void
MobEntity.updateDropChances
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.equipStack
(EquipmentSlot slot, ItemStack stack) Equipsstack
atslot
.This is also used to set an entity's mainhand or offhand stack.PlayerEntity.getEquippedStack
(EquipmentSlot slot) protected boolean
PlayerEntity.isArmorSlot
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.inventory
Modifier and TypeMethodDescriptionstatic StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of a living entity with no filter, allowing direct manipulation of the equipment slot.static StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of a living entity and guarded by a condition for setting stacks into the inventory. -
Uses of EquipmentSlot in net.minecraft.item
Modifier and TypeMethodDescriptionArmorItem.Type.getEquipmentSlot()
ArmorItem.getSlotType()
ElytraItem.getSlotType()
Equipment.getSlotType()
ShieldItem.getSlotType()
Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(EntityAttribute attribute, EntityAttributeModifier modifier, @Nullable EquipmentSlot slot) Adds an attribute modifier to this stack.ArmorItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.Item.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.ItemStack.getAttributeModifiers
(EquipmentSlot slot) Returns a multimap of attribute modifiers forslot
.MiningToolItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.SwordItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides.TridentItem.getAttributeModifiers
(EquipmentSlot slot) Returns the attribute modifiers the item provides. -
Uses of EquipmentSlot in net.minecraft.loot.function
Modifier and TypeFieldDescription(package private) final EquipmentSlot[]
SetAttributesLootFunction.Attribute.slots
Modifier and TypeFieldDescriptionprivate final Set<EquipmentSlot>
SetAttributesLootFunction.AttributeBuilder.slots
Modifier and TypeMethodDescriptionSetAttributesLootFunction.AttributeBuilder.slot
(EquipmentSlot slot) ModifierConstructorDescription(package private)
Attribute
(String name, EntityAttribute attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount, EquipmentSlot[] slots, @Nullable UUID id) -
Uses of EquipmentSlot in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentList
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()
ModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket
(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) -
Uses of EquipmentSlot in net.minecraft.screen
Modifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
PlayerScreenHandler.EQUIPMENT_SLOT_ORDER
Modifier and TypeMethodDescription(package private) static void
PlayerScreenHandler.onEquipStack
(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) -
Uses of EquipmentSlot in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate static final Map<com.mojang.datafixers.util.Pair<ArmorMaterial,
EquipmentSlot>, Item> SpawnArmorTrimsCommand.ARMOR_PIECES
Modifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getHeldItem
(ServerCommandSource source, EquipmentSlot slot)