Uses of Enum Class
net.minecraft.world.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.client.model
Fields in net.minecraft.client.model with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprotected static final Map<EquipmentSlot, Set<String>> HumanoidModel.ADULT_ARMOR_PARTS_PER_SLOTprotected static final Map<EquipmentSlot, Set<String>> HumanoidModel.BABY_ARMOR_PARTS_PER_SLOTMethod parameters in net.minecraft.client.model with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprotected static ArmorModelSet<MeshDefinition> HumanoidModel.createArmorMeshSet(Function<CubeDeformation, MeshDefinition> baseFactory, Map<EquipmentSlot, Set<String>> partsPerSlot, CubeDeformation innerDeformation, CubeDeformation outerDeformation) -
Uses of EquipmentSlot in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionArmorModelSet.get(EquipmentSlot slot) private 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 state, EquipmentSlot slot) private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, SubmitNodeCollector submitNodeCollector, ItemStack itemStack, EquipmentSlot slot, int lightCoords, S state) private static booleanHumanoidArmorLayer.shouldRender(Equippable equippable, EquipmentSlot slot) static booleanHumanoidArmorLayer.shouldRender(ItemStack itemStack, 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 brokenItem, EquipmentSlot inSlot) -
Uses of EquipmentSlot in net.minecraft.world
Methods in net.minecraft.world that return EquipmentSlot -
Uses of EquipmentSlot in net.minecraft.world.entity
Subclasses with type arguments of type EquipmentSlot in net.minecraft.world.entityClasses in net.minecraft.world.entity that implement interfaces with type arguments of type EquipmentSlotFields 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 @Nullable EquipmentSlotLivingEntity.getEquipmentSlot(int slot) final EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack itemStack) default @Nullable EquipmentSlotEquipmentUser.resolveSlot(ItemStack toEquip, List<EquipmentSlot> alreadyInsertedIntoSlots) protected EquipmentSlotMob.sunProtectionSlot()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 @Nullable Map<EquipmentSlot, ItemStack> LivingEntity.collectEquipmentChanges()private static Map<EquipmentSlot, Float> EquipmentTable.createForAllSlots(float dropChance) private static Map<EquipmentSlot, Float> EquipmentTable.createForAllSlots(List<EquipmentSlot> slots, float dropChance) Mob.dropPreservedEquipment(ServerLevel level, Predicate<ItemStack> shouldDrop) private static Map<EquipmentSlot, Float> DropChances.filterDefaultValues(Map<EquipmentSlot, Float> map) EquipmentSlotGroup.iterator()EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.EquipmentSlotGroup.slots()private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> map) 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 itemStack, EquipmentSlot slot) protected booleanMob.canReplaceCurrentItem(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot) booleanLivingEntity.canUseSlot(EquipmentSlot slot) private booleanMob.compareArmor(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot) private booleanMob.compareWeapons(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity entity, EquipmentSlot equipmentSlot) Mob.createEquipmentSlotContainer(EquipmentSlot slot) protected booleanLivingEntity.doesEmitEquipEvent(EquipmentSlot slot) protected voidLivingEntity.doHurtEquipment(DamageSource damageSource, float damage, EquipmentSlot... slots) protected voidMob.enchantSpawnedArmor(ServerLevelAccessor level, RandomSource random, EquipmentSlot slot, DifficultyInstance difficulty) private voidMob.enchantSpawnedEquipment(ServerLevelAccessor level, EquipmentSlot slot, RandomSource random, float chance, DifficultyInstance difficulty) private static byteLivingEntity.entityEventForEquipmentBreak(EquipmentSlot equipmentSlot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> validator) EntityEquipment.get(EquipmentSlot slot) private doubleMob.getApproximateAttributeWith(ItemStack itemStack, Holder<Attribute> attribute, EquipmentSlot slot) static @Nullable ItemMob.getEquipmentForSlot(EquipmentSlot slot, int type) 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 itemStack, EquipmentSlot slot) booleanDropChances.isPreserved(EquipmentSlot slot) voidLivingEntity.onEquipItem(EquipmentSlot slot, ItemStack oldStack, ItemStack stack) voidLivingEntity.onEquippedItemBroken(Item brokenItem, EquipmentSlot inSlot) EntityEquipment.set(EquipmentSlot slot, ItemStack itemStack) voidEquipmentUser.setDropChance(EquipmentSlot slot, float dropChance) voidMob.setDropChance(EquipmentSlot slot, float percent) voidMob.setGuaranteedDrop(EquipmentSlot slot) voidEquipmentUser.setItemSlot(EquipmentSlot slot, ItemStack stack) voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack itemStack) voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack itemStack, boolean insideTransaction) Neo: PassingtrueforinsideTransactionsets the item without side-effects (callingLivingEntity.onEquipItem(EquipmentSlot, ItemStack, ItemStack)).protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack itemStack) booleanLivingEntity.stabAttack(EquipmentSlot weaponSlot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts) private voidLivingEntity.stopLocationBasedEffects(ItemStack previous, EquipmentSlot inSlot, AttributeMap attributes) 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> slots, float dropChance) default voidEquipmentUser.equip(ResourceKey<LootTable> lootTable, LootParams lootParams, long optionalLootTableSeed, Map<EquipmentSlot, Float> dropChances) default voidEquipmentUser.equip(ResourceKey<LootTable> lootTable, LootParams lootParams, Map<EquipmentSlot, Float> dropChances) voidMob.equip(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> dropChances) private static Map<EquipmentSlot, Float> DropChances.filterDefaultValues(Map<EquipmentSlot, Float> map) private voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> changedItems) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> changedItems) default @Nullable EquipmentSlotEquipmentUser.resolveSlot(ItemStack toEquip, List<EquipmentSlot> alreadyInsertedIntoSlots) private static Map<EquipmentSlot, Float> DropChances.toEnumMap(Map<EquipmentSlot, Float> map) 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.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.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanDolphin.canDispenserEquipIntoSlot(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.equine
Methods in net.minecraft.world.entity.animal.equine that return EquipmentSlotMethods in net.minecraft.world.entity.animal.equine with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanAbstractHorse.canDispenserEquipIntoSlot(EquipmentSlot slot) booleanAbstractHorse.canUseSlot(EquipmentSlot slot) booleanHorse.canUseSlot(EquipmentSlot slot) booleanLlama.canUseSlot(EquipmentSlot slot) booleanSkeletonHorse.canUseSlot(EquipmentSlot slot) booleanZombieHorse.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.animal.fox
Methods in net.minecraft.world.entity.animal.fox with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanFox.canDispenserEquipIntoSlot(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.golem
Fields in net.minecraft.world.entity.animal.golem declared as EquipmentSlot -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.happyghast
Methods in net.minecraft.world.entity.animal.happyghast with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanHappyGhast.canDispenserEquipIntoSlot(EquipmentSlot slot) booleanHappyGhast.canUseSlot(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.nautilus
Methods in net.minecraft.world.entity.animal.nautilus that return EquipmentSlotMethods in net.minecraft.world.entity.animal.nautilus with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanAbstractNautilus.canDispenserEquipIntoSlot(EquipmentSlot slot) booleanAbstractNautilus.canUseSlot(EquipmentSlot slot) protected Holder<SoundEvent> AbstractNautilus.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.panda
Methods in net.minecraft.world.entity.animal.panda with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanPanda.canDispenserEquipIntoSlot(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.pig
Methods in net.minecraft.world.entity.animal.pig with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanPig.canDispenserEquipIntoSlot(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.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 playerItemStack, 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) booleanStrider.canUseSlot(EquipmentSlot slot) protected Holder<SoundEvent> Strider.getEquipSound(EquipmentSlot slot, ItemStack stack, Equippable equippable) -
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 newItemStack, ItemStack currentItemStack, EquipmentSlot slot) private voidPiglin.maybeWearArmor(EquipmentSlot slot, ItemStack itemStack, RandomSource random) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.skeleton
Methods in net.minecraft.world.entity.monster.skeleton with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidAbstractSkeleton.onEquipItem(EquipmentSlot slot, ItemStack oldStack, ItemStack stack) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.zombie
Methods in net.minecraft.world.entity.monster.zombie with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanDrowned.canReplaceCurrentItem(ItemStack newItemStack, ItemStack currentItemStack, EquipmentSlot slot) -
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 itemStack) booleanPlayer.stabAttack(EquipmentSlot slot, Entity target, float baseDamage, boolean dealsDamage, boolean dealsKnockback, boolean dismounts) -
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, Identifier> InventoryMenu.TEXTURE_EMPTY_SLOTSConstructors in net.minecraft.world.inventory with parameters of type EquipmentSlotModifierConstructorDescriptionArmorSlot(Container inventory, LivingEntity owner, EquipmentSlot slot, int slotIndex, int x, int y, @Nullable Identifier 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 slot, BiConsumer<Holder<Attribute>, AttributeModifier> consumer) voidItemStack.hurtAndBreak(int amount, LivingEntity owner, EquipmentSlot slot) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike newItem, LivingEntity owner, EquipmentSlot slot) voidCompassItem.inventoryTick(ItemStack itemStack, ServerLevel level, Entity owner, @Nullable EquipmentSlot slot) voidItem.inventoryTick(ItemStack itemStack, ServerLevel level, Entity owner, @Nullable EquipmentSlot slot) voidItemStack.inventoryTick(Level level, Entity owner, @Nullable EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack itemStack, ServerLevel level, Entity owner, @Nullable EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.item.component
Methods in net.minecraft.world.item.component with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidPiercingWeapon.attack(LivingEntity attacker, EquipmentSlot hand) doubleItemAttributeModifiers.compute(Holder<Attribute> attribute, double baseValue, EquipmentSlot slot) voidKineticWeapon.damageEntities(ItemStack stack, int ticksRemaining, LivingEntity livingEntity, EquipmentSlot equipmentSlot) voidItemAttributeModifiers.forEach(EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> consumer) -
Uses of EquipmentSlot in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final @Nullable EquipmentSlotEnchantedItemInUse.inSlotThe field for theinSlotrecord component.Methods in net.minecraft.world.item.enchantment that return EquipmentSlotModifier and TypeMethodDescription@Nullable EquipmentSlotEnchantedItemInUse.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 itemStack, EquipmentSlot slot, BiConsumer<Holder<Attribute>, AttributeModifier> consumer) booleanEnchantment.matchingSlot(EquipmentSlot slot) static voidEnchantmentHelper.onHitBlock(ServerLevel serverLevel, ItemStack weapon, @Nullable LivingEntity owner, Entity entity, @Nullable EquipmentSlot slot, Vec3 hitLocation, BlockState hitBlock, Consumer<Item> onBreak) static voidEnchantmentHelper.runIterationOnItem(ItemStack piece, EquipmentSlot slot, LivingEntity owner, EnchantmentHelper.EnchantmentInSlotVisitor method) static voidEnchantmentHelper.runLocationChangedEffects(ServerLevel serverLevel, 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 itemStack, @Nullable EquipmentSlot inSlot, @Nullable LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUserecord class.EnchantedItemInUse(ItemStack itemStack, EquipmentSlot inSlot, LivingEntity owner) -
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) privateBuilder(EquipmentSlot slot) Equippable(EquipmentSlot slot, Holder<SoundEvent> equipSound, Optional<ResourceKey<EquipmentAsset>> assetId, Optional<Identifier> 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, DamageSource source) -
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.slotsDeprecated, for removal: This API element is subject to removal in a future version.The slots exposed by this wrapper, withEquipmentSlot.getIndex()as the index.Methods in net.neoforged.neoforge.items.wrapper that return EquipmentSlotModifier and TypeMethodDescriptionprotected EquipmentSlotEntityEquipmentInvWrapper.validateSlotIndex(int slot) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of EquipmentSlot in net.neoforged.neoforge.transfer.item
Fields in net.neoforged.neoforge.transfer.item declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlotLivingEntityEquipmentWrapper.SlotWrapper.slotprivate final EquipmentSlotPlayerInventoryWrapper.ArmorSlotWrapper.slotMethods in net.neoforged.neoforge.transfer.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionPlayerInventoryWrapper.getArmorSlot(EquipmentSlot slot) Retrieves a wrapper around a single armor slot.static ResourceHandler<ItemResource> LivingEntityEquipmentWrapper.of(LivingEntity entity, EquipmentSlot equipmentSlot) Gets a wrapper for a single equipment slot.Constructors in net.neoforged.neoforge.transfer.item with parameters of type EquipmentSlotModifierConstructorDescription(package private)ArmorSlotWrapper(int index, EquipmentSlot slot) privateSlotWrapper(EquipmentSlot slot)