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 ItemStackHumanoidMobRenderer.getEquipmentIfRenderable(LivingEntity entity, EquipmentSlot slot) -
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 AHumanoidArmorLayer.getArmorModel(S renderState, EquipmentSlot slot) private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, ItemStack armorItem, EquipmentSlot slot, int packedLight, A model) protected voidHumanoidArmorLayer.setPartVisibility(A model, EquipmentSlot slot) private static booleanHumanoidArmorLayer.shouldRender(Equippable equippable, EquipmentSlot slot) static booleanHumanoidArmorLayer.shouldRender(ItemStack stack, EquipmentSlot slot) private booleanHumanoidArmorLayer.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.slotsMethods 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
Methods in net.minecraft.server.commands with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStackLootCommand.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 TypeMethodDescriptionvoidServerPlayer.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 TypeFieldDescriptionprivate final EnumMap<EquipmentSlot, it.unimi.dsi.fastutil.objects.Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>> LivingEntity.activeLocationDependentEnchantmentsstatic final IntFunction<EquipmentSlot> EquipmentSlot.BY_IDprivate final Map<EquipmentSlot, Float> DropChances.byEquipmentThe field for thebyEquipmentrecord component.static final StringRepresentable.EnumCodec<EquipmentSlot> EquipmentSlot.CODECstatic final com.mojang.serialization.Codec<Map<EquipmentSlot, Float>> EquipmentTable.DROP_CHANCES_CODECprivate static final List<EquipmentSlot> private final EnumMap<EquipmentSlot, ItemStack> EntityEquipment.itemsprivate final Map<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentItemsprivate final Predicate<EquipmentSlot> EquipmentSlotGroup.predicateprivate final Map<EquipmentSlot, Float> EquipmentTable.slotDropChancesThe field for theslotDropChancesrecord component.private final List<EquipmentSlot> EquipmentSlotGroup.slotsstatic final StreamCodec<io.netty.buffer.ByteBuf, EquipmentSlot> EquipmentSlot.STREAM_CODECstatic final List<EquipmentSlot> EquipmentSlot.VALUESMethods in net.minecraft.world.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotprivate static EquipmentSlotLivingEntity.getEquipmentSlot(int index) final EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack stack) static EquipmentSlotLivingEntity.getSlotForHand(InteractionHand hand) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack stack, List<EquipmentSlot> excludedSlots) static EquipmentSlotReturns 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 thebyEquipmentrecord component.private 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(ServerLevel level, Predicate<ItemStack> filter) private static Map<EquipmentSlot, Float> DropChances.filterDefaultValues(Map<EquipmentSlot, Float> chances) EquipmentSlotGroup.iterator()EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.EquipmentSlotGroup.slots()private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> chances) Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionLivingEntity.activeLocationDependentEnchantments(EquipmentSlot slot) floatDropChances.byEquipment(EquipmentSlot slot) static EquipmentSlotGroupEquipmentSlotGroup.bySlot(EquipmentSlot slot) protected booleanLivingEntity.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanMob.canDispenserEquipIntoSlot(EquipmentSlot slot) static booleanLivingEntity.canGlideUsing(ItemStack stack, EquipmentSlot slot) protected booleanMob.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) booleanLivingEntity.canUseSlot(EquipmentSlot slot) private booleanMob.compareArmor(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) private booleanMob.compareWeapons(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity entity, EquipmentSlot slot) Mob.createEquipmentSlotContainer(EquipmentSlot slot) protected booleanLivingEntity.doesEmitEquipEvent(EquipmentSlot slot) protected voidLivingEntity.doHurtEquipment(DamageSource damageSource, float damageAmount, EquipmentSlot... slots) protected voidMob.enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float enchantChance, DifficultyInstance difficulty) private static byteLivingEntity.entityEventForEquipmentBreak(EquipmentSlot slot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> stackFilter) EntityEquipment.get(EquipmentSlot slot) private doubleMob.getApproximateAttributeWith(ItemStack item, Holder<Attribute> attribute, EquipmentSlot slot) static ItemMob.getEquipmentForSlot(EquipmentSlot slot, int chance) protected Holder<SoundEvent> LivingEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) EquipmentUser.getItemBySlot(EquipmentSlot slot) LivingEntity.getItemBySlot(EquipmentSlot slot) booleanLivingEntity.hasItemInSlot(EquipmentSlot slot) private booleanMob.hasValidEquippableItemForSlot(EquipmentSlot slot) final booleanLivingEntity.isEquippableInSlot(ItemStack stack, EquipmentSlot slot) booleanDropChances.isPreserved(EquipmentSlot slot) voidLivingEntity.onEquipItem(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) voidLivingEntity.onEquippedItemBroken(Item item, EquipmentSlot slot) EntityEquipment.set(EquipmentSlot slot, ItemStack stack) voidEquipmentUser.setDropChance(EquipmentSlot slot, float dropChance) voidMob.setDropChance(EquipmentSlot slot, float chance) voidMob.setGuaranteedDrop(EquipmentSlot slot) voidEquipmentUser.setItemSlot(EquipmentSlot slot, ItemStack stack) voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack stack) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack stack) private voidLivingEntity.stopLocationBasedEffects(ItemStack stack, EquipmentSlot slot, AttributeMap attributeMap) booleanEquipmentSlotGroup.test(EquipmentSlot slot) DropChances.withEquipmentChance(EquipmentSlot slot, float chance) DropChances.withGuaranteedDrop(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 voidEquipmentUser.equip(ResourceKey<LootTable> equipmentLootTable, LootParams params, long seed, Map<EquipmentSlot, Float> slotDropChances) default voidEquipmentUser.equip(ResourceKey<LootTable> equipmentLootTable, LootParams params, Map<EquipmentSlot, Float> slotDropChances) voidMob.equip(ResourceKey<LootTable> equipmentLootTable, Map<EquipmentSlot, Float> slotDropChances) private static Map<EquipmentSlot, Float> DropChances.filterDefaultValues(Map<EquipmentSlot, Float> chances) private voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> equipments) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> hands) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack stack, List<EquipmentSlot> excludedSlots) private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> chances) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotConstructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionDropChances(Map<EquipmentSlot, Float> byEquipment) Creates an instance of aDropChancesrecord class.privateEntityEquipment(EnumMap<EquipmentSlot, ItemStack> items) privateEquipmentSlotGroup(int id, String key, Predicate<EquipmentSlot> predicate) EquipmentTable(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) Creates an instance of aEquipmentTablerecord class. -
Uses of EquipmentSlot in net.minecraft.world.entity.animal
Methods in net.minecraft.world.entity.animal with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanDolphin.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanFox.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanHappyGhast.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanPanda.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanPig.canDispenserEquipIntoSlot(EquipmentSlot slot) booleanHappyGhast.canUseSlot(EquipmentSlot slot) booleanPig.canUseSlot(EquipmentSlot slot) protected Holder<SoundEvent> Pig.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) -
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 booleanAllay.canDispenserEquipIntoSlot(EquipmentSlot slot) -
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 slot, ItemStack stack, Equippable equippable) -
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 booleanAbstractHorse.canDispenserEquipIntoSlot(EquipmentSlot slot) booleanAbstractHorse.canUseSlot(EquipmentSlot slot) booleanHorse.canUseSlot(EquipmentSlot slot) booleanLlama.canUseSlot(EquipmentSlot slot) private voidSkeletonTrapGoal.enchant(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) protected Holder<SoundEvent> AbstractHorse.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) -
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 TypeMethodDescriptionbooleanArmorStand.canUseSlot(EquipmentSlot slot) private booleanArmorStand.isDisabled(EquipmentSlot slot) private booleanArmorStand.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 TypeMethodDescriptionprotected booleanStrider.canDispenserEquipIntoSlot(EquipmentSlot slot) protected booleanDrowned.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) booleanStrider.canUseSlot(EquipmentSlot slot) protected Holder<SoundEvent> Strider.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) voidAbstractSkeleton.onEquipItem(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) -
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 booleanPiglin.canReplaceCurrentItem(ItemStack newItem, ItemStack currentItem, EquipmentSlot slot) private voidPiglin.maybeWearArmor(EquipmentSlot slot, ItemStack stack, RandomSource random) -
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_MAPPINGMethods in net.minecraft.world.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanPlayer.doesEmitEquipEvent(EquipmentSlot slot) PlayerEquipment.get(EquipmentSlot slot) PlayerEquipment.set(EquipmentSlot slot, ItemStack stack) -
Uses of EquipmentSlot in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlotArmorSlot.slotprivate static final EquipmentSlot[]InventoryMenu.SLOT_IDSFields in net.minecraft.world.inventory with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map<EquipmentSlot, ResourceLocation> InventoryMenu.TEXTURE_EMPTY_SLOTSConstructors 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
Methods in net.minecraft.world.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionItem.Properties.equippable(EquipmentSlot slot) Item.Properties.equippableUnswappable(EquipmentSlot slot) voidItemStack.forEachModifier(EquipmentSlot equipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> action) voidItemStack.hurtAndBreak(int amount, LivingEntity entity, EquipmentSlot slot) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike item, LivingEntity entity, EquipmentSlot slot) voidCompassItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) voidItemStack.inventoryTick(Level level, Entity entity, EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type EquipmentSlotModifier and TypeMethodDescriptiondoubleItemAttributeModifiers.compute(double baseValue, EquipmentSlot equipmentSlot) voidItemAttributeModifiers.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 EquipmentSlotEnchantedItemInUse.inSlotThe field for theinSlotrecord component.Methods in net.minecraft.world.item.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantedItemInUse.inSlot()Returns the value of theinSlotrecord 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 in.invalid reference
slots that the enchantment cares about
Methods in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic voidEnchantmentHelper.forEachModifier(ItemStack stack, EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> action) booleanEnchantment.matchingSlot(EquipmentSlot slot) static voidEnchantmentHelper.onHitBlock(ServerLevel level, ItemStack stack, LivingEntity owner, Entity entity, EquipmentSlot slot, Vec3 pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.runIterationOnItem(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.EnchantmentInSlotVisitor visitor) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel level, ItemStack stack, LivingEntity entity, EquipmentSlot slot) static voidEnchantmentHelper.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 aEnchantedItemInUserecord 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 HashMultimap<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap(int enchantmentLevel, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.item.equipment
Fields in net.minecraft.world.item.equipment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlotArmorType.slotprivate final EquipmentSlotEquippable.Builder.slotprivate final EquipmentSlotEquippable.slotThe field for theslotrecord component.Methods in net.minecraft.world.item.equipment that return EquipmentSlotModifier and TypeMethodDescriptionArmorType.getSlot()Equippable.slot()Returns the value of theslotrecord component.Methods in net.minecraft.world.item.equipment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic Equippable.BuilderEquippable.builder(EquipmentSlot slot) Constructors in net.minecraft.world.item.equipment with parameters of type EquipmentSlotModifierConstructorDescriptionprivateArmorType(EquipmentSlot slot, int unitDurability, String name) (package private)Builder(EquipmentSlot slot) 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 aEquippablerecord 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 voidIClientItemExtensions.renderFirstPersonOverlay(ItemStack stack, EquipmentSlot equipmentSlot, Player player, GuiGraphics guiGraphics, DeltaTracker deltaTracker) Called to render an overlay on the first-person camera.default voidIClientItemExtensions.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 voidCommonHooks.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 EquipmentSlotIItemExtension.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 EquipmentSlotIItemStackExtension.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 booleanIItemExtension.canEquip(ItemStack stack, EquipmentSlot armorType, LivingEntity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIItemStackExtension.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.armorEntriesMethods 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 ofItemStacks 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.voidArmorHurtEvent.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.slotsThe slots exposed by this wrapper, withgetIndex()as the index.Methods in net.neoforged.neoforge.items.wrapper that return EquipmentSlotModifier and TypeMethodDescriptionprotected EquipmentSlotEntityEquipmentInvWrapper.validateSlotIndex(int slot)