Uses of Enum Class
net.minecraft.entity.EquipmentSlot
Packages that use EquipmentSlot
Package
Description
-
Uses of EquipmentSlot in net.minecraft.block
Methods in net.minecraft.block that return EquipmentSlotModifier and TypeMethodDescriptionAbstractSkullBlock.getSlotType()DyedCarpetBlock.getSlotType()WearableCarvedPumpkinBlock.getSlotType() -
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 AArmorFeatureRenderer.getModel(EquipmentSlot slot) private voidArmorFeatureRenderer.renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, T entity, EquipmentSlot armorSlot, int light, A model) protected voidArmorFeatureRenderer.setVisible(A bipedModel, EquipmentSlot slot) private booleanArmorFeatureRenderer.usesInnerModel(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.component.type
Fields in net.minecraft.component.type with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final Predicate<EquipmentSlot> AttributeModifierSlot.slotPredicateMethods in net.minecraft.component.type with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidAttributeModifiersComponent.applyModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) doubleAttributeModifiersComponent.applyOperations(double base, EquipmentSlot slot) static AttributeModifierSlotAttributeModifierSlot.forEquipmentSlot(EquipmentSlot slot) booleanAttributeModifierSlot.matches(EquipmentSlot slot) Constructors in net.minecraft.component.type with parameters of type EquipmentSlotModifierConstructorDescriptionprivateAttributeModifierSlot(int id, String name, EquipmentSlot slot) Constructor parameters in net.minecraft.component.type with type arguments of type EquipmentSlotModifierConstructorDescriptionprivateAttributeModifierSlot(int id, String name, Predicate<EquipmentSlot> slotPredicate) -
Uses of EquipmentSlot in net.minecraft.enchantment
Fields in net.minecraft.enchantment declared as EquipmentSlotModifier and TypeFieldDescriptionprivate static final EquipmentSlot[]Enchantments.ALL_ARMORprivate final EquipmentSlot[]Enchantment.Properties.slotsThe field for theslotsrecord component.Methods in net.minecraft.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantment.Properties.slots()Returns the value of theslotsrecord component.Methods in net.minecraft.enchantment that return types with arguments of type EquipmentSlotModifier 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) Methods in net.minecraft.enchantment with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic Enchantment.PropertiesEnchantment.properties(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) static Enchantment.PropertiesEnchantment.properties(TagKey<Item> supportedItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, FeatureSet requiredFeatures, EquipmentSlot[] slots) static Enchantment.PropertiesEnchantment.properties(TagKey<Item> supportedItems, TagKey<Item> primaryItems, int weight, int maxLevel, Enchantment.Cost minCost, Enchantment.Cost maxCost, int anvilCost, EquipmentSlot[] slots) Constructors in net.minecraft.enchantment with parameters of type EquipmentSlotModifierConstructorDescriptionProperties(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
Fields in net.minecraft.entity with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec<EquipmentSlot> EquipmentSlot.CODECstatic final com.mojang.serialization.Codec<Map<EquipmentSlot, Float>> EquipmentTable.SLOT_DROP_CHANCES_CODECprivate final Map<EquipmentSlot, Float> EquipmentTable.slotDropChancesThe field for theslotDropChancesrecord component.Methods in net.minecraft.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotReturns the slot where the name is equal toname.static EquipmentSlotEquipmentSlot.fromTypeIndex(EquipmentSlot.Type type, int index) Returns the equipment slot where the slot ID is equal toindexand the type of the slot is equal totype.private static @Nullable EquipmentSlotLivingEntity.getEquipmentSlot(int slotId) static EquipmentSlotLivingEntity.getPreferredEquipmentSlot(ItemStack stack) static EquipmentSlotLivingEntity.getSlotForHand(Hand hand) default @Nullable EquipmentSlotEquipmentHolder.getSlotForStack(ItemStack stack, List<EquipmentSlot> slotBlacklist) 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.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 theslotDropChancesrecord component.Methods in net.minecraft.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanLivingEntity.canUseSlot(EquipmentSlot slot) protected voidLivingEntity.damageEquipment(DamageSource source, float amount, EquipmentSlot[] slots) voidEquipmentHolder.equipStack(EquipmentSlot slot, ItemStack stack) abstract voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) private static byteLivingEntity.getEquipmentBreakStatus(EquipmentSlot slot) EquipmentHolder.getEquippedStack(EquipmentSlot slot) abstract ItemStackLivingEntity.getEquippedStack(EquipmentSlot slot) private static StackReferenceLivingEntity.getStackReference(LivingEntity entity, EquipmentSlot slot) private ItemStackLivingEntity.getSyncedArmorStack(EquipmentSlot slot) private ItemStackLivingEntity.getSyncedHandStack(EquipmentSlot slot) booleanLivingEntity.hasStackEquipped(EquipmentSlot slot) protected booleanLivingEntity.isArmorSlot(EquipmentSlot slot) voidLivingEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) voidLivingEntity.sendEquipmentBreakStatus(EquipmentSlot slot) voidEquipmentHolder.setEquipmentDropChance(EquipmentSlot slot, float dropChance) private voidLivingEntity.setSyncedArmorStack(EquipmentSlot slot, ItemStack armor) private voidLivingEntity.setSyncedHandStack(EquipmentSlot slot, ItemStack stack) Method parameters in net.minecraft.entity with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionprivate voidLivingEntity.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 EquipmentSlotEquipmentHolder.getSlotForStack(ItemStack stack, List<EquipmentSlot> slotBlacklist) private voidLivingEntity.sendEquipmentChanges(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players.default voidEquipmentHolder.setEquipmentFromTable(RegistryKey<LootTable> lootTable, LootContextParameterSet parameters, long seed, Map<EquipmentSlot, Float> slotDropChances) default voidEquipmentHolder.setEquipmentFromTable(RegistryKey<LootTable> lootTable, LootContextParameterSet 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.decoration
Methods in net.minecraft.entity.decoration that return EquipmentSlotModifier and TypeMethodDescriptionprivate EquipmentSlotArmorStandEntity.getSlotFromPosition(Vec3d hitPos) Methods in net.minecraft.entity.decoration with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanArmorStandEntity.canUseSlot(EquipmentSlot slot) private booleanArmorStandEntity.equip(PlayerEntity player, EquipmentSlot slot, ItemStack stack, Hand hand) voidArmorStandEntity.equipStack(EquipmentSlot slot, ItemStack stack) ArmorStandEntity.getEquippedStack(EquipmentSlot slot) private booleanArmorStandEntity.isSlotDisabled(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.entity.mob
Methods in net.minecraft.entity.mob with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanMobEntity.canUseSlot(EquipmentSlot slot) protected voidMobEntity.enchantEquipment(Random random, float power, EquipmentSlot slot) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) voidAbstractSkeletonEntity.equipStack(EquipmentSlot slot, ItemStack stack) voidMobEntity.equipStack(EquipmentSlot slot, ItemStack stack) protected floatMobEntity.getDropChance(EquipmentSlot slot) MobEntity.getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) MobEntity.getEquippedStack(EquipmentSlot slot) voidMobEntity.setEquipmentDropChance(EquipmentSlot slot, float dropChance) voidMobEntity.updateDropChances(EquipmentSlot slot) Method parameters in net.minecraft.entity.mob with type arguments of type EquipmentSlotModifier and TypeMethodDescriptionvoidMobEntity.setEquipmentFromTable(RegistryKey<LootTable> lootTable, Map<EquipmentSlot, Float> slotDropChances) -
Uses of EquipmentSlot in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionbooleanPlayerEntity.canUseSlot(EquipmentSlot slot) voidPlayerEntity.equipStack(EquipmentSlot slot, ItemStack stack) PlayerEntity.getEquippedStack(EquipmentSlot slot) protected booleanPlayerEntity.isArmorSlot(EquipmentSlot slot) -
Uses of EquipmentSlot in net.minecraft.inventory
Methods in net.minecraft.inventory with parameters of type EquipmentSlotModifier and TypeMethodDescriptionstatic StackReferenceStackReference.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 StackReferenceStackReference.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
Fields in net.minecraft.item declared as EquipmentSlotMethods in net.minecraft.item that return EquipmentSlotModifier and TypeMethodDescriptionArmorItem.Type.getEquipmentSlot()ArmorItem.getSlotType()ElytraItem.getSlotType()Equipment.getSlotType()ShieldItem.getSlotType()Methods in net.minecraft.item with parameters of type EquipmentSlotModifier and TypeMethodDescriptionvoidItemStack.applyAttributeModifiers(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) voidItemStack.damage(int amount, LivingEntity entity, EquipmentSlot slot) Damages this item stack.Constructors in net.minecraft.item with parameters of type EquipmentSlotModifierConstructorDescriptionprivateType(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.equipmentListMethods 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 id, 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_ORDERMethods in net.minecraft.screen with parameters of type EquipmentSlotModifier and TypeMethodDescription(package private) static voidPlayerScreenHandler.onEquipStack(PlayerEntity player, EquipmentSlot slot, ItemStack newStack, ItemStack currentStack) -
Uses of EquipmentSlot in net.minecraft.server.command
Fields in net.minecraft.server.command with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate static final Map<com.mojang.datafixers.util.Pair<RegistryEntry<ArmorMaterial>, EquipmentSlot>, Item> SpawnArmorTrimsCommand.ARMOR_PIECESMethods in net.minecraft.server.command with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprivate static ItemStackLootCommand.getHeldItem(ServerCommandSource source, EquipmentSlot slot)