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 slot) protected Model
HumanoidArmorLayer.getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A model) Deprecated.private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A p_model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) protected void
HumanoidArmorLayer.setPartVisibility
(A model, EquipmentSlot slot) private boolean
HumanoidArmorLayer.usesInnerModel
(EquipmentSlot slot) -
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 entity, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> slots) -
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 source, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ServerPlayer.onEquippedItemBroken
(Item item, EquipmentSlot slot) -
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 index) LivingEntity.getEquipmentSlotForItem
(ItemStack stack) static EquipmentSlot
LivingEntity.getSlotForHand
(InteractionHand hand) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack stack, List<EquipmentSlot> excludedSlots) 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 dropChance) private static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> equipmentSlots, float dropChance) Mob.dropPreservedEquipment
(Predicate<ItemStack> predicate) 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 slot) boolean
LivingEntity.canUseSlot
(EquipmentSlot slot) boolean
Mob.canUseSlot
(EquipmentSlot slot) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity entity, EquipmentSlot slot) protected boolean
LivingEntity.doesEmitEquipEvent
(EquipmentSlot slot) protected void
LivingEntity.doHurtEquipment
(DamageSource damageSource, float damageAmount, EquipmentSlot... slots) protected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float enchantChance, DifficultyInstance difficulty) private static byte
LivingEntity.entityEventForEquipmentBreak
(EquipmentSlot slot) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity entity, EquipmentSlot slot) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> stackFilter) protected float
Mob.getEquipmentDropChance
(EquipmentSlot slot) static Item
Mob.getEquipmentForSlot
(EquipmentSlot slot, int chance) EquipmentUser.getItemBySlot
(EquipmentSlot slot) abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlot slot) Mob.getItemBySlot
(EquipmentSlot slot) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlot slot) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlot slot) boolean
LivingEntity.hasItemInSlot
(EquipmentSlot slot) void
LivingEntity.onEquipItem
(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) void
LivingEntity.onEquippedItemBroken
(Item item, EquipmentSlot slot) void
EquipmentUser.setDropChance
(EquipmentSlot slot, float dropChance) void
Mob.setDropChance
(EquipmentSlot slot, float chance) void
Mob.setGuaranteedDrop
(EquipmentSlot slot) void
EquipmentUser.setItemSlot
(EquipmentSlot slot, ItemStack stack) abstract void
LivingEntity.setItemSlot
(EquipmentSlot slot, ItemStack stack) void
Mob.setItemSlot
(EquipmentSlot slot, ItemStack stack) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot slot, ItemStack stack) private void
LivingEntity.setLastArmorItem
(EquipmentSlot slot, ItemStack stack) private void
LivingEntity.setLastHandItem
(EquipmentSlot slot, ItemStack stack) boolean
EquipmentSlotGroup.test
(EquipmentSlot slot) Method parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> equipmentSlots, float dropChance) default void
EquipmentUser.equip
(ResourceKey<LootTable> equipmentLootTable, LootParams params, long seed, Map<EquipmentSlot, Float> slotDropChances) default void
EquipmentUser.equip
(ResourceKey<LootTable> equipmentLootTable, LootParams params, Map<EquipmentSlot, Float> slotDropChances) void
Mob.equip
(ResourceKey<LootTable> equipmentLootTable, Map<EquipmentSlot, Float> slotDropChances) private void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> equipments) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlot, ItemStack> hands) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack stack, List<EquipmentSlot> excludedSlots) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotConstructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionprivate
EquipmentSlotGroup
(int id, String key, Predicate<EquipmentSlot> predicate) 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 slot) boolean
Llama.canUseSlot
(EquipmentSlot slot) private void
SkeletonTrapGoal.enchant
(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) -
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 slot) ArmorStand.getItemBySlot
(EquipmentSlot slot) private boolean
ArmorStand.isDisabled
(EquipmentSlot slot) void
ArmorStand.setItemSlot
(EquipmentSlot slot, ItemStack stack) private boolean
ArmorStand.swapItem
(Player player, EquipmentSlot slot, ItemStack stack, InteractionHand hand) -
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 slot, ItemStack stack) -
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 slot, ItemStack stack, RandomSource random) -
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 slot) protected boolean
Player.doesEmitEquipEvent
(EquipmentSlot slot) Player.getItemBySlot
(EquipmentSlot slot1) void
Player.setItemSlot
(EquipmentSlot slot, ItemStack stack) -
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 container, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, ResourceLocation emptyIcon) -
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 equipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> action) void
ItemStack.hurtAndBreak
(int amount, LivingEntity entity, EquipmentSlot slot) ItemStack.hurtAndConvertOnBreak
(int amount, ItemLike item, LivingEntity entity, EquipmentSlot slot) Constructors in net.minecraft.world.item with parameters of type EquipmentSlot -
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 baseValue, EquipmentSlot equipmentSlot) void
ItemAttributeModifiers.forEach
(EquipmentSlot equipmentSlot, BiConsumer<Holder<Attribute>, AttributeModifier> action) -
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 EquipmentSlotModifier and TypeMethodDescriptionEnchantment.getSlotItems
(LivingEntity entity) Creates a new map containing all items equipped by an entity ininvalid reference
slots that the enchantment cares about
Methods in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.forEachModifier
(ItemStack stack, EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> action) boolean
Enchantment.matchingSlot
(EquipmentSlot slot) static void
EnchantmentHelper.onHitBlock
(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) static void
EnchantmentHelper.runIterationOnItem
(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.EnchantmentInSlotVisitor visitor) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel level, ItemStack stack, LivingEntity entity, EquipmentSlot slot) static void
EnchantmentHelper.stopLocationBasedEffects
(ItemStack stack, LivingEntity entity, EquipmentSlot slot) 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 enchantmentLevel, EquipmentSlot slot) -
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.