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 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 AHumanoidArmorLayer.getArmorModel(S pRenderState, EquipmentSlot pSlot) private voidHumanoidArmorLayer.renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, ItemStack pArmorItem, EquipmentSlot pSlot, int pPackedLight, A pModel) protected voidHumanoidArmorLayer.setPartVisibility(A pModel, EquipmentSlot pSlot) private static booleanHumanoidArmorLayer.shouldRender(Equippable pEquippable, EquipmentSlot pSlot) static booleanHumanoidArmorLayer.shouldRender(ItemStack pStack, EquipmentSlot pSlot) private booleanHumanoidArmorLayer.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.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 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 ItemStackLootCommand.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 TypeMethodDescriptionvoidServerPlayer.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 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 pIndex) final EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack pStack) static EquipmentSlotLivingEntity.getSlotForHand(InteractionHand pHand) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack pStack, List<EquipmentSlot> pExcludedSlots) 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 pDropChance) 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> pChances) EquipmentSlotGroup.iterator()EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.EquipmentSlotGroup.slots()private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> pChances) Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionLivingEntity.activeLocationDependentEnchantments(EquipmentSlot pSlot) floatDropChances.byEquipment(EquipmentSlot pSlot) static EquipmentSlotGroupEquipmentSlotGroup.bySlot(EquipmentSlot pSlot) protected booleanLivingEntity.canDispenserEquipIntoSlot(EquipmentSlot pSlot) protected booleanMob.canDispenserEquipIntoSlot(EquipmentSlot p_371241_) static booleanLivingEntity.canGlideUsing(ItemStack pStack, EquipmentSlot pSlot) protected booleanMob.canReplaceCurrentItem(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) booleanLivingEntity.canUseSlot(EquipmentSlot pSlot) private booleanMob.compareArmor(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) private booleanMob.compareWeapons(ItemStack pNewItem, ItemStack pCurrentItem, EquipmentSlot pSlot) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity pEntity, EquipmentSlot pSlot) Mob.createEquipmentSlotContainer(EquipmentSlot pSlot) protected booleanLivingEntity.doesEmitEquipEvent(EquipmentSlot pSlot) protected voidLivingEntity.doHurtEquipment(DamageSource pDamageSource, float pDamageAmount, EquipmentSlot... pSlots) protected voidMob.enchantSpawnedArmor(ServerLevelAccessor pLevel, RandomSource pRandom, EquipmentSlot pSlot, DifficultyInstance pDifficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor pLevel, EquipmentSlot pSlot, RandomSource pRandom, float pEnchantChance, DifficultyInstance pDifficulty) private static byteLivingEntity.entityEventForEquipmentBreak(EquipmentSlot pSlot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity pEntity, EquipmentSlot pSlot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity pEntity, EquipmentSlot pSlot, Predicate<ItemStack> pStackFilter) EntityEquipment.get(EquipmentSlot pSlot) private doubleMob.getApproximateAttributeWith(ItemStack pItem, Holder<Attribute> pAttribute, EquipmentSlot pSlot) static ItemMob.getEquipmentForSlot(EquipmentSlot pSlot, int pChance) protected Holder<SoundEvent> LivingEntity.getEquipSound(EquipmentSlot pSlot, ItemStack pStack, Equippable pEquippable) EquipmentUser.getItemBySlot(EquipmentSlot pSlot) LivingEntity.getItemBySlot(EquipmentSlot pSlot) booleanLivingEntity.hasItemInSlot(EquipmentSlot pSlot) final booleanLivingEntity.isEquippableInSlot(ItemStack pStack, EquipmentSlot pSlot) booleanDropChances.isPreserved(EquipmentSlot pSlot) voidLivingEntity.onEquipItem(EquipmentSlot pSlot, ItemStack pOldItem, ItemStack pNewItem) voidLivingEntity.onEquippedItemBroken(Item pItem, EquipmentSlot pSlot) EntityEquipment.set(EquipmentSlot pSlot, ItemStack pStack) voidEquipmentUser.setDropChance(EquipmentSlot pSlot, float pDropChance) voidMob.setDropChance(EquipmentSlot pSlot, float pChance) voidMob.setGuaranteedDrop(EquipmentSlot pSlot) voidEquipmentUser.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) voidLivingEntity.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot pSlot, ItemStack pStack) private voidLivingEntity.stopLocationBasedEffects(ItemStack pStack, EquipmentSlot pSlot, AttributeMap pAttributeMap) booleanEquipmentSlotGroup.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 voidEquipmentUser.equip(ResourceKey<LootTable> pEquipmentLootTable, LootParams pParams, long pSeed, Map<EquipmentSlot, Float> pSlotDropChances) default voidEquipmentUser.equip(ResourceKey<LootTable> pEquipmentLootTable, LootParams pParams, Map<EquipmentSlot, Float> pSlotDropChances) voidMob.equip(ResourceKey<LootTable> pEquipmentLootTable, Map<EquipmentSlot, Float> pSlotDropChances) private static Map<EquipmentSlot, Float> DropChances.filterDefaultValues(Map<EquipmentSlot, Float> pChances) private voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> pEquipments) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> pHands) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack pStack, List<EquipmentSlot> pExcludedSlots) private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> pChances) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotModifierConstructorDescriptionprivateEquipmentSlotGroup(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 aDropChancesrecord class.privateEntityEquipment(EnumMap<EquipmentSlot, ItemStack> pItems) privateEquipmentSlotGroup(int pId, String pKey, Predicate<EquipmentSlot> pPredicate) 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 p_371291_) protected booleanFox.canDispenserEquipIntoSlot(EquipmentSlot p_371942_) protected booleanPanda.canDispenserEquipIntoSlot(EquipmentSlot p_371896_) protected booleanPig.canDispenserEquipIntoSlot(EquipmentSlot p_397716_) booleanPig.canUseSlot(EquipmentSlot p_397991_) protected Holder<SoundEvent> Pig.getEquipSound(EquipmentSlot p_397377_, ItemStack p_397787_, Equippable p_397153_) -
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 p_371819_) -
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 p_397855_, ItemStack p_397494_, Equippable p_397094_) -
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 p_371599_) booleanAbstractHorse.canUseSlot(EquipmentSlot p_397737_) booleanHorse.canUseSlot(EquipmentSlot p_348583_) booleanLlama.canUseSlot(EquipmentSlot p_348498_) private voidSkeletonTrapGoal.enchant(Skeleton pSkeleton, EquipmentSlot pSlot, DifficultyInstance pDifficulty) protected Holder<SoundEvent> AbstractHorse.getEquipSound(EquipmentSlot p_397157_, ItemStack p_397978_, Equippable p_397221_) -
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 p_326077_) private booleanArmorStand.isDisabled(EquipmentSlot pSlot) private booleanArmorStand.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 booleanStrider.canDispenserEquipIntoSlot(EquipmentSlot p_398008_) protected booleanDrowned.canReplaceCurrentItem(ItemStack pCandidate, ItemStack pExisting, EquipmentSlot p_371339_) booleanStrider.canUseSlot(EquipmentSlot p_397167_) protected Holder<SoundEvent> Strider.getEquipSound(EquipmentSlot p_397775_, ItemStack p_397723_, Equippable p_397102_) voidAbstractSkeleton.onEquipItem(EquipmentSlot p_401835_, ItemStack p_401917_, ItemStack p_401943_) -
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 pCandidate, ItemStack pExisting, EquipmentSlot p_371356_) private voidPiglin.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_MAPPINGMethods in net.minecraft.world.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanPlayer.doesEmitEquipEvent(EquipmentSlot p_219741_) PlayerEquipment.get(EquipmentSlot p_401776_) PlayerEquipment.set(EquipmentSlot p_401903_, ItemStack p_401882_) -
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 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) voidItemStack.forEachModifier(EquipmentSlot pEquipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) voidItemStack.hurtAndBreak(int pAmount, LivingEntity pEntity, EquipmentSlot pSlot) ItemStack.hurtAndConvertOnBreak(int pAmount, ItemLike pItem, LivingEntity pEntity, EquipmentSlot pSlot) voidCompassItem.inventoryTick(ItemStack p_40720_, ServerLevel p_401770_, Entity p_40722_, EquipmentSlot p_401781_) voidItem.inventoryTick(ItemStack pStack, ServerLevel pLevel, Entity pEntity, EquipmentSlot pSlot) voidItemStack.inventoryTick(Level pLevel, Entity pEntity, EquipmentSlot pSlot) voidMapItem.inventoryTick(ItemStack p_42870_, ServerLevel p_401792_, Entity p_42872_, EquipmentSlot p_401885_) -
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 pBaseValue, EquipmentSlot pEquipmentSlot) voidItemAttributeModifiers.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 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 pEntity) 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 pStack, EquipmentSlot pSlot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) booleanEnchantment.matchingSlot(EquipmentSlot pSlot) static voidEnchantmentHelper.onHitBlock(ServerLevel pLevel, ItemStack pStack, LivingEntity pOwner, Entity pEntity, EquipmentSlot pSlot, Vec3 pPos, BlockState pState, Consumer<Item> pOnBreak) static voidEnchantmentHelper.runIterationOnItem(ItemStack pStack, EquipmentSlot pSlot, LivingEntity pEntity, EnchantmentHelper.EnchantmentInSlotVisitor pVisitor) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel pLevel, ItemStack pStack, LivingEntity pEntity, EquipmentSlot pSlot) static voidEnchantmentHelper.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 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 pEnchantmentLevel, EquipmentSlot pSlot) -
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 pSlot) Constructors in net.minecraft.world.item.equipment with parameters of type EquipmentSlotModifierConstructorDescriptionprivateArmorType(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) 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)