Uses of Enum Class
net.minecraft.entity.EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.block
Modifier and TypeMethodDescriptionAbstractSkullBlock.getSlotType()
DyedCarpetBlock.getSlotType()
WearableCarvedPumpkinBlock.getSlotType()
-
Uses of EquipmentSlot in net.minecraft.client.render.entity.feature
Modifier and TypeMethodDescriptionprivate A
ArmorFeatureRenderer.getModel
(EquipmentSlot slot) private void
ArmorFeatureRenderer.renderArmor
(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model) protected void
ArmorFeatureRenderer.setVisible
(A bipedModel, EquipmentSlot slot) private boolean
ArmorFeatureRenderer.usesInnerModel
(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final Predicate
<EquipmentSlot> AttributeModifierSlot.slotPredicate
Modifier and TypeMethodDescriptionvoid
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) double
AttributeModifiersComponent.applyOperations
(double base, EquipmentSlot slot) static AttributeModifierSlot
AttributeModifierSlot.forEquipmentSlot
(EquipmentSlot slot) boolean
AttributeModifierSlot.matches
(EquipmentSlot slot) ModifierConstructorDescriptionprivate
AttributeModifierSlot
(int id, String name, EquipmentSlot slot) ModifierConstructorDescriptionprivate
AttributeModifierSlot
(int id, String name, Predicate<EquipmentSlot> slotPredicate) -
Uses of EquipmentSlot in net.minecraft.enchantment
Modifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
Enchantments.ALL_ARMOR
private final EquipmentSlot[]
Enchantment.Properties.slots
The field for theslots
record component.Modifier and TypeMethodDescriptionEnchantment.Properties.slots()
Returns the value of theslots
record component.Modifier and TypeMethodDescriptionstatic Map.Entry
<EquipmentSlot, ItemStack> EnchantmentHelper.chooseEquipmentWith
(Enchantment enchantment, LivingEntity entity) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.static Map.Entry
<EquipmentSlot, ItemStack> EnchantmentHelper.chooseEquipmentWith
(Enchantment enchantment, LivingEntity entity, Predicate<ItemStack> condition) Returns a pair of an equipment slot and the item stack in the supplied entity's slot.Enchantment.getEquipment
(LivingEntity entity) Modifier and TypeMethodDescriptionstatic Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) static Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, FeatureSet requiredFeatures, EquipmentSlot[] slots) static Enchantment.Properties
Enchantment.properties
(TagKey<Item> supportedItems, TagKey<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) ModifierConstructorDescriptionProperties
(TagKey<Item> tagKey, Optional<TagKey<Item>> optional, int int2, int int3, Enchantment.Cost cost, Enchantment.Cost cost2, int int4, FeatureSet featureSet, EquipmentSlot[] equipmentSlot) -
Uses of EquipmentSlot in net.minecraft.entity
Modifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec
<EquipmentSlot> EquipmentSlot.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.Modifier and TypeMethodDescriptionstatic EquipmentSlot
Returns the slot where the name is equal toname
.static EquipmentSlot
EquipmentSlot.fromTypeIndex
(EquipmentSlot.Type type, int index) Returns the equipment slot where the slot ID is equal toindex
and the type of the slot is equal totype
.private static @Nullable EquipmentSlot
LivingEntity.getEquipmentSlot
(int slotId) static 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.Modifier 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.Modifier and TypeMethodDescriptionboolean
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) 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) void
LivingEntity.onEquipStack
(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) void
LivingEntity.sendEquipmentBreakStatus
(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) Modifier 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, LootContextParameterSet parameters, long seed, Map<EquipmentSlot, Float> slotDropChances) default void
EquipmentHolder.setEquipmentFromTable
(RegistryKey<LootTable> lootTable, LootContextParameterSet parameters, Map<EquipmentSlot, Float> slotDropChances) ModifierConstructorDescriptionEquipmentTable
(RegistryKey<LootTable> registryKey, Map<EquipmentSlot, Float> map) -
Uses of EquipmentSlot in net.minecraft.entity.decoration
Modifier and TypeMethodDescriptionprivate EquipmentSlot
ArmorStandEntity.getSlotFromPosition
(Vec3d hitPos) Modifier 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
Modifier and TypeMethodDescriptionboolean
MobEntity.canUseSlot
(EquipmentSlot slot) protected void
MobEntity.enchantEquipment
(Random random, float power, EquipmentSlot slot) 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) protected float
MobEntity.getDropChance
(EquipmentSlot slot) MobEntity.getEquipmentForSlot
(EquipmentSlot equipmentSlot, int equipmentLevel) MobEntity.getEquippedStack
(EquipmentSlot slot) void
MobEntity.setEquipmentDropChance
(EquipmentSlot slot, float dropChance) void
MobEntity.updateDropChances
(EquipmentSlot slot) Modifier and TypeMethodDescriptionvoid
MobEntity.setEquipmentFromTable
(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) -
Uses of EquipmentSlot in net.minecraft.entity.player
Modifier 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
Modifier 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
Modifier and TypeMethodDescriptionArmorItem.Type.getEquipmentSlot()
ArmorItem.getSlotType()
ElytraItem.getSlotType()
Equipment.getSlotType()
ShieldItem.getSlotType()
Modifier and TypeMethodDescriptionvoid
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) void
ItemStack.damage
(int amount, LivingEntity entity, EquipmentSlot slot) Damages this item stack.ModifierConstructorDescriptionprivate
Type
(EquipmentSlot equipmentSlot, int baseMaxDamage, String name) -
Uses of EquipmentSlot in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.equipmentList
Modifier and TypeMethodDescriptionList
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> EntityEquipmentUpdateS2CPacket.getEquipmentList()
ModifierConstructorDescriptionEntityEquipmentUpdateS2CPacket
(int id, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> equipmentList) -
Uses of EquipmentSlot in net.minecraft.screen
Modifier and TypeFieldDescriptionprivate static final EquipmentSlot[]
PlayerScreenHandler.EQUIPMENT_SLOT_ORDER
Modifier and TypeMethodDescription(package private) static void
PlayerScreenHandler.onEquipStack
(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) -
Uses of EquipmentSlot in net.minecraft.server.command
Modifier and TypeFieldDescriptionprivate static final Map
<com.mojang.datafixers.util.Pair<RegistryEntry<ArmorMaterial>, EquipmentSlot>, Item> SpawnArmorTrimsCommand.ARMOR_PIECES
Modifier and TypeMethodDescriptionprivate static ItemStack
LootCommand.getHeldItem
(ServerCommandSource source, EquipmentSlot slot)