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 pSlot) protected ModelHumanoidArmorLayer.getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model. for HumanoidArmorLayer.private voidHumanoidArmorLayer.renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel) Deprecated.private voidHumanoidArmorLayer.renderArmorPiece(PoseStack pPoseStack, MultiBufferSource pBufferSource, T pLivingEntity, EquipmentSlot pSlot, int pPackedLight, A pModel, float limbSwing, float limbSwingAmount, float partialTick, float ageInTicks, float netHeadYaw, float headPitch) protected voidHumanoidArmorLayer.setPartVisibility(A pModel, 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
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 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 pItem, EquipmentSlot pSlot) -
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 pIndex) LivingEntity.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 TypeMethodDescriptionprivate Map<EquipmentSlot, ItemStack> LivingEntity.collectEquipmentChanges()private static Map<EquipmentSlot, Float> EquipmentTable.createForAllSlots(float p_340946_) private static Map<EquipmentSlot, Float> EquipmentTable.createForAllSlots(List<EquipmentSlot> pEquipmentSlots, float pDropChance) Mob.dropPreservedEquipment(Predicate<ItemStack> pPredicate) EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotGroupEquipmentSlotGroup.bySlot(EquipmentSlot pSlot) booleanLivingEntity.canUseSlot(EquipmentSlot pSlot) booleanMob.canUseSlot(EquipmentSlot pSlot) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity pEntity, 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) protected floatMob.getEquipmentDropChance(EquipmentSlot pSlot) static ItemMob.getEquipmentForSlot(EquipmentSlot pSlot, int pChance) EquipmentUser.getItemBySlot(EquipmentSlot pSlot) abstract ItemStackLivingEntity.getItemBySlot(EquipmentSlot pSlot) Mob.getItemBySlot(EquipmentSlot pSlot) private ItemStackLivingEntity.getLastArmorItem(EquipmentSlot pSlot) private ItemStackLivingEntity.getLastHandItem(EquipmentSlot pSlot) booleanLivingEntity.hasItemInSlot(EquipmentSlot pSlot) voidLivingEntity.onEquipItem(EquipmentSlot pSlot, ItemStack pOldItem, ItemStack pNewItem) voidLivingEntity.onEquippedItemBroken(Item pItem, EquipmentSlot pSlot) voidEquipmentUser.setDropChance(EquipmentSlot pSlot, float pDropChance) voidMob.setDropChance(EquipmentSlot pSlot, float pChance) voidMob.setGuaranteedDrop(EquipmentSlot pSlot) voidEquipmentUser.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) abstract voidLivingEntity.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) voidMob.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot pSlot, ItemStack pStack) private voidLivingEntity.setLastArmorItem(EquipmentSlot pSlot, ItemStack pStack) private voidLivingEntity.setLastHandItem(EquipmentSlot pSlot, ItemStack pStack) booleanEquipmentSlotGroup.test(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 voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> pEquipments) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> pHands) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack pStack, List<EquipmentSlot> pExcludedSlots) 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 EquipmentSlotModifierConstructorDescriptionprivateEquipmentSlotGroup(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 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 pSlot) booleanLlama.canUseSlot(EquipmentSlot pSlot) private voidSkeletonTrapGoal.enchant(Skeleton pSkeleton, EquipmentSlot pSlot, DifficultyInstance pDifficulty) -
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 pSlot) ArmorStand.getItemBySlot(EquipmentSlot pSlot) private booleanArmorStand.isDisabled(EquipmentSlot pSlot) voidArmorStand.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) 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 TypeMethodDescriptionvoidAbstractSkeleton.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) -
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 pSlot, ItemStack pStack, RandomSource pRandom) -
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 pSlot) protected booleanPlayer.doesEmitEquipEvent(EquipmentSlot pSlot) Player.getItemBySlot(EquipmentSlot pSlot1) voidPlayer.setItemSlot(EquipmentSlot pSlot, ItemStack pStack) -
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
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 pEquipmentSLot, BiConsumer<Holder<Attribute>, AttributeModifier> pAction) voidItemStack.hurtAndBreak(int pAmount, LivingEntity pEntity, EquipmentSlot pSlot) ItemStack.hurtAndConvertOnBreak(int pAmount, ItemLike pItem, LivingEntity pEntity, EquipmentSlot pSlot) 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 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.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, 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.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.