Uses of Enum Class
net.minecraft.inventory.EquipmentSlotType
Package
Description
-
Uses of EquipmentSlotType in net.minecraft.client.renderer.entity.layers
Modifier and TypeMethodDescriptionprivate A
BipedArmorLayer.getArmorModel
(EquipmentSlotType p_241736_1_) protected A
BipedArmorLayer.getArmorModelHook
(T entity, ItemStack itemStack, EquipmentSlotType slot, A model) Hook to allow item-sensitive armor model.BipedArmorLayer.getArmorResource
(Entity entity, ItemStack stack, EquipmentSlotType 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
BipedArmorLayer.renderArmorPiece
(MatrixStack p_241739_1_, IRenderTypeBuffer p_241739_2_, T p_241739_3_, EquipmentSlotType p_241739_4_, int p_241739_5_, A p_241739_6_) protected void
BipedArmorLayer.setPartVisibility
(A p_188359_1_, EquipmentSlotType p_188359_2_) private boolean
BipedArmorLayer.usesInnerModel
(EquipmentSlotType p_188363_1_) -
Uses of EquipmentSlotType in net.minecraft.command.impl
Modifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getSourceHandItem
(CommandSource p_218872_0_, EquipmentSlotType p_218872_1_) -
Uses of EquipmentSlotType in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate static final EquipmentSlotType[]
Enchantments.ARMOR_SLOTS
private final EquipmentSlotType[]
Enchantment.slots
Modifier and TypeMethodDescriptionstatic Map.Entry<EquipmentSlotType,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_222189_0_, LivingEntity p_222189_1_) static Map.Entry<EquipmentSlotType,
ItemStack> EnchantmentHelper.getRandomItemWith
(Enchantment p_234844_0_, LivingEntity p_234844_1_, Predicate<ItemStack> p_234844_2_) Enchantment.getSlotItems
(LivingEntity p_222181_1_) ModifierConstructorDescriptionAquaAffinityEnchantment
(Enchantment.Rarity p_i46719_1_, EquipmentSlotType... p_i46719_2_) BindingCurseEnchantment
(Enchantment.Rarity p_i47254_1_, EquipmentSlotType... p_i47254_2_) ChannelingEnchantment
(Enchantment.Rarity p_i48787_1_, EquipmentSlotType... p_i48787_2_) DamageEnchantment
(Enchantment.Rarity p_i46734_1_, int p_i46734_2_, EquipmentSlotType... p_i46734_3_) DepthStriderEnchantment
(Enchantment.Rarity p_i46720_1_, EquipmentSlotType... p_i46720_2_) protected
EfficiencyEnchantment
(Enchantment.Rarity p_i46732_1_, EquipmentSlotType... p_i46732_2_) protected
Enchantment
(Enchantment.Rarity p_i46731_1_, EnchantmentType p_i46731_2_, EquipmentSlotType[] p_i46731_3_) protected
FireAspectEnchantment
(Enchantment.Rarity p_i46730_1_, EquipmentSlotType... p_i46730_2_) FlameEnchantment
(Enchantment.Rarity p_i46737_1_, EquipmentSlotType... p_i46737_2_) FrostWalkerEnchantment
(Enchantment.Rarity p_i46728_1_, EquipmentSlotType... p_i46728_2_) ImpalingEnchantment
(Enchantment.Rarity p_i48786_1_, EquipmentSlotType... p_i48786_2_) InfinityEnchantment
(Enchantment.Rarity p_i46736_1_, EquipmentSlotType... p_i46736_2_) protected
KnockbackEnchantment
(Enchantment.Rarity p_i46727_1_, EquipmentSlotType... p_i46727_2_) protected
LootBonusEnchantment
(Enchantment.Rarity p_i46726_1_, EnchantmentType p_i46726_2_, EquipmentSlotType... p_i46726_3_) LoyaltyEnchantment
(Enchantment.Rarity p_i48785_1_, EquipmentSlotType... p_i48785_2_) protected
LureEnchantment
(Enchantment.Rarity p_i46729_1_, EnchantmentType p_i46729_2_, EquipmentSlotType... p_i46729_3_) MendingEnchantment
(Enchantment.Rarity p_i46725_1_, EquipmentSlotType... p_i46725_2_) MultishotEnchantment
(Enchantment.Rarity p_i50017_1_, EquipmentSlotType... p_i50017_2_) PiercingEnchantment
(Enchantment.Rarity p_i50019_1_, EquipmentSlotType... p_i50019_2_) PowerEnchantment
(Enchantment.Rarity p_i46738_1_, EquipmentSlotType... p_i46738_2_) ProtectionEnchantment
(Enchantment.Rarity p_i46723_1_, ProtectionEnchantment.Type p_i46723_2_, EquipmentSlotType... p_i46723_3_) PunchEnchantment
(Enchantment.Rarity p_i46735_1_, EquipmentSlotType... p_i46735_2_) QuickChargeEnchantment
(Enchantment.Rarity p_i50016_1_, EquipmentSlotType... p_i50016_2_) RespirationEnchantment
(Enchantment.Rarity p_i46724_1_, EquipmentSlotType... p_i46724_2_) RiptideEnchantment
(Enchantment.Rarity p_i48784_1_, EquipmentSlotType... p_i48784_2_) protected
SilkTouchEnchantment
(Enchantment.Rarity p_i46721_1_, EquipmentSlotType... p_i46721_2_) SoulSpeedEnchantment
(Enchantment.Rarity p_i231601_1_, EquipmentSlotType... p_i231601_2_) SweepingEnchantment
(Enchantment.Rarity p_i47366_1_, EquipmentSlotType... p_i47366_2_) ThornsEnchantment
(Enchantment.Rarity p_i46722_1_, EquipmentSlotType... p_i46722_2_) protected
UnbreakingEnchantment
(Enchantment.Rarity p_i46733_1_, EquipmentSlotType... p_i46733_2_) VanishingCurseEnchantment
(Enchantment.Rarity p_i47252_1_, EquipmentSlotType... p_i47252_2_) -
Uses of EquipmentSlotType in net.minecraft.entity
Modifier and TypeMethodDescriptionstatic EquipmentSlotType
MobEntity.getEquipmentSlotForItem
(ItemStack p_184640_0_) Modifier and TypeMethodDescriptionprivate Map<EquipmentSlotType,
ItemStack> LivingEntity.collectEquipmentChanges()
Modifier and TypeMethodDescriptionvoid
LivingEntity.broadcastBreakEvent
(EquipmentSlotType p_213361_1_) protected void
MobEntity.enchantSpawnedArmor
(float p_242289_1_, EquipmentSlotType p_242289_2_) private static byte
LivingEntity.entityEventForEquipmentBreak
(EquipmentSlotType p_213350_0_) protected float
MobEntity.getEquipmentDropChance
(EquipmentSlotType p_205712_1_) static Item
MobEntity.getEquipmentForSlot
(EquipmentSlotType p_184636_0_, int p_184636_1_) abstract ItemStack
LivingEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) MobEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) private ItemStack
LivingEntity.getLastArmorItem
(EquipmentSlotType p_241346_1_) private ItemStack
LivingEntity.getLastHandItem
(EquipmentSlotType p_241347_1_) boolean
LivingEntity.hasItemInSlot
(EquipmentSlotType p_190630_1_) static boolean
MobEntity.isValidSlotForItem
(EquipmentSlotType p_184648_0_, ItemStack p_184648_1_) void
MobEntity.setDropChance
(EquipmentSlotType p_184642_1_, float p_184642_2_) void
MobEntity.setGuaranteedDrop
(EquipmentSlotType p_233663_1_) void
Entity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) abstract void
LivingEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) void
MobEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) protected void
MobEntity.setItemSlotAndDropWhenKilled
(EquipmentSlotType p_233657_1_, ItemStack p_233657_2_) private void
LivingEntity.setLastArmorItem
(EquipmentSlotType p_241343_1_, ItemStack p_241343_2_) private void
LivingEntity.setLastHandItem
(EquipmentSlotType p_241345_1_, ItemStack p_241345_2_) Modifier and TypeMethodDescriptionprivate void
LivingEntity.handleEquipmentChanges
(Map<EquipmentSlotType, ItemStack> p_241344_1_) private void
LivingEntity.handleHandSwap
(Map<EquipmentSlotType, ItemStack> p_241342_1_) -
Uses of EquipmentSlotType in net.minecraft.entity.item
Modifier and TypeMethodDescriptionprivate EquipmentSlotType
ArmorStandEntity.getClickedSlot
(Vector3d p_190772_1_) Modifier and TypeMethodDescriptionArmorStandEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) private boolean
ArmorStandEntity.isDisabled
(EquipmentSlotType p_184796_1_) void
ArmorStandEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) private boolean
ArmorStandEntity.swapItem
(PlayerEntity p_226529_1_, EquipmentSlotType p_226529_2_, ItemStack p_226529_3_, Hand p_226529_4_) -
Uses of EquipmentSlotType in net.minecraft.entity.monster
Modifier and TypeMethodDescriptionvoid
AbstractSkeletonEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) -
Uses of EquipmentSlotType in net.minecraft.entity.monster.piglin
Modifier and TypeMethodDescriptionprivate void
PiglinEntity.maybeWearArmor
(EquipmentSlotType p_234419_1_, ItemStack p_234419_2_) -
Uses of EquipmentSlotType in net.minecraft.entity.player
Modifier and TypeMethodDescriptionPlayerEntity.getItemBySlot
(EquipmentSlotType p_184582_1_) void
PlayerEntity.setItemSlot
(EquipmentSlotType p_184201_1_, ItemStack p_184201_2_) -
Uses of EquipmentSlotType in net.minecraft.inventory
Modifier and TypeMethodDescriptionstatic EquipmentSlotType
static EquipmentSlotType
EquipmentSlotType.byTypeAndIndex
(EquipmentSlotType.Group p_220318_0_, int p_220318_1_) static EquipmentSlotType
Returns the enum constant of this class with the specified name.static EquipmentSlotType[]
EquipmentSlotType.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of EquipmentSlotType in net.minecraft.inventory.container
Modifier and TypeFieldDescriptionprivate static final EquipmentSlotType[]
PlayerContainer.SLOT_IDS
-
Uses of EquipmentSlotType in net.minecraft.item
Modifier and TypeMethodDescriptionvoid
ItemStack.addAttributeModifier
(Attribute p_185129_1_, AttributeModifier p_185129_2_, EquipmentSlotType p_185129_3_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ItemStack.getAttributeModifiers
(EquipmentSlotType p_111283_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ArmorItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> Item.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) Deprecated.com.google.common.collect.Multimap<Attribute,
AttributeModifier> SwordItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> ToolItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) com.google.common.collect.Multimap<Attribute,
AttributeModifier> TridentItem.getDefaultAttributeModifiers
(EquipmentSlotType p_111205_1_) int
ArmorMaterial.getDefenseForSlot
(EquipmentSlotType p_200902_1_) int
IArmorMaterial.getDefenseForSlot
(EquipmentSlotType p_200902_1_) int
ArmorMaterial.getDurabilityForSlot
(EquipmentSlotType p_200896_1_) int
IArmorMaterial.getDurabilityForSlot
(EquipmentSlotType p_200896_1_) ModifierConstructorDescriptionArmorItem
(IArmorMaterial p_i48534_1_, EquipmentSlotType p_i48534_2_, Item.Properties p_i48534_3_) DyeableArmorItem
(IArmorMaterial p_i50048_1_, EquipmentSlotType p_i50048_2_, Item.Properties p_i50048_3_) -
Uses of EquipmentSlotType in net.minecraft.loot.functions
ModifierConstructorDescriptionprivate
Modifier
(String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, UUID p_i232172_6_) -
Uses of EquipmentSlotType in net.minecraft.network.play.server
Modifier and TypeFieldDescriptionprivate final List<com.mojang.datafixers.util.Pair<EquipmentSlotType,
ItemStack>> SEntityEquipmentPacket.slots
Modifier and TypeMethodDescriptionList<com.mojang.datafixers.util.Pair<EquipmentSlotType,
ItemStack>> SEntityEquipmentPacket.getSlots()
ModifierConstructorDescriptionSEntityEquipmentPacket
(int p_i241270_1_, List<com.mojang.datafixers.util.Pair<EquipmentSlotType, ItemStack>> p_i241270_2_) -
Uses of EquipmentSlotType in net.minecraftforge.client
Modifier and TypeMethodDescriptionstatic <A extends BipedModel<?>>
AForgeHooksClient.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType slot, A _default) static String
ForgeHooksClient.getArmorTexture
(Entity entity, ItemStack armor, String _default, EquipmentSlotType slot, String type) -
Uses of EquipmentSlotType in net.minecraftforge.common
Modifier and TypeMethodDescriptionstatic com.google.common.collect.Multimap<Attribute,
AttributeModifier> ForgeHooks.getAttributeModifiers
(ItemStack stack, EquipmentSlotType equipmentSlot, com.google.common.collect.Multimap<Attribute, AttributeModifier> attributes) Hook to fireItemAttributeModifierEvent
. -
Uses of EquipmentSlotType in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault EquipmentSlotType
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, usenet.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack)
.default EquipmentSlotType
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, usenet.minecraft.entity.LivingEntity#getSlotForItemStack(ItemStack)
.Modifier and TypeMethodDescriptiondefault boolean
IForgeItem.canEquip
(ItemStack stack, EquipmentSlotType armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default boolean
IForgeItemStack.canEquip
(EquipmentSlotType armorType, Entity entity) Determines if the specific ItemStack can be placed in the specified armor slot, for the entity.default <A extends BipedModel<?>>
AIForgeItem.getArmorModel
(LivingEntity entityLiving, ItemStack itemStack, EquipmentSlotType armorSlot, A _default) Override this method to have an item handle its own armor rendering.default String
IForgeItem.getArmorTexture
(ItemStack stack, Entity entity, EquipmentSlotType 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
(EquipmentSlotType slot, ItemStack stack) ItemStack sensitive version of getItemAttributeModifiers -
Uses of EquipmentSlotType in net.minecraftforge.debug.entity
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> GravityAttributeTest.ItemGravityStick.getDefaultAttributeModifiers
(EquipmentSlotType slot) -
Uses of EquipmentSlotType in net.minecraftforge.debug.entity.player
Modifier and TypeMethodDescriptioncom.google.common.collect.Multimap<Attribute,
AttributeModifier> PlayerAttackKnockbackTest.KnockbackSwordItem.getDefaultAttributeModifiers
(EquipmentSlotType equipmentSlotType) -
Uses of EquipmentSlotType in net.minecraftforge.debug.gameplay.loot
ModifierConstructorDescriptionprotected
SmelterEnchantment
(Enchantment.Rarity rarityIn, EnchantmentType typeIn, EquipmentSlotType... slots) -
Uses of EquipmentSlotType in net.minecraftforge.debug.item
Modifier and TypeMethodDescriptionCustomElytraTest.CustomElytra.getEquipmentSlot
(ItemStack stack) -
Uses of EquipmentSlotType in net.minecraftforge.event
Modifier and TypeFieldDescriptionprivate final EquipmentSlotType
ItemAttributeModifierEvent.slotType
Modifier and TypeMethodDescriptionItemAttributeModifierEvent.getSlotType()
Gets the slot containing this stackModifierConstructorDescriptionItemAttributeModifierEvent
(ItemStack stack, EquipmentSlotType slotType, com.google.common.collect.Multimap<Attribute, AttributeModifier> modifiers) -
Uses of EquipmentSlotType in net.minecraftforge.event.entity.living
ModifierConstructorDescriptionLivingEquipmentChangeEvent
(LivingEntity entity, EquipmentSlotType slot, ItemStack from, ItemStack to) -
Uses of EquipmentSlotType in net.minecraftforge.items.wrapper
Modifier and TypeFieldDescriptionprotected final List<EquipmentSlotType>
EntityEquipmentInvWrapper.slots
The slots exposed by this wrapper, withEntityEquipmentSlot#index
as the index.Modifier and TypeMethodDescriptionprotected EquipmentSlotType
EntityEquipmentInvWrapper.validateSlotIndex
(int slot)