Uses of Enum Class
net.minecraft.world.entity.EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.client.renderer.entity.layers
Modifier and TypeMethodDescriptionprivate A
HumanoidArmorLayer.getArmorModel
(EquipmentSlot p_117079_) protected Model
HumanoidArmorLayer.getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlot slot, A model) Hook to allow item-sensitive armor model.HumanoidArmorLayer.getArmorResource
(Entity entity, ItemStack stack, EquipmentSlot slot, String type) More generic ForgeHook version of the above function, it allows for Items to have more control over what texture they provide.private void
HumanoidArmorLayer.renderArmorPiece
(PoseStack p_117119_, MultiBufferSource p_117120_, T p_117121_, EquipmentSlot p_117122_, int p_117123_, A p_117124_) protected void
HumanoidArmorLayer.setPartVisibility
(A p_117126_, EquipmentSlot p_117127_) private boolean
HumanoidArmorLayer.usesInnerModel
(EquipmentSlot p_117129_) -
Uses of EquipmentSlot in net.minecraft.network.protocol.game
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> ClientboundSetEquipmentPacket.slots
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EquipmentSlot,
ItemStack>> ClientboundSetEquipmentPacket.getSlots()
ModifierConstructorDescriptionClientboundSetEquipmentPacket
(int p_133202_, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> p_133203_) -
Uses of EquipmentSlot in net.minecraft.server.commands
Modifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getSourceHandItem
(CommandSourceStack p_137939_, EquipmentSlot p_137940_) -
Uses of EquipmentSlot in net.minecraft.world.entity
Modifier and TypeMethodDescriptionstatic EquipmentSlot
static EquipmentSlot
EquipmentSlot.byTypeAndIndex
(EquipmentSlot.Type p_20745_, int p_20746_) private static EquipmentSlot
LivingEntity.getEquipmentSlot
(int p_147212_) static EquipmentSlot
LivingEntity.getEquipmentSlotForItem
(ItemStack p_147234_) static EquipmentSlot
Returns 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.Modifier and TypeMethodDescriptionprivate Map<EquipmentSlot,
ItemStack> LivingEntity.collectEquipmentChanges()
Modifier and TypeMethodDescriptionvoid
LivingEntity.broadcastBreakEvent
(EquipmentSlot p_21167_) private static SlotAccess
LivingEntity.createEquipmentSlotAccess
(LivingEntity p_147196_, EquipmentSlot p_147197_) protected void
Mob.enchantSpawnedArmor
(float p_21381_, EquipmentSlot p_21382_) private static byte
LivingEntity.entityEventForEquipmentBreak
(EquipmentSlot p_21267_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147300_, EquipmentSlot p_147301_) static SlotAccess
SlotAccess.forEquipmentSlot
(LivingEntity p_147303_, EquipmentSlot p_147304_, Predicate<ItemStack> p_147305_) protected float
Mob.getEquipmentDropChance
(EquipmentSlot p_21520_) static Item
Mob.getEquipmentForSlot
(EquipmentSlot p_21413_, int p_21414_) abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlot p_21127_) Mob.getItemBySlot
(EquipmentSlot p_21467_) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlot p_21199_) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlot p_21245_) boolean
LivingEntity.hasItemInSlot
(EquipmentSlot p_21034_) void
Mob.setDropChance
(EquipmentSlot p_21410_, float p_21411_) void
Mob.setGuaranteedDrop
(EquipmentSlot p_21509_) void
Entity.setItemSlot
(EquipmentSlot p_19968_, ItemStack p_19969_) abstract void
LivingEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) void
Mob.setItemSlot
(EquipmentSlot p_21416_, ItemStack p_21417_) protected void
Mob.setItemSlotAndDropWhenKilled
(EquipmentSlot p_21469_, ItemStack p_21470_) private void
LivingEntity.setLastArmorItem
(EquipmentSlot p_21129_, ItemStack p_21130_) private void
LivingEntity.setLastHandItem
(EquipmentSlot p_21169_, ItemStack p_21170_) Modifier and TypeMethodDescriptionprivate void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlot, ItemStack> p_21143_) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlot, ItemStack> p_21092_) -
Uses of EquipmentSlot in net.minecraft.world.entity.decoration
Modifier and TypeMethodDescriptionArmorStand.getItemBySlot
(EquipmentSlot p_31612_) private boolean
ArmorStand.isDisabled
(EquipmentSlot p_31627_) void
ArmorStand.setItemSlot
(EquipmentSlot p_31584_, ItemStack p_31585_) private boolean
ArmorStand.swapItem
(Player p_31589_, EquipmentSlot p_31590_, ItemStack p_31591_, InteractionHand p_31592_) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster
Modifier and TypeMethodDescriptionvoid
AbstractSkeleton.setItemSlot
(EquipmentSlot p_32138_, ItemStack p_32139_) -
Uses of EquipmentSlot in net.minecraft.world.entity.monster.piglin
Modifier and TypeMethodDescriptionprivate void
Piglin.maybeWearArmor
(EquipmentSlot p_34760_, ItemStack p_34761_) -
Uses of EquipmentSlot in net.minecraft.world.entity.player
Modifier and TypeMethodDescriptionPlayer.getItemBySlot
(EquipmentSlot p_36257_) void
Player.setItemSlot
(EquipmentSlot p_36161_, ItemStack p_36162_) -
Uses of EquipmentSlot in net.minecraft.world.inventory
-
Uses of EquipmentSlot in net.minecraft.world.item
Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_41644_, AttributeModifier p_41645_, EquipmentSlot p_41646_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemStack.getAttributeModifiers
(EquipmentSlot p_41639_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.getDefaultAttributeModifiers
(EquipmentSlot p_40390_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> DiggerItem.getDefaultAttributeModifiers
(EquipmentSlot p_40990_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> Item.getDefaultAttributeModifiers
(EquipmentSlot p_41388_) Deprecated.com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.getDefaultAttributeModifiers
(EquipmentSlot p_43274_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.getDefaultAttributeModifiers
(EquipmentSlot p_43383_) int
ArmorMaterial.getDefenseForSlot
(EquipmentSlot p_40411_) int
ArmorMaterials.getDefenseForSlot
(EquipmentSlot p_40487_) int
ArmorMaterial.getDurabilityForSlot
(EquipmentSlot p_40410_) int
ArmorMaterials.getDurabilityForSlot
(EquipmentSlot p_40484_) ModifierConstructorDescriptionArmorItem
(ArmorMaterial p_40386_, EquipmentSlot p_40387_, Item.Properties p_40388_) DyeableArmorItem
(ArmorMaterial p_41091_, EquipmentSlot p_41092_, Item.Properties p_41093_) -
Uses of EquipmentSlot in net.minecraft.world.item.enchantment
Modifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
Enchantments.ARMOR_SLOTS
private final EquipmentSlot[]
Enchantment.slots
Modifier 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_) ModifierConstructorDescriptionArrowDamageEnchantment
(Enchantment.Rarity p_44568_, EquipmentSlot... p_44569_) ArrowFireEnchantment
(Enchantment.Rarity p_44576_, EquipmentSlot... p_44577_) ArrowInfiniteEnchantment
(Enchantment.Rarity p_44584_, EquipmentSlot... p_44585_) ArrowKnockbackEnchantment
(Enchantment.Rarity p_44594_, EquipmentSlot... p_44595_) ArrowPiercingEnchantment
(Enchantment.Rarity p_44602_, EquipmentSlot... p_44603_) BindingCurseEnchantment
(Enchantment.Rarity p_44612_, EquipmentSlot... p_44613_) DamageEnchantment
(Enchantment.Rarity p_44628_, int p_44629_, EquipmentSlot... p_44630_) protected
DigDurabilityEnchantment
(Enchantment.Rarity p_44648_, EquipmentSlot... p_44649_) protected
DiggingEnchantment
(Enchantment.Rarity p_44662_, EquipmentSlot... p_44663_) protected
Enchantment
(Enchantment.Rarity p_44676_, EnchantmentCategory p_44677_, EquipmentSlot[] p_44678_) protected
FireAspectEnchantment
(Enchantment.Rarity p_44996_, EquipmentSlot... p_44997_) protected
FishingSpeedEnchantment
(Enchantment.Rarity p_45004_, EnchantmentCategory p_45005_, EquipmentSlot... p_45006_) FrostWalkerEnchantment
(Enchantment.Rarity p_45013_, EquipmentSlot... p_45014_) protected
KnockbackEnchantment
(Enchantment.Rarity p_45079_, EquipmentSlot... p_45080_) protected
LootBonusEnchantment
(Enchantment.Rarity p_45087_, EnchantmentCategory p_45088_, EquipmentSlot... p_45089_) MendingEnchantment
(Enchantment.Rarity p_45098_, EquipmentSlot... p_45099_) MultiShotEnchantment
(Enchantment.Rarity p_45107_, EquipmentSlot... p_45108_) OxygenEnchantment
(Enchantment.Rarity p_45117_, EquipmentSlot... p_45118_) ProtectionEnchantment
(Enchantment.Rarity p_45126_, ProtectionEnchantment.Type p_45127_, EquipmentSlot... p_45128_) QuickChargeEnchantment
(Enchantment.Rarity p_45167_, EquipmentSlot... p_45168_) SoulSpeedEnchantment
(Enchantment.Rarity p_45175_, EquipmentSlot... p_45176_) SweepingEdgeEnchantment
(Enchantment.Rarity p_45186_, EquipmentSlot... p_45187_) ThornsEnchantment
(Enchantment.Rarity p_45196_, EquipmentSlot... p_45197_) TridentChannelingEnchantment
(Enchantment.Rarity p_45219_, EquipmentSlot... p_45220_) TridentImpalerEnchantment
(Enchantment.Rarity p_45229_, EquipmentSlot... p_45230_) TridentLoyaltyEnchantment
(Enchantment.Rarity p_45240_, EquipmentSlot... p_45241_) TridentRiptideEnchantment
(Enchantment.Rarity p_45250_, EquipmentSlot... p_45251_) protected
UntouchingEnchantment
(Enchantment.Rarity p_45260_, EquipmentSlot... p_45261_) VanishingCurseEnchantment
(Enchantment.Rarity p_45270_, EquipmentSlot... p_45271_) WaterWalkerEnchantment
(Enchantment.Rarity p_45280_, EquipmentSlot... p_45281_) WaterWorkerEnchantment
(Enchantment.Rarity p_45290_, EquipmentSlot... p_45291_) -
Uses of EquipmentSlot in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescription(package private) final EquipmentSlot[]
SetAttributesFunction.Modifier.slots
Modifier and TypeFieldDescriptionprivate final Set<EquipmentSlot>
SetAttributesFunction.ModifierBuilder.slots
Modifier and TypeMethodDescriptionSetAttributesFunction.ModifierBuilder.forSlot
(EquipmentSlot p_165269_) ModifierConstructorDescription(package private)
Modifier
(String p_165250_, Attribute p_165251_, AttributeModifier.Operation p_165252_, NumberProvider p_165253_, EquipmentSlot[] p_165254_, UUID p_165255_) -
Uses of EquipmentSlot in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic Model
ForgeHooksClient.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot slot, HumanoidModel<?> _default) default HumanoidModel<?>
IItemRenderProperties.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, HumanoidModel<?> _default) Override this method to have an item handle its own armor rendering.static String
ForgeHooksClient.getArmorTexture
(Entity entity, ItemStack armor, String _default, EquipmentSlot slot, String type) default Model
IItemRenderProperties.getBaseArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlot armorSlot, HumanoidModel<?> _default) Override this method to return a generic model rather than aHumanoidModel
. -
Uses of EquipmentSlot in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlot equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
. -
Uses of EquipmentSlot in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault EquipmentSlot
IForgeItem.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 EquipmentSlot
IForgeItemStack.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)
.Modifier and TypeMethodDescriptiondefault boolean
IForgeItem.canEquip
(ItemStack stack, EquipmentSlot armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IForgeItemStack.canEquip
(EquipmentSlot armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default String
IForgeItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) 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<Attribute,
AttributeModifier> IForgeItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers -
Uses of EquipmentSlot in net.minecraftforge.debug.client
Modifier and TypeMethodDescription@Nullable String
CustomArmorModelTest.EndermanArmorItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlot slot, String type) ModifierConstructorDescriptionEndermanArmorItem
(ArmorMaterial material, EquipmentSlot slot, Item.Properties props) TintedArmorItem
(ArmorMaterial material, EquipmentSlot slot, Item.Properties props) -
Uses of EquipmentSlot in net.minecraftforge.debug.client.rendering
Modifier and TypeMethodDescriptionEntityRendererEventsTest.MyEntity.getItemBySlot
(EquipmentSlot p_21127_) void
EntityRendererEventsTest.MyEntity.setItemSlot
(EquipmentSlot p_21036_, ItemStack p_21037_) -
Uses of EquipmentSlot in net.minecraftforge.debug.entity
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> GravityAttributeTest.ItemGravityStick.getDefaultAttributeModifiers
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraftforge.debug.entity.player
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.getDefaultAttributeModifiers
(EquipmentSlot equipmentSlotType) -
Uses of EquipmentSlot in net.minecraftforge.debug.gameplay.loot
ModifierConstructorDescriptionprotected
SmelterEnchantment
(Enchantment.Rarity rarityIn, EnchantmentCategory typeIn, EquipmentSlot... slots) -
Uses of EquipmentSlot in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionCustomElytraTest.CustomElytra.getEquipmentSlot
(ItemStack stack) Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> HiddenTooltipPartsTest.TestItem.getAttributeModifiers
(EquipmentSlot slot, ItemStack stack) -
Uses of EquipmentSlot in net.minecraftforge.event
Modifier and TypeMethodDescriptionItemAttributeModifierEvent.getSlotType()
Gets the slot containing this stackModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlot slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of EquipmentSlot in net.minecraftforge.event.entity.living
ModifierConstructorDescriptionLivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlot slot, ItemStack from, ItemStack to) -
Uses of EquipmentSlot in net.minecraftforge.items.wrapper
Modifier and TypeFieldDescriptionprotected final List<EquipmentSlot>
EntityEquipmentInvWrapper.slots
The slots exposed by this wrapper, withgetIndex()
as the index.Modifier and TypeMethodDescriptionprotected EquipmentSlot
EntityEquipmentInvWrapper.validateSlotIndex
(int slot)