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 p_117079_) protected ModelHumanoidArmorLayer.getArmorModelHook(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.private voidHumanoidArmorLayer.renderArmorPiece(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) protected voidHumanoidArmorLayer.setPartVisibility(A p_117126_, EquipmentSlot p_117127_) private booleanHumanoidArmorLayer.usesInnerModel(EquipmentSlot p_117129_) -
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 p_133202_, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> p_133203_) -
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 p_137939_, EquipmentSlot p_137940_) -
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 EquipmentSlotstatic EquipmentSlotEquipmentSlot.byTypeAndIndex(EquipmentSlot.Type p_20745_, int p_20746_) private static EquipmentSlotLivingEntity.getEquipmentSlot(int p_147212_) static EquipmentSlotLivingEntity.getEquipmentSlotForItem(ItemStack p_147234_) static EquipmentSlotLivingEntity.getSlotForHand(InteractionHand p_320526_) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack p_338225_, List<EquipmentSlot> p_338547_) 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> p_340910_, float p_341369_) EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.Methods in net.minecraft.world.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidLivingEntity.broadcastBreakEvent(EquipmentSlot p_21167_) static EquipmentSlotGroupEquipmentSlotGroup.bySlot(EquipmentSlot p_339603_) booleanLivingEntity.canUseSlot(EquipmentSlot p_326058_) booleanMob.canUseSlot(EquipmentSlot p_326379_) private static SlotAccessLivingEntity.createEquipmentSlotAccess(LivingEntity p_147196_, EquipmentSlot p_147197_) protected booleanLivingEntity.doesEmitEquipEvent(EquipmentSlot p_217035_) protected voidLivingEntity.doHurtEquipment(DamageSource p_330843_, float p_330394_, EquipmentSlot... p_331314_) protected voidMob.enchantSpawnedArmor(RandomSource p_217052_, float p_217053_, EquipmentSlot p_217054_) private static byteLivingEntity.entityEventForEquipmentBreak(EquipmentSlot p_21267_) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity p_147300_, EquipmentSlot p_147301_) static SlotAccessSlotAccess.forEquipmentSlot(LivingEntity p_147303_, EquipmentSlot p_147304_, Predicate<ItemStack> p_147305_) protected floatMob.getEquipmentDropChance(EquipmentSlot p_21520_) static ItemMob.getEquipmentForSlot(EquipmentSlot p_21413_, int p_21414_) EquipmentUser.getItemBySlot(EquipmentSlot p_338597_) abstract ItemStackLivingEntity.getItemBySlot(EquipmentSlot p_21127_) Mob.getItemBySlot(EquipmentSlot p_21467_) private ItemStackLivingEntity.getLastArmorItem(EquipmentSlot p_21199_) private ItemStackLivingEntity.getLastHandItem(EquipmentSlot p_21245_) booleanLivingEntity.hasItemInSlot(EquipmentSlot p_21034_) voidLivingEntity.onEquipItem(EquipmentSlot p_238393_, ItemStack p_238394_, ItemStack p_238395_) voidEquipmentUser.setDropChance(EquipmentSlot p_338643_, float p_338569_) voidMob.setDropChance(EquipmentSlot p_21410_, float p_21411_) voidMob.setGuaranteedDrop(EquipmentSlot p_21509_) voidEquipmentUser.setItemSlot(EquipmentSlot p_338576_, ItemStack p_338519_) abstract voidLivingEntity.setItemSlot(EquipmentSlot p_21036_, ItemStack p_21037_) voidMob.setItemSlot(EquipmentSlot p_21416_, ItemStack p_21417_) protected voidMob.setItemSlotAndDropWhenKilled(EquipmentSlot p_21469_, ItemStack p_21470_) private voidLivingEntity.setLastArmorItem(EquipmentSlot p_21129_, ItemStack p_21130_) private voidLivingEntity.setLastHandItem(EquipmentSlot p_21169_, ItemStack p_21170_) booleanEquipmentSlotGroup.test(EquipmentSlot p_330499_) Method parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate static Map<EquipmentSlot, Float> EquipmentTable.createForAllSlots(List<EquipmentSlot> p_340910_, float p_341369_) default voidEquipmentUser.equip(ResourceKey<LootTable> p_340873_, LootParams p_338202_, long p_341024_, Map<EquipmentSlot, Float> p_341367_) default voidEquipmentUser.equip(ResourceKey<LootTable> p_341330_, LootParams p_340863_, Map<EquipmentSlot, Float> p_341011_) voidMob.equip(ResourceKey<LootTable> p_340912_, Map<EquipmentSlot, Float> p_340996_) private voidLivingEntity.handleEquipmentChanges(Map<EquipmentSlot, ItemStack> p_21143_) private voidLivingEntity.handleHandSwap(Map<EquipmentSlot, ItemStack> p_21092_) default EquipmentSlotEquipmentUser.resolveSlot(ItemStack p_338225_, List<EquipmentSlot> p_338547_) Constructors in net.minecraft.world.entity with parameters of type EquipmentSlotModifierConstructorDescriptionprivateEquipmentSlotGroup(int p_331473_, String p_330947_, EquipmentSlot p_331230_) Constructor parameters in net.minecraft.world.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionprivateEquipmentSlotGroup(int p_331154_, String p_330415_, Predicate<EquipmentSlot> p_330269_) EquipmentTable(ResourceKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) Creates an instance of aEquipmentTablerecord class. -
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_) ArmorStand.getItemBySlot(EquipmentSlot p_31612_) private booleanArmorStand.isDisabled(EquipmentSlot p_31627_) voidArmorStand.setItemSlot(EquipmentSlot p_31584_, ItemStack p_31585_) private booleanArmorStand.swapItem(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
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 p_32138_, ItemStack p_32139_) -
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 p_219192_, ItemStack p_219193_, RandomSource p_219194_) -
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 p_326160_) protected booleanPlayer.doesEmitEquipEvent(EquipmentSlot p_219741_) Player.getItemBySlot(EquipmentSlot p_36257_) voidPlayer.setItemSlot(EquipmentSlot p_36161_, ItemStack p_36162_) -
Uses of EquipmentSlot in net.minecraft.world.inventory
Fields in net.minecraft.world.inventory declared as EquipmentSlotMethods in net.minecraft.world.inventory with parameters of type EquipmentSlotModifier and TypeMethodDescription(package private) static voidInventoryMenu.onEquipItem(Player p_270432_, EquipmentSlot p_270254_, ItemStack p_270316_, ItemStack p_270993_) -
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 p_332001_, BiConsumer<Holder<Attribute>, AttributeModifier> p_330882_) voidItemStack.hurtAndBreak(int p_41623_, LivingEntity p_41624_, EquipmentSlot p_319898_) Constructors in net.minecraft.world.item with parameters of type EquipmentSlotModifierConstructorDescriptionprivateType(EquipmentSlot p_266754_, int p_332191_, String p_266886_) -
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 p_330928_, EquipmentSlot p_330945_) voidItemAttributeModifiers.forEach(EquipmentSlot p_332158_, BiConsumer<Holder<Attribute>, AttributeModifier> p_331684_) -
Uses of EquipmentSlot in net.minecraft.world.item.enchantment
Fields in net.minecraft.world.item.enchantment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate static final EquipmentSlot[]Enchantments.ARMOR_SLOTSprivate final EquipmentSlot[]Enchantment.EnchantmentDefinition.slotsThe field for theslotsrecord component.Methods in net.minecraft.world.item.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantment.EnchantmentDefinition.slots()Returns the value of theslotsrecord component.Methods in net.minecraft.world.item.enchantment that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlot, ItemStack> EnchantmentHelper.getRandomItemWith(Enchantment p_44907_, LivingEntity p_44908_) static Map.Entry<EquipmentSlot, ItemStack> EnchantmentHelper.getRandomItemWith(Enchantment p_44840_, LivingEntity p_44841_, Predicate<ItemStack> p_44842_) Enchantment.getSlotItems(LivingEntity p_44685_) Methods in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionEnchantment.definition(TagKey<Item> p_335812_, int p_335506_, int p_335598_, Enchantment.Cost p_336185_, Enchantment.Cost p_335768_, int p_335409_, EquipmentSlot... p_335583_) Enchantment.definition(TagKey<Item> p_338699_, int p_338488_, int p_338497_, Enchantment.Cost p_338563_, Enchantment.Cost p_338689_, int p_338253_, FeatureFlagSet p_338531_, EquipmentSlot... p_338705_) Enchantment.definition(TagKey<Item> p_335552_, TagKey<Item> p_336174_, int p_335557_, int p_336051_, Enchantment.Cost p_336176_, Enchantment.Cost p_335380_, int p_335569_, EquipmentSlot... p_335470_) Constructors in net.minecraft.world.item.enchantment with parameters of type EquipmentSlotModifierConstructorDescriptionEnchantmentDefinition(TagKey<Item> supportedItems, Optional<TagKey<Item>> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, FeatureFlagSet requiredFeatures, EquipmentSlot[] slots) Creates an instance of aEnchantmentDefinitionrecord class. -
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. -
Uses of EquipmentSlot in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> CommonHooks.getAttributeModifiers(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent. -
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, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default booleanIItemStackExtension.canEquip(EquipmentSlot armorType, Entity 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.default com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> IItemStackExtension.getAttributeModifiers(EquipmentSlot equipmentSlot) Returns the attribute modifiers for the given equipment slot. -
Uses of EquipmentSlot in net.neoforged.neoforge.event
Fields in net.neoforged.neoforge.event declared as EquipmentSlotMethods in net.neoforged.neoforge.event that return EquipmentSlotModifier and TypeMethodDescriptionItemAttributeModifierEvent.getSlotType()Gets the slot containing this stackConstructors in net.neoforged.neoforge.event with parameters of type EquipmentSlotModifierConstructorDescriptionItemAttributeModifierEvent(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Holder<Attribute>, AttributeModifier> modifiers) -
Uses of EquipmentSlot in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as EquipmentSlotMethods in net.neoforged.neoforge.event.entity.living that return EquipmentSlotConstructors in net.neoforged.neoforge.event.entity.living with parameters of type EquipmentSlotModifierConstructorDescriptionLivingEquipmentChangeEvent(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) -
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) -
Uses of EquipmentSlot in net.neoforged.neoforge.oldtest.client
Methods in net.neoforged.neoforge.oldtest.client with parameters of type EquipmentSlotModifier and TypeMethodDescription@Nullable ResourceLocationCustomArmorModelTest.EndermanArmorItem.getArmorTexture(ItemStack stack, Entity entity, EquipmentSlot slot, ArmorMaterial.Layer layer, boolean innerModel) -
Uses of EquipmentSlot in net.neoforged.neoforge.oldtest.client.rendering
Methods in net.neoforged.neoforge.oldtest.client.rendering with parameters of type EquipmentSlotModifier and TypeMethodDescriptionEntityRendererEventsTest.MyEntity.getItemBySlot(EquipmentSlot p_21127_) voidEntityRendererEventsTest.MyEntity.setItemSlot(EquipmentSlot p_21036_, ItemStack p_21037_) -
Uses of EquipmentSlot in net.neoforged.neoforge.oldtest.item
Methods in net.neoforged.neoforge.oldtest.item that return EquipmentSlotModifier and TypeMethodDescription@Nullable EquipmentSlotCustomElytraTest.CustomElytra.getEquipmentSlot(ItemStack stack)