Uses of Enum Class
net.minecraft.world.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
-
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(EquipmentSlot slot) protected ModelHumanoidArmorLayer.getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A model) Deprecated.private voidHumanoidArmorLayer.renderArmorPiece(PoseStack poseStack, MultiBufferSource bufferSource, T livingEntity, EquipmentSlot slot, int packedLight, A p_model, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) protected voidHumanoidArmorLayer.setPartVisibility(A model, 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
Fields in net.minecraft.server.commands with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map<com.mojang.datafixers.util.Pair<Holder<ArmorMaterial>, EquipmentSlot>, Item> SpawnArmorTrimsCommand.MATERIAL_AND_SLOT_TO_ITEMMethods 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 TypeFieldDescriptionstatic final StringRepresentable.EnumCodec<EquipmentSlot> EquipmentSlot.CODECstatic final com.mojang.serialization.Codec<Map<EquipmentSlot, Float>> EquipmentTable.DROP_CHANCES_CODECprivate final Predicate<EquipmentSlot> EquipmentSlotGroup.predicateprivate final Map<EquipmentSlot, Float> EquipmentTable.slotDropChancesThe field for theslotDropChancesrecord component.Methods in net.minecraft.world.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotprivate static EquipmentSlotLivingEntity.getEquipmentSlot(int index) LivingEntity.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 TypeMethodDescriptionprivate 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(Predicate<ItemStack> predicate) EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotGroupEquipmentSlotGroup.bySlot(EquipmentSlot slot) booleanLivingEntity.canUseSlot(EquipmentSlot slot) booleanMob.canUseSlot(EquipmentSlot slot) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity entity, 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) protected floatMob.getEquipmentDropChance(EquipmentSlot slot) static ItemMob.getEquipmentForSlot(EquipmentSlot slot, int chance) EquipmentUser.getItemBySlot(EquipmentSlot slot) abstract ItemStackLivingEntity.getItemBySlot(EquipmentSlot slot) Mob.getItemBySlot(EquipmentSlot slot) private ItemStackLivingEntity.getLastArmorItem(EquipmentSlot slot) private ItemStackLivingEntity.getLastHandItem(EquipmentSlot slot) booleanLivingEntity.hasItemInSlot(EquipmentSlot slot) voidLivingEntity.onEquipItem(EquipmentSlot slot, ItemStack oldItem, ItemStack newItem) voidLivingEntity.onEquippedItemBroken(Item item, EquipmentSlot slot) voidEquipmentUser.setDropChance(EquipmentSlot slot, float dropChance) voidMob.setDropChance(EquipmentSlot slot, float chance) voidMob.setGuaranteedDrop(EquipmentSlot slot) voidEquipmentUser.setItemSlot(EquipmentSlot slot, ItemStack stack) abstract voidLivingEntity.setItemSlot(EquipmentSlot slot, ItemStack stack) voidMob.setItemSlot(EquipmentSlot slot, ItemStack stack) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot slot, ItemStack stack) private voidLivingEntity.setLastArmorItem(EquipmentSlot slot, ItemStack stack) private voidLivingEntity.setLastHandItem(EquipmentSlot slot, ItemStack stack) booleanEquipmentSlotGroup.test(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 voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> equipments) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> hands) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack stack, List<EquipmentSlot> excludedSlots) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotConstructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionprivateEquipmentSlotGroup(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 EquipmentSlot -
Uses of EquipmentSlot in net.minecraft.world.entity.animal.horse
Methods in net.minecraft.world.entity.animal.horse with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanHorse.canUseSlot(EquipmentSlot slot) booleanLlama.canUseSlot(EquipmentSlot slot) private voidSkeletonTrapGoal.enchant(Skeleton skeleton, EquipmentSlot slot, DifficultyInstance difficulty) -
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) ArmorStand.getItemBySlot(EquipmentSlot slot) private booleanArmorStand.isDisabled(EquipmentSlot slot) voidArmorStand.setItemSlot(EquipmentSlot slot, ItemStack stack) 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 TypeMethodDescriptionvoidAbstractSkeleton.setItemSlot(EquipmentSlot slot, ItemStack stack) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.piglin
Methods in net.minecraft.world.entity.monster.piglin with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate voidPiglin.maybeWearArmor(EquipmentSlot slot, ItemStack stack, RandomSource random) -
Uses of EquipmentSlot in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanPlayer.canUseSlot(EquipmentSlot slot) protected booleanPlayer.doesEmitEquipEvent(EquipmentSlot slot) Player.getItemBySlot(EquipmentSlot slot1) voidPlayer.setItemSlot(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
Fields in net.minecraft.world.item declared as EquipmentSlotMethods in net.minecraft.world.item that return EquipmentSlotModifier and TypeMethodDescriptionArmorItem.getEquipmentSlot()ElytraItem.getEquipmentSlot()Equipable.getEquipmentSlot()ShieldItem.getEquipmentSlot()ArmorItem.Type.getSlot()Methods in net.minecraft.world.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidItemStack.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) Constructors in net.minecraft.world.item with parameters of type EquipmentSlot -
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 com.google.common.collect.HashMultimap<Holder<Attribute>, AttributeModifier> EnchantmentAttributeEffect.makeAttributeMap(int enchantmentLevel, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.world.level.block
Methods in net.minecraft.world.level.block that return EquipmentSlotModifier and TypeMethodDescriptionAbstractSkullBlock.getEquipmentSlot()EquipableCarvedPumpkinBlock.getEquipmentSlot()WoolCarpetBlock.getEquipmentSlot() -
Uses of EquipmentSlot in net.neoforged.neoforge.client
Methods in net.neoforged.neoforge.client with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic ModelClientHooks.getArmorModel(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) static ResourceLocationClientHooks.getArmorTexture(Entity entity, ItemStack armor, ArmorMaterial.Layer layer, boolean innerModel, EquipmentSlot slot) -
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 ModelIClientItemExtensions.getGenericArmorModel(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the armor model for this item when it's equipped.default HumanoidModel<?> IClientItemExtensions.getHumanoidArmorModel(LivingEntity livingEntity, ItemStack itemStack, EquipmentSlot equipmentSlot, HumanoidModel<?> original) Queries the humanoid armor model for this item when it's equipped.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.default @Nullable ResourceLocationIItemExtension.getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, ArmorMaterial.Layer layer, boolean innerModel) Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equipped item. -
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)
HumanoidArmorLayer.renderArmorPiece(PoseStack, MultiBufferSource, LivingEntity, EquipmentSlot, int, HumanoidModel, float, float, float, float, float, float)instead.