Uses of Enum Class
net.minecraft.world.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.client.renderer.entity.layers
Methods in net.minecraft.client.renderer.entity.layers with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate A
HumanoidArmorLayer.getArmorModel
(EquipmentSlot p_117079_) protected Model
HumanoidArmorLayer.getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) Deprecated.private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) protected void
HumanoidArmorLayer.setPartVisibility
(A p_117126_, EquipmentSlot p_117127_) private boolean
HumanoidArmorLayer.usesInnerModel
(EquipmentSlot p_117129_) -
Uses of EquipmentSlot in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> ClientboundSetEquipmentPacket.slots
Methods in net.minecraft.network.protocol.game that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionList
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> ClientboundSetEquipmentPacket.getSlots()
Constructor parameters in net.minecraft.network.protocol.game with type arguments of type EquipmentSlotModifierConstructorDescriptionClientboundSetEquipmentPacket
(int p_133202_, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> p_133203_) -
Uses of EquipmentSlot in net.minecraft.server.commands
Fields in net.minecraft.server.commands with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map
<com.mojang.datafixers.util.Pair<Holder<ArmorMaterial>, EquipmentSlot>, Item> SpawnArmorTrimsCommand.MATERIAL_AND_SLOT_TO_ITEM
Methods in net.minecraft.server.commands with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getSourceHandItem
(CommandSourceStack p_137939_, EquipmentSlot p_137940_) -
Uses of EquipmentSlot in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ServerPlayer.onEquippedItemBroken
(Item p_348565_, EquipmentSlot p_348623_) -
Uses of EquipmentSlot in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionstatic final StringRepresentable.EnumCodec
<EquipmentSlot> EquipmentSlot.CODEC
static final com.mojang.serialization.Codec
<Map<EquipmentSlot, Float>> EquipmentTable.DROP_CHANCES_CODEC
private final Predicate
<EquipmentSlot> EquipmentSlotGroup.predicate
private final Map
<EquipmentSlot, Float> EquipmentTable.slotDropChances
The field for theslotDropChances
record component.Methods in net.minecraft.world.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlot
private static EquipmentSlot
LivingEntity.getEquipmentSlot
(int p_147212_) LivingEntity.getEquipmentSlotForItem
(ItemStack p_147234_) static EquipmentSlot
LivingEntity.getSlotForHand
(InteractionHand p_320526_) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack p_338225_, List<EquipmentSlot> p_338547_) 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.Methods in net.minecraft.world.entity that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate Map
<EquipmentSlot, ItemStack> LivingEntity.collectEquipmentChanges()
private static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(float p_340946_) private static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> p_340910_, float p_341369_) Mob.dropPreservedEquipment
(Predicate<ItemStack> p_352191_) EquipmentTable.slotDropChances()
Returns the value of theslotDropChances
record component.Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotGroup
EquipmentSlotGroup.bySlot
(EquipmentSlot p_339603_) boolean
LivingEntity.canUseSlot
(EquipmentSlot p_326058_) boolean
Mob.canUseSlot
(EquipmentSlot p_326379_) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity p_147196_, EquipmentSlot p_147197_) protected boolean
LivingEntity.doesEmitEquipEvent
(EquipmentSlot p_217035_) protected void
LivingEntity.doHurtEquipment
(DamageSource p_330843_, float p_330394_, EquipmentSlot... p_331314_) protected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor p_348675_, RandomSource p_217052_, EquipmentSlot p_217054_, DifficultyInstance p_348681_) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor p_348676_, EquipmentSlot p_345506_, RandomSource p_345779_, float p_345423_, DifficultyInstance p_348488_) private static byte
LivingEntity.entityEventForEquipmentBreak
(EquipmentSlot p_21267_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147300_, EquipmentSlot p_147301_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147303_, EquipmentSlot p_147304_, Predicate<ItemStack> p_147305_) protected float
Mob.getEquipmentDropChance
(EquipmentSlot p_21520_) static Item
Mob.getEquipmentForSlot
(EquipmentSlot p_21413_, int p_21414_) EquipmentUser.getItemBySlot
(EquipmentSlot p_338597_) abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlot p_21127_) Mob.getItemBySlot
(EquipmentSlot p_21467_) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlot p_21199_) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlot p_21245_) boolean
LivingEntity.hasItemInSlot
(EquipmentSlot p_21034_) void
LivingEntity.onEquipItem
(EquipmentSlot p_238393_, ItemStack p_238394_, ItemStack p_238395_) void
LivingEntity.onEquippedItemBroken
(Item p_348620_, EquipmentSlot p_348655_) void
EquipmentUser.setDropChance
(EquipmentSlot p_338643_, float p_338569_) void
Mob.setDropChance
(EquipmentSlot p_21410_, float p_21411_) void
Mob.setGuaranteedDrop
(EquipmentSlot p_21509_) void
EquipmentUser.setItemSlot
(EquipmentSlot p_338576_, ItemStack p_338519_) abstract void
LivingEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) void
Mob.setItemSlot
(EquipmentSlot p_21416_, ItemStack p_21417_) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot p_21469_, ItemStack p_21470_) private void
LivingEntity.setLastArmorItem
(EquipmentSlot p_21129_, ItemStack p_21130_) private void
LivingEntity.setLastHandItem
(EquipmentSlot p_21169_, ItemStack p_21170_) boolean
EquipmentSlotGroup.test
(EquipmentSlot p_330499_) Method parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> p_340910_, float p_341369_) default void
EquipmentUser.equip
(ResourceKey<LootTable> p_340873_, LootParams p_338202_, long p_341024_, Map<EquipmentSlot, Float> p_341367_) default void
EquipmentUser.equip
(ResourceKey<LootTable> p_341330_, LootParams p_340863_, Map<EquipmentSlot, Float> p_341011_) void
Mob.equip
(ResourceKey<LootTable> p_340912_, Map<EquipmentSlot, Float> p_340996_) private void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> p_21143_) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlot, ItemStack> p_21092_) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack p_338225_, List<EquipmentSlot> p_338547_) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
EquipmentSlotGroup
(int p_331473_, String p_330947_, EquipmentSlot p_331230_) Constructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionprivate
EquipmentSlotGroup
(int p_331154_, String p_330415_, Predicate<EquipmentSlot> p_330269_) EquipmentTable
(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) Creates an instance of aEquipmentTable
record class. -
Uses of EquipmentSlot in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type EquipmentSlot -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type EquipmentSlotModifier and TypeMethodDescriptionboolean
Horse.canUseSlot
(EquipmentSlot p_348583_) boolean
Llama.canUseSlot
(EquipmentSlot p_348498_) private void
SkeletonTrapGoal.enchant
(Skeleton p_345688_, EquipmentSlot p_346060_, DifficultyInstance p_348658_) -
Uses of EquipmentSlot in net.minecraft.world.entity.decoration
Methods in net.minecraft.world.entity.decoration that return EquipmentSlotMethods in net.minecraft.world.entity.decoration with parameters of type EquipmentSlotModifier and TypeMethodDescriptionboolean
ArmorStand.canUseSlot
(EquipmentSlot p_326077_) ArmorStand.getItemBySlot
(EquipmentSlot p_31612_) private boolean
ArmorStand.isDisabled
(EquipmentSlot p_31627_) void
ArmorStand.setItemSlot
(EquipmentSlot p_31584_, ItemStack p_31585_) private boolean
ArmorStand.swapItem
(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
AbstractSkeleton.setItemSlot
(EquipmentSlot p_32138_, ItemStack p_32139_) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate void
Piglin.maybeWearArmor
(EquipmentSlot p_219192_, ItemStack p_219193_, RandomSource p_219194_) -
Uses of EquipmentSlot in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionboolean
Player.canUseSlot
(EquipmentSlot p_326160_) protected boolean
Player.doesEmitEquipEvent
(EquipmentSlot p_219741_) Player.getItemBySlot
(EquipmentSlot p_36257_) void
Player.setItemSlot
(EquipmentSlot p_36161_, ItemStack p_36162_) -
Uses of EquipmentSlot in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlot
ArmorSlot.slot
private static final EquipmentSlot[]
InventoryMenu.SLOT_IDS
Fields in net.minecraft.world.inventory with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map
<EquipmentSlot, ResourceLocation> InventoryMenu.TEXTURE_EMPTY_SLOTS
Constructors in net.minecraft.world.inventory with parameters of type EquipmentSlotModifierConstructorDescriptionArmorSlot
(Container p_345898_, LivingEntity p_345231_, EquipmentSlot p_345728_, int p_345121_, int p_346000_, int p_346095_, ResourceLocation p_344841_) -
Uses of EquipmentSlot in net.minecraft.world.item
Fields in net.minecraft.world.item declared as EquipmentSlotMethods in net.minecraft.world.item that return EquipmentSlotModifier and TypeMethodDescriptionArmorItem.getEquipmentSlot()
ElytraItem.getEquipmentSlot()
Equipable.getEquipmentSlot()
ShieldItem.getEquipmentSlot()
ArmorItem.Type.getSlot()
Methods in net.minecraft.world.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ItemStack.forEachModifier
(EquipmentSlot p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) void
ItemStack.hurtAndBreak
(int p_41623_, LivingEntity p_41624_, EquipmentSlot p_319898_) ItemStack.hurtAndConvertOnBreak
(int p_352405_, ItemLike p_352337_, LivingEntity p_352175_, EquipmentSlot p_352058_) Constructors in net.minecraft.world.item with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
Type
(EquipmentSlot p_266754_, int p_332191_, String p_266886_) -
Uses of EquipmentSlot in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type EquipmentSlotModifier and TypeMethodDescriptiondouble
ItemAttributeModifiers.compute
(double p_330928_, EquipmentSlot p_330945_) void
ItemAttributeModifiers.forEach
(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) -
Uses of EquipmentSlot in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlot
EnchantedItemInUse.inSlot
The field for theinSlot
record component.Methods in net.minecraft.world.item.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantedItemInUse.inSlot()
Returns the value of theinSlot
record component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type EquipmentSlotMethods in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.forEachModifier
(ItemStack p_345685_, EquipmentSlot p_345123_, BiConsumer<Holder<Attribute>, AttributeModifier> p_345061_) boolean
Enchantment.matchingSlot
(EquipmentSlot p_345146_) static void
EnchantmentHelper.onHitBlock
(ServerLevel p_346213_, ItemStack p_344826_, LivingEntity p_345015_, Entity p_345210_, EquipmentSlot p_345889_, Vec3 p_345922_, BlockState p_350787_, Consumer<Item> p_348575_) static void
EnchantmentHelper.runIterationOnItem
(ItemStack p_44852_, EquipmentSlot p_345566_, LivingEntity p_345792_, EnchantmentHelper.EnchantmentInSlotVisitor p_345683_) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel p_345755_, ItemStack p_345291_, LivingEntity p_346348_, EquipmentSlot p_345919_) static void
EnchantmentHelper.stopLocationBasedEffects
(ItemStack p_344726_, LivingEntity p_346085_, EquipmentSlot p_345691_) Constructors in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifierConstructorDescriptionEnchantedItemInUse
(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) EnchantedItemInUse
(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUse
record class. -
Uses of EquipmentSlot in net.minecraft.world.item.enchantment.effects
Methods in net.minecraft.world.item.enchantment.effects with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate com.google.common.collect.HashMultimap
<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap
(int p_346033_, EquipmentSlot p_350290_) -
Uses of EquipmentSlot in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return EquipmentSlotModifier and TypeMethodDescriptionAbstractSkullBlock.getEquipmentSlot()
EquipableCarvedPumpkinBlock.getEquipmentSlot()
WoolCarpetBlock.getEquipmentSlot()
-
Uses of EquipmentSlot in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic Model
ClientHooks.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) static ResourceLocation
ClientHooks.getArmorTexture
(Entity entity, ItemStack armor, ArmorMaterial.Layer layer, boolean innerModel, EquipmentSlot slot) -
Uses of EquipmentSlot in net.neoforged.neoforge.client.extensions.common
Methods in net.neoforged.neoforge.client.extensions.common with parameters of type EquipmentSlotModifier and TypeMethodDescriptiondefault Model
IClientItemExtensions.getGenericArmorModel
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the armor model for this item when it's equipped.default HumanoidModel
<?> IClientItemExtensions.getHumanoidArmorModel
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the humanoid armor model for this item when it's equipped.default void
IClientItemExtensions.setupModelAnimations
(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, Model model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) Called when an armor piece is about to be rendered, allowing parts of the model to be animated or changed. -
Uses of EquipmentSlot in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic void
CommonHooks.onArmorHurt
(DamageSource source, EquipmentSlot[] slots, float damage, LivingEntity armoredEntity) This is invoked inLivingEntity.doHurtEquipment(DamageSource, float, EquipmentSlot...)
and replaces the existing item hurt and break logic with an event-sensitive version. -
Uses of EquipmentSlot in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions that return EquipmentSlotModifier and TypeMethodDescriptiondefault @Nullable EquipmentSlot
IItemExtension.getEquipmentSlot
(ItemStack stack) Override this to set a non-default armor slot for an ItemStack, but do not use this to get the armor slot of said stack; for that, useLivingEntity.getEquipmentSlotForItem(ItemStack)
..default @Nullable EquipmentSlot
IItemStackExtension.getEquipmentSlot()
Override this to set a non-default armor slot for an ItemStack, but do not use this to get the armor slot of said stack; for that, useLivingEntity.getEquipmentSlotForItem(ItemStack)
.Methods in net.neoforged.neoforge.common.extensions with parameters of type EquipmentSlotModifier and TypeMethodDescriptiondefault boolean
IItemExtension.canEquip
(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IItemStackExtension.canEquip
(EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default @Nullable ResourceLocation
IItemExtension.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, ArmorMaterial.Layer layer, boolean innerModel) Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item. -
Uses of EquipmentSlot in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EquipmentSlotFields in net.neoforged.neoforge.event.entity.living with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final EnumMap
<EquipmentSlot, ArmorHurtEvent.ArmorEntry> ArmorHurtEvent.armorEntries
Methods in net.neoforged.neoforge.event.entity.living that return EquipmentSlotMethods in net.neoforged.neoforge.event.entity.living that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionArmorHurtEvent.getArmorMap()
Used internally to get the full map ofItemStack
s to be hurtMethods in net.neoforged.neoforge.event.entity.living with parameters of type EquipmentSlotModifier and TypeMethodDescriptionArmorHurtEvent.getArmorItemStack
(EquipmentSlot slot) Provides the Itemstack for the given slot.ArmorHurtEvent.getNewDamage
(EquipmentSlot slot) Returns the amount to hurt the armor if the event is not cancelled.ArmorHurtEvent.getOriginalDamage
(EquipmentSlot slot) Returns the original damage before any event modifications.void
ArmorHurtEvent.setNewDamage
(EquipmentSlot slot, float damage) Sets new damage for the armor.Constructors in net.neoforged.neoforge.event.entity.living with parameters of type EquipmentSlotModifierConstructorDescriptionLivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) Constructor parameters in net.neoforged.neoforge.event.entity.living with type arguments of type EquipmentSlotModifierConstructorDescriptionArmorHurtEvent
(EnumMap<EquipmentSlot, ArmorHurtEvent.ArmorEntry> armorMap, LivingEntity player) -
Uses of EquipmentSlot in net.neoforged.neoforge.items.wrapper
Fields in net.neoforged.neoforge.items.wrapper with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprotected final List
<EquipmentSlot> EntityEquipmentInvWrapper.slots
The slots exposed by this wrapper, withgetIndex()
as the index.Methods in net.neoforged.neoforge.items.wrapper that return EquipmentSlotModifier and TypeMethodDescriptionprotected EquipmentSlot
EntityEquipmentInvWrapper.validateSlotIndex
(int slot)
HumanoidArmorLayer.renderArmorPiece(PoseStack, MultiBufferSource, LivingEntity, EquipmentSlot, int, HumanoidModel, float, float, float, float, float, float)
instead.