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 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 renderState, EquipmentSlot slot) private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, SubmitNodeCollector nodeCollector, ItemStack item, EquipmentSlot slot, int packedLight, S renderState) 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 p_348565_, EquipmentSlot p_348623_) -
Uses of EquipmentSlot in net.minecraft.world
Methods in net.minecraft.world that return EquipmentSlot -
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 @Nullable EquipmentSlotLivingEntity.getEquipmentSlot(int index) final EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack stack) default @Nullable EquipmentSlotEquipmentUser.resolveSlot(ItemStack stack, List<EquipmentSlot> excludedSlots) 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> 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 p_371241_) 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 @Nullable 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) voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack stack, boolean insideTransaction) Neo: PassingtrueforinsideTransactionsets the item without side-effects (callingLivingEntity.onEquipItem(net.minecraft.world.entity.EquipmentSlot, net.minecraft.world.item.ItemStack, net.minecraft.world.item.ItemStack)).protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack stack) booleanLivingEntity.stabAttack(EquipmentSlot slot, Entity entity, float damageAmount, boolean damage, boolean knockback, boolean dismount) 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> equipment) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> hands) default @Nullable 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.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.dolphin
Methods in net.minecraft.world.entity.animal.dolphin with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanDolphin.canDispenserEquipIntoSlot(EquipmentSlot p_481432_) -
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 p_478125_) booleanAbstractHorse.canUseSlot(EquipmentSlot p_480980_) booleanHorse.canUseSlot(EquipmentSlot p_479791_) booleanLlama.canUseSlot(EquipmentSlot p_478513_) booleanSkeletonHorse.canUseSlot(EquipmentSlot p_480066_) booleanZombieHorse.canUseSlot(EquipmentSlot p_481976_) private voidSkeletonTrapGoal.enchant(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) protected Holder<SoundEvent> AbstractHorse.getEquipSound(EquipmentSlot p_477912_, ItemStack p_481049_, Equippable p_481569_) -
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 p_481343_) -
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 p_481830_) booleanHappyGhast.canUseSlot(EquipmentSlot p_482138_) -
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 p_482363_) booleanAbstractNautilus.canUseSlot(EquipmentSlot p_454817_) protected Holder<SoundEvent> AbstractNautilus.getEquipSound(EquipmentSlot p_459196_, ItemStack p_459040_, Equippable p_459134_) -
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 p_479639_) -
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 p_481533_) booleanPig.canUseSlot(EquipmentSlot p_478461_) protected Holder<SoundEvent> Pig.getEquipSound(EquipmentSlot p_477944_, ItemStack p_479907_, Equippable p_479723_) -
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 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 p_398008_) booleanStrider.canUseSlot(EquipmentSlot p_397167_) protected Holder<SoundEvent> Strider.getEquipSound(EquipmentSlot p_397775_, ItemStack p_397723_, Equippable p_397102_) -
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 candidate, ItemStack p_34713_, EquipmentSlot p_371356_) private voidPiglin.maybeWearArmor(EquipmentSlot slot, ItemStack stack, 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 p_482163_, ItemStack p_479233_, ItemStack p_480410_) -
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 p_481442_, ItemStack p_478938_, EquipmentSlot p_478744_) -
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_) booleanPlayer.stabAttack(EquipmentSlot p_454961_, Entity p_455450_, float p_454993_, boolean p_455515_, boolean p_455235_, boolean p_454651_) -
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 container, 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> action) voidItemStack.hurtAndBreak(int amount, LivingEntity entity, EquipmentSlot slot) ItemStack.hurtAndConvertOnBreak(int amount, ItemLike item, LivingEntity entity, EquipmentSlot slot) voidCompassItem.inventoryTick(ItemStack p_40720_, ServerLevel p_401770_, Entity p_40722_, @Nullable EquipmentSlot p_401781_) voidItem.inventoryTick(ItemStack stack, ServerLevel level, Entity entity, @Nullable EquipmentSlot slot) voidItemStack.inventoryTick(Level level, Entity entity, @Nullable EquipmentSlot slot) voidMapItem.inventoryTick(ItemStack p_42870_, ServerLevel p_401792_, Entity p_42872_, @Nullable 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 TypeMethodDescriptionvoidPiercingWeapon.attack(LivingEntity attacker, EquipmentSlot slot) doubleItemAttributeModifiers.compute(Holder<Attribute> attribute, double baseValue, EquipmentSlot slot) voidKineticWeapon.damageEntities(ItemStack stack, int remainingUseDuration, LivingEntity entity, EquipmentSlot slot) voidItemAttributeModifiers.forEach(EquipmentSlot slot, 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 @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 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, @Nullable LivingEntity owner, Entity entity, @Nullable 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 itemStack, @Nullable EquipmentSlot inSlot, @Nullable LivingEntity owner, Consumer<Item> onBreak) Creates an instance of aEnchantedItemInUserecord class.EnchantedItemInUse(ItemStack p_344800_, EquipmentSlot p_344722_, LivingEntity p_345536_) -
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<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, withgetIndex()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)