Uses of Enum Class
net.minecraft.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of EquipmentSlot in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStack
BipedEntityRenderer.getEquippedStack
(LivingEntity entity, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.client.render.entity.feature
Methods in net.minecraft.client.render.entity.feature with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate A
ArmorFeatureRenderer.getModel
(S state, EquipmentSlot slot) private static boolean
ArmorFeatureRenderer.hasModel
(EquippableComponent component, EquipmentSlot slot) static boolean
ArmorFeatureRenderer.hasModel
(ItemStack stack, EquipmentSlot slot) private void
ArmorFeatureRenderer.renderArmor
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, ItemStack stack, EquipmentSlot slot, int light, A armorModel) protected void
ArmorFeatureRenderer.setVisible
(A bipedModel, EquipmentSlot slot) private boolean
ArmorFeatureRenderer.usesInnerModel
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.component.type
Fields in net.minecraft.component.type declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlot
EquippableComponent.Builder.slot
private final EquipmentSlot
EquippableComponent.slot
The field for theslot
record component.Fields in net.minecraft.component.type with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final Predicate
<EquipmentSlot> AttributeModifierSlot.slotPredicate
Methods in net.minecraft.component.type that return EquipmentSlotModifier and TypeMethodDescriptionEquippableComponent.slot()
Returns the value of theslot
record component.Methods in net.minecraft.component.type with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) double
AttributeModifiersComponent.applyOperations
(double base, EquipmentSlot slot) static EquippableComponent.Builder
EquippableComponent.builder
(EquipmentSlot slot) static AttributeModifierSlot
AttributeModifierSlot.forEquipmentSlot
(EquipmentSlot slot) boolean
AttributeModifierSlot.matches
(EquipmentSlot slot) Constructors in net.minecraft.component.type with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
AttributeModifierSlot
(int id, String name, EquipmentSlot slot) (package private)
Builder
(EquipmentSlot slot) EquippableComponent
(EquipmentSlot equipmentSlot, RegistryEntry<SoundEvent> registryEntry, Optional<RegistryKey<EquipmentAsset>> optional, Optional<Identifier> optional2, Optional<RegistryEntryList<EntityType<?>>> optional3, boolean bool, boolean bool2, boolean bool3) Constructor parameters in net.minecraft.component.type with type arguments of type EquipmentSlotModifierConstructorDescriptionprivate
AttributeModifierSlot
(int id, String name, Predicate<EquipmentSlot> slotPredicate) -
Uses of EquipmentSlot in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final @Nullable EquipmentSlot
EnchantmentEffectContext.slot
The field for theslot
record component.Methods in net.minecraft.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantmentEffectContext.slot()
Returns the value of theslot
record component.Methods in net.minecraft.enchantment that return types with arguments of type EquipmentSlotMethods in net.minecraft.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static void
EnchantmentHelper.applyLocationBasedEffects
(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) private static void
EnchantmentHelper.forEachEnchantment
(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) static void
EnchantmentHelper.onHitBlock
(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) static void
EnchantmentHelper.removeLocationBasedEffects
(ItemStack stack, LivingEntity user, EquipmentSlot slot) boolean
Enchantment.slotMatches
(EquipmentSlot slot) Constructors in net.minecraft.enchantment with parameters of type EquipmentSlotModifierConstructorDescriptionEnchantmentEffectContext
(ItemStack itemStack, @Nullable EquipmentSlot equipmentSlot, @Nullable LivingEntity livingEntity, Consumer<Item> consumer) EnchantmentEffectContext
(ItemStack stack, EquipmentSlot slot, LivingEntity owner) -
Uses of EquipmentSlot in net.minecraft.enchantment.effect
Methods in net.minecraft.enchantment.effect with parameters of type EquipmentSlotModifier and TypeMethodDescriptionAttributeEnchantmentEffect.getModifiers
(int level, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity
Fields in net.minecraft.entity with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec
<EquipmentSlot> EquipmentSlot.CODEC
static final IntFunction
<EquipmentSlot> EquipmentSlot.FROM_INDEX
private final EnumMap
<EquipmentSlot, Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>> LivingEntity.locationBasedEnchantmentEffects
static final PacketCodec
<ByteBuf, EquipmentSlot> EquipmentSlot.PACKET_CODEC
static final com.mojang.serialization.Codec
<Map<EquipmentSlot, Float>> EquipmentTable.SLOT_DROP_CHANCES_CODEC
private final Map
<EquipmentSlot, Float> EquipmentTable.slotDropChances
The field for theslotDropChances
record component.static final List
<EquipmentSlot> EquipmentSlot.VALUES
Methods in net.minecraft.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlot
Returns the slot where the name is equal toname
.private static @Nullable EquipmentSlot
LivingEntity.getEquipmentSlot
(int slotId) final EquipmentSlot
LivingEntity.getPreferredEquipmentSlot
(ItemStack stack) static EquipmentSlot
LivingEntity.getSlotForHand
(Hand hand) default @Nullable EquipmentSlot
EquipmentHolder.getSlotForStack
(ItemStack stack, List<EquipmentSlot> slotBlacklist) 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.Methods in net.minecraft.entity that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate static Map
<EquipmentSlot, Float> EquipmentTable.createSlotDropChances
(float dropChance) private static Map
<EquipmentSlot, Float> EquipmentTable.createSlotDropChances
(List<EquipmentSlot> slots, float dropChance) private @Nullable Map
<EquipmentSlot, ItemStack> LivingEntity.getEquipmentChanges()
Returns the difference between the last sent equipment set and the current one.EquipmentTable.slotDropChances()
Returns the value of theslotDropChances
record component.Methods in net.minecraft.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
LivingEntity.canDispenserEquipSlot
(EquipmentSlot slot) final boolean
LivingEntity.canEquip
(ItemStack stack, EquipmentSlot slot) static boolean
LivingEntity.canGlideWith
(ItemStack stack, EquipmentSlot slot) boolean
LivingEntity.canUseSlot
(EquipmentSlot slot) protected void
LivingEntity.damageEquipment
(DamageSource source, float amount, EquipmentSlot[] slots) void
EquipmentHolder.equipStack
(EquipmentSlot slot, ItemStack stack) abstract void
LivingEntity.equipStack
(EquipmentSlot slot, ItemStack stack) private static byte
LivingEntity.getEquipmentBreakStatus
(EquipmentSlot slot) EquipmentHolder.getEquippedStack
(EquipmentSlot slot) abstract ItemStack
LivingEntity.getEquippedStack
(EquipmentSlot slot) LivingEntity.getLocationBasedEnchantmentEffects
(EquipmentSlot slot) private static StackReference
LivingEntity.getStackReference
(LivingEntity entity, EquipmentSlot slot) private ItemStack
LivingEntity.getSyncedArmorStack
(EquipmentSlot slot) private ItemStack
LivingEntity.getSyncedHandStack
(EquipmentSlot slot) boolean
LivingEntity.hasStackEquipped
(EquipmentSlot slot) protected boolean
LivingEntity.isArmorSlot
(EquipmentSlot slot) private void
LivingEntity.onEquipmentRemoved
(ItemStack removedEquipment, EquipmentSlot slot, AttributeContainer container) void
LivingEntity.onEquipStack
(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) void
LivingEntity.sendEquipmentBreakStatus
(Item item, EquipmentSlot slot) void
EquipmentHolder.setEquipmentDropChance
(EquipmentSlot slot, float dropChance) private void
LivingEntity.setSyncedArmorStack
(EquipmentSlot slot, ItemStack armor) private void
LivingEntity.setSyncedHandStack
(EquipmentSlot slot, ItemStack stack) Method parameters in net.minecraft.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate void
LivingEntity.checkHandStackSwap
(Map<EquipmentSlot, ItemStack> equipmentChanges) Notifies nearby players if the stacks in the hands have been swapped.private static Map
<EquipmentSlot, Float> EquipmentTable.createSlotDropChances
(List<EquipmentSlot> slots, float dropChance) default @Nullable EquipmentSlot
EquipmentHolder.getSlotForStack
(ItemStack stack, List<EquipmentSlot> slotBlacklist) private void
LivingEntity.sendEquipmentChanges
(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players.default void
EquipmentHolder.setEquipmentFromTable
(RegistryKey<LootTable> lootTable, LootWorldContext parameters, long seed, Map<EquipmentSlot, Float> slotDropChances) default void
EquipmentHolder.setEquipmentFromTable
(RegistryKey<LootTable> lootTable, LootWorldContext parameters, Map<EquipmentSlot, Float> slotDropChances) Constructor parameters in net.minecraft.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionEquipmentTable
(RegistryKey<LootTable> registryKey, Map<EquipmentSlot, Float> map) -
Uses of EquipmentSlot in net.minecraft.entity.ai.goal
Methods in net.minecraft.entity.ai.goal with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate void
SkeletonHorseTrapTriggerGoal.enchantEquipment
(SkeletonEntity rider, EquipmentSlot slot, LocalDifficulty localDifficulty) -
Uses of EquipmentSlot in net.minecraft.entity.decoration
Methods in net.minecraft.entity.decoration that return EquipmentSlotModifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStandEntity.getSlotFromPosition
(Vec3d hitPos) Methods in net.minecraft.entity.decoration with parameters of type EquipmentSlotModifier and TypeMethodDescriptionboolean
ArmorStandEntity.canUseSlot
(EquipmentSlot slot) private boolean
ArmorStandEntity.equip
(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) void
ArmorStandEntity.equipStack
(EquipmentSlot slot, ItemStack stack) ArmorStandEntity.getEquippedStack
(EquipmentSlot slot) private boolean
ArmorStandEntity.isSlotDisabled
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final List
<EquipmentSlot> MobEntity.EQUIPMENT_INIT_ORDER
Methods in net.minecraft.entity.mob that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionMobEntity.dropEquipment
(ServerWorld world, Predicate<ItemStack> dropPredicate) Methods in net.minecraft.entity.mob with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
MobEntity.canDispenserEquipSlot
(EquipmentSlot slot) boolean
MobEntity.canUseSlot
(EquipmentSlot slot) private void
MobEntity.enchantEquipment
(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) protected void
MobEntity.enchantEquipment
(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) private void
PiglinEntity.equipAtChance
(EquipmentSlot slot, ItemStack stack, Random random) protected void
MobEntity.equipLootStack
(EquipmentSlot slot, ItemStack stack) void
AbstractSkeletonEntity.equipStack
(EquipmentSlot slot, ItemStack stack) void
MobEntity.equipStack
(EquipmentSlot slot, ItemStack stack) private double
MobEntity.getAttributeValueWithStack
(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) protected float
MobEntity.getDropChance
(EquipmentSlot slot) MobEntity.getEquipmentForSlot
(EquipmentSlot equipmentSlot, int equipmentLevel) MobEntity.getEquippedStack
(EquipmentSlot slot) private boolean
MobEntity.prefersNewArmor
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected boolean
DrownedEntity.prefersNewEquipment
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected boolean
MobEntity.prefersNewEquipment
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected boolean
PiglinEntity.prefersNewEquipment
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) private boolean
MobEntity.prefersNewWeapon
(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) void
MobEntity.setEquipmentDropChance
(EquipmentSlot slot, float dropChance) void
MobEntity.updateDropChances
(EquipmentSlot slot) Method parameters in net.minecraft.entity.mob with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionvoid
MobEntity.setEquipmentFromTable
(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) -
Uses of EquipmentSlot in net.minecraft.entity.passive
Methods in net.minecraft.entity.passive with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected boolean
AbstractHorseEntity.canDispenserEquipSlot
(EquipmentSlot slot) protected boolean
AllayEntity.canDispenserEquipSlot
(EquipmentSlot slot) protected boolean
DolphinEntity.canDispenserEquipSlot
(EquipmentSlot slot) protected boolean
FoxEntity.canDispenserEquipSlot
(EquipmentSlot slot) protected boolean
PandaEntity.canDispenserEquipSlot
(EquipmentSlot slot) boolean
HorseEntity.canUseSlot
(EquipmentSlot slot) boolean
LlamaEntity.canUseSlot
(EquipmentSlot slot) boolean
WolfEntity.canUseSlot
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionboolean
PlayerEntity.canUseSlot
(EquipmentSlot slot) void
PlayerEntity.equipStack
(EquipmentSlot slot, ItemStack stack) PlayerEntity.getEquippedStack
(EquipmentSlot slot) protected boolean
PlayerEntity.isArmorSlot
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot) Creates a stack reference backed by an equipment slot of a living entity with no filter, allowing direct manipulation of the equipment slot.static StackReference
StackReference.of
(LivingEntity entity, EquipmentSlot slot, Predicate<ItemStack> filter) Creates a stack reference backed by an equipment slot of a living entity and guarded by a condition for setting stacks into the inventory. -
Uses of EquipmentSlot in net.minecraft.item
Methods in net.minecraft.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) void
ItemStack.damage
(int amount, LivingEntity entity, EquipmentSlot slot) Damages this item stack.ItemStack.damage
(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot) Item.Settings.equippable
(EquipmentSlot slot) Item.Settings.equippableUnswappable
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.item.equipment
Fields in net.minecraft.item.equipment declared as EquipmentSlotMethods in net.minecraft.item.equipment that return EquipmentSlotConstructors in net.minecraft.item.equipment with parameters of type EquipmentSlotModifierConstructorDescriptionprivate
EquipmentType
(EquipmentSlot equipmentSlot, int baseMaxDamage, String name) -
Uses of EquipmentSlot in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentList
Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionList
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()
Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type EquipmentSlotModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket
(int entityId, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) -
Uses of EquipmentSlot in net.minecraft.screen
Fields in net.minecraft.screen declared as EquipmentSlotModifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
PlayerScreenHandler.EQUIPMENT_SLOT_ORDER
Fields in net.minecraft.screen with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map
<EquipmentSlot, Identifier> PlayerScreenHandler.EMPTY_ARMOR_SLOT_TEXTURES
-
Uses of EquipmentSlot in net.minecraft.screen.slot
Fields in net.minecraft.screen.slot declared as EquipmentSlotConstructors in net.minecraft.screen.slot with parameters of type EquipmentSlotModifierConstructorDescriptionArmorSlot
(Inventory inventory, LivingEntity entity, EquipmentSlot equipmentSlot, int index, int x, int y, @Nullable Identifier backgroundSprite) -
Uses of EquipmentSlot in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getHeldItem
(ServerCommandSource source, EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoid
ServerPlayerEntity.sendEquipmentBreakStatus
(Item item, EquipmentSlot slot)