Uses of Enum Class
net.minecraft.world.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStack
HumanoidMobRenderer.getEquipmentIfRenderable
(LivingEntity pEntity, EquipmentSlot pSlot) -
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
(S pRenderState, EquipmentSlot pSlot) private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack pPoseStack, MultiBufferSource pBufferSource, ItemStack pArmorItem, EquipmentSlot pSlot, int pPackedLight, A pModel) protected void
HumanoidArmorLayer.setPartVisibility
(A pModel, EquipmentSlot pSlot) private static boolean
HumanoidArmorLayer.shouldRender
(Equippable pEquippable, EquipmentSlot pSlot) static boolean
HumanoidArmorLayer.shouldRender
(ItemStack pStack, EquipmentSlot pSlot) private boolean
HumanoidArmorLayer.usesInnerModel
(EquipmentSlot pSlot) -
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 pEntity, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> pSlots) -
Uses of EquipmentSlot in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getSourceHandItem
(CommandSourceStack pSource, EquipmentSlot pSlot) -
Uses of EquipmentSlot in net.minecraft.server.level
Methods in net.minecraft.server.level with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ServerPlayer.onEquippedItemBroken
(Item pItem, EquipmentSlot pSlot) -
Uses of EquipmentSlot in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final EnumMap
<EquipmentSlot, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>> LivingEntity.activeLocationDependentEnchantments
static final IntFunction
<EquipmentSlot> EquipmentSlot.BY_ID
private final Map
<EquipmentSlot, Float> DropChances.byEquipment
The field for thebyEquipment
record component.static final StringRepresentable.EnumCodec
<EquipmentSlot> EquipmentSlot.CODEC
static final com.mojang.serialization.Codec
<Map<EquipmentSlot, Float>> EquipmentTable.DROP_CHANCES_CODEC
private static final List
<EquipmentSlot> private final EnumMap
<EquipmentSlot, ItemStack> EntityEquipment.items
private final Map
<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentItems
private final Predicate
<EquipmentSlot> EquipmentSlotGroup.predicate
private final Map
<EquipmentSlot, Float> EquipmentTable.slotDropChances
The field for theslotDropChances
record component.private final List
<EquipmentSlot> EquipmentSlotGroup.slots
static final StreamCodec
<io.netty.buffer.ByteBuf, EquipmentSlot> EquipmentSlot.STREAM_CODEC
static final List
<EquipmentSlot> EquipmentSlot.VALUES
Methods in net.minecraft.world.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlot
private static EquipmentSlot
LivingEntity.getEquipmentSlot
(int pIndex) final EquipmentSlot
LivingEntity.getEquipmentSlotForItem
(ItemStack pStack) static EquipmentSlot
LivingEntity.getSlotForHand
(InteractionHand pHand) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack pStack, List<EquipmentSlot> pExcludedSlots) 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 TypeMethodDescriptionDropChances.byEquipment()
Returns the value of thebyEquipment
record component.private Map
<EquipmentSlot, ItemStack> LivingEntity.collectEquipmentChanges()
private static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(float p_340946_) private static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> pEquipmentSlots, float pDropChance) Mob.dropPreservedEquipment
(ServerLevel pLevel, Predicate<ItemStack> pFilter) private static Map
<EquipmentSlot, Float> DropChances.filterDefaultValues
(Map<EquipmentSlot, Float> p_394014_) EquipmentSlotGroup.iterator()
EquipmentTable.slotDropChances()
Returns the value of theslotDropChances
record component.EquipmentSlotGroup.slots()
private static Map
<EquipmentSlot, Float> DropChances.toEnumMap
(Map<EquipmentSlot, Float> p_393876_) Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionLivingEntity.activeLocationDependentEnchantments
(EquipmentSlot pSlot) float
DropChances.byEquipment
(EquipmentSlot pSlot) static EquipmentSlotGroup
EquipmentSlotGroup.bySlot
(EquipmentSlot pSlot) protected boolean
LivingEntity.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
Mob.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) static boolean
LivingEntity.canGlideUsing
(ItemStack pStack, EquipmentSlot pSlot) protected boolean
Mob.canReplaceCurrentItem
(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) boolean
LivingEntity.canUseSlot
(EquipmentSlot pSlot) private boolean
Mob.compareArmor
(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) private boolean
Mob.compareWeapons
(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity pEntity, EquipmentSlot pSlot) Mob.createEquipmentSlotContainer
(EquipmentSlot pSlot) protected boolean
LivingEntity.doesEmitEquipEvent
(EquipmentSlot pSlot) protected void
LivingEntity.doHurtEquipment
(DamageSource pDamageSource, float pDamageAmount, EquipmentSlot... pSlots) protected void
Mob.enchantSpawnedArmor
(ServerLevelAccessor pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private void
Mob.enchantSpawnedEquipment
(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) private static byte
LivingEntity.entityEventForEquipmentBreak
(EquipmentSlot pSlot) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity pEntity, EquipmentSlot pSlot) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity pEntity, EquipmentSlot pSlot, Predicate<ItemStack> pStackFilter) EntityEquipment.get
(EquipmentSlot pSlot) private double
Mob.getApproximateAttributeWith
(ItemStack pItem, Holder<Attribute> pAttribute, EquipmentSlot pSlot) static Item
Mob.getEquipmentForSlot
(EquipmentSlot pSlot, int pChance) protected Holder
<SoundEvent> LivingEntity.getEquipSound
(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) EquipmentUser.getItemBySlot
(EquipmentSlot pSlot) LivingEntity.getItemBySlot
(EquipmentSlot pSlot) boolean
LivingEntity.hasItemInSlot
(EquipmentSlot pSlot) private boolean
Mob.hasValidEquippableItemForSlot
(EquipmentSlot pSlot) final boolean
LivingEntity.isEquippableInSlot
(ItemStack pStack, EquipmentSlot pSlot) boolean
DropChances.isPreserved
(EquipmentSlot pSlot) void
LivingEntity.onEquipItem
(EquipmentSlot pSlot, ItemStack pOldItem, ItemStack pNewItem) void
LivingEntity.onEquippedItemBroken
(Item pItem, EquipmentSlot pSlot) EntityEquipment.set
(EquipmentSlot pSlot, ItemStack pStack) void
EquipmentUser.setDropChance
(EquipmentSlot pSlot, float pDropChance) void
Mob.setDropChance
(EquipmentSlot pSlot, float pChance) void
Mob.setGuaranteedDrop
(EquipmentSlot pSlot) void
EquipmentUser.setItemSlot
(EquipmentSlot pSlot, ItemStack pStack) void
LivingEntity.setItemSlot
(EquipmentSlot pSlot, ItemStack pStack) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot pSlot, ItemStack pStack) private void
LivingEntity.stopLocationBasedEffects
(ItemStack pStack, EquipmentSlot pSlot, AttributeMap pAttributeMap) boolean
EquipmentSlotGroup.test
(EquipmentSlot pSlot) DropChances.withEquipmentChance
(EquipmentSlot pSlot, float pChance) DropChances.withGuaranteedDrop
(EquipmentSlot pSlot) Method parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate static Map
<EquipmentSlot, Float> EquipmentTable.createForAllSlots
(List<EquipmentSlot> pEquipmentSlots, float pDropChance) default void
EquipmentUser.equip
(ResourceKey<LootTable> pEquipmentLootTable, LootParams pParams, long pSeed, Map<EquipmentSlot, Float> pSlotDropChances) default void
EquipmentUser.equip
(ResourceKey<LootTable> pEquipmentLootTable, LootParams pParams, Map<EquipmentSlot, Float> pSlotDropChances) void
Mob.equip
(ResourceKey<LootTable> pEquipmentLootTable, Map<EquipmentSlot, Float> pSlotDropChances) private static Map
<EquipmentSlot, Float> DropChances.filterDefaultValues
(Map<EquipmentSlot, Float> p_394014_) private void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> pEquipments) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlot, ItemStack> pHands) default EquipmentSlot
EquipmentUser.resolveSlot
(ItemStack pStack, List<EquipmentSlot> pExcludedSlots) private static Map
<EquipmentSlot, Float> DropChances.toEnumMap
(Map<EquipmentSlot, Float> p_393876_) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
EquipmentSlotGroup
(int pId, String pKey, EquipmentSlot pSlot) Constructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionDropChances
(Map<EquipmentSlot, Float> byEquipment) Creates an instance of aDropChances
record class.private
EntityEquipment
(EnumMap<EquipmentSlot, ItemStack> pItems) private
EquipmentSlotGroup
(int pId, String pKey, Predicate<EquipmentSlot> pPredicate) 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 EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
Dolphin.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
Fox.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
HappyGhast.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
Panda.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
Pig.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) boolean
HappyGhast.canUseSlot
(EquipmentSlot pSlot) boolean
Pig.canUseSlot
(EquipmentSlot pSlot) protected Holder
<SoundEvent> Pig.getEquipSound
(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.allay
Methods in net.minecraft.world.entity.animal.allay with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
Allay.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.camel
Methods in net.minecraft.world.entity.animal.camel with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected Holder
<SoundEvent> Camel.getEquipSound
(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
AbstractHorse.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) boolean
AbstractHorse.canUseSlot
(EquipmentSlot pSlot) boolean
Horse.canUseSlot
(EquipmentSlot pSlot) boolean
Llama.canUseSlot
(EquipmentSlot pSlot) private void
SkeletonTrapGoal.enchant
(Skeleton pSkeleton, EquipmentSlot pSlot, DifficultyInstance pDifficulty) protected Holder
<SoundEvent> AbstractHorse.getEquipSound
(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) -
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 pSlot) private boolean
ArmorStand.isDisabled
(EquipmentSlot pSlot) private boolean
ArmorStand.swapItem
(Player pPlayer, EquipmentSlot pSlot, ItemStack pStack, InteractionHand pHand) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster
Methods in net.minecraft.world.entity.monster with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
Strider.canDispenserEquipIntoSlot
(EquipmentSlot pSlot) protected boolean
Drowned.canReplaceCurrentItem
(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) boolean
Strider.canUseSlot
(EquipmentSlot pSlot) protected Holder
<SoundEvent> Strider.getEquipSound
(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) void
AbstractSkeleton.onEquipItem
(EquipmentSlot pSlot, ItemStack pOldItem, ItemStack pNewItem) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
Piglin.canReplaceCurrentItem
(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) private void
Piglin.maybeWearArmor
(EquipmentSlot pSlot, ItemStack pStack, RandomSource pRandom) -
Uses of EquipmentSlot in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionstatic final it.unimi.dsi.fastutil.ints.Int2ObjectMap
<EquipmentSlot> Inventory.EQUIPMENT_SLOT_MAPPING
Methods in net.minecraft.world.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
Player.doesEmitEquipEvent
(EquipmentSlot pSlot) PlayerEquipment.get
(EquipmentSlot pSlot) PlayerEquipment.set
(EquipmentSlot pSlot, ItemStack pStack) -
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 pContainer, LivingEntity pOwner, EquipmentSlot pSlot, int pSlotIndex, int pX, int pY, ResourceLocation pEmptyIcon) -
Uses of EquipmentSlot in net.minecraft.world.item
Methods in net.minecraft.world.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionItem.Properties.equippable
(EquipmentSlot pSlot) Item.Properties.equippableUnswappable
(EquipmentSlot pSlot) void
ItemStack.forEachModifier
(EquipmentSlot pEquipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) void
ItemStack.hurtAndBreak
(int pAmount, LivingEntity pEntity, EquipmentSlot pSlot) ItemStack.hurtAndConvertOnBreak
(int pAmount, ItemLike pItem, LivingEntity pEntity, EquipmentSlot pSlot) void
CompassItem.inventoryTick
(ItemStack pStack, ServerLevel pLevel, Entity pEntity, EquipmentSlot pSlot) void
Item.inventoryTick
(ItemStack pStack, ServerLevel pLevel, Entity pEntity, EquipmentSlot pSlot) void
ItemStack.inventoryTick
(Level pLevel, Entity pEntity, EquipmentSlot pSlot) void
MapItem.inventoryTick
(ItemStack pStack, ServerLevel pLevel, Entity pEntity, EquipmentSlot pSlot) -
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 pBaseValue, EquipmentSlot pEquipmentSlot) void
ItemAttributeModifiers.forEach
(EquipmentSlot pEquipmentSlot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) -
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 pEntity) 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 pStack, EquipmentSlot pSlot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) boolean
Enchantment.matchingSlot
(EquipmentSlot pSlot) static void
EnchantmentHelper.onHitBlock
(ServerLevel pLevel, ItemStack pStack, LivingEntity pOwner, Entity pEntity, EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) static void
EnchantmentHelper.runIterationOnItem
(ItemStack pStack, EquipmentSlot pSlot, LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) static void
EnchantmentHelper.runLocationChangedEffects
(ServerLevel pLevel, ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) static void
EnchantmentHelper.stopLocationBasedEffects
(ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) 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.item.equipment
Fields in net.minecraft.world.item.equipment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlot
ArmorType.slot
private final EquipmentSlot
Equippable.Builder.slot
private final EquipmentSlot
Equippable.slot
The field for theslot
record component.Methods in net.minecraft.world.item.equipment that return EquipmentSlotModifier and TypeMethodDescriptionArmorType.getSlot()
Equippable.slot()
Returns the value of theslot
record component.Methods in net.minecraft.world.item.equipment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic Equippable.Builder
Equippable.builder
(EquipmentSlot pSlot) Constructors in net.minecraft.world.item.equipment with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
ArmorType
(EquipmentSlot pSlot, int pUnitDurability, String pName) (package private)
Builder
(EquipmentSlot pSlot) Equippable
(EquipmentSlot slot, Holder<SoundEvent> equipSound, Optional<ResourceKey<EquipmentAsset>> assetId, Optional<ResourceLocation> cameraOverlay, Optional<HolderSet<EntityType<?>>> allowedEntities, boolean dispensable, boolean swappable, boolean damageOnHurt, boolean equipOnInteract, boolean canBeSheared, Holder<SoundEvent> shearingSound) Creates an instance of aEquippable
record class. -
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 void
IClientItemExtensions.renderFirstPersonOverlay
(ItemStack stack, EquipmentSlot equipmentSlot, Player player, GuiGraphics guiGraphics, DeltaTracker deltaTracker) Called to render an overlay on the first-person camera.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. -
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)