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 ItemStackBipedEntityRenderer.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 AArmorFeatureRenderer.getModel(S state, EquipmentSlot slot) private static booleanArmorFeatureRenderer.hasModel(EquippableComponent component, EquipmentSlot slot) static booleanArmorFeatureRenderer.hasModel(ItemStack stack, EquipmentSlot slot) private voidArmorFeatureRenderer.renderArmor(MatrixStack matrices, VertexConsumerProvider vertexConsumers, ItemStack stack, EquipmentSlot slot, int light, A armorModel) 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 declared as EquipmentSlotModifier and TypeFieldDescriptionprivate final EquipmentSlotEquippableComponent.Builder.slotprivate final EquipmentSlotEquippableComponent.slotThe field for theslotrecord component.Fields in net.minecraft.component.type with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionprivate final Predicate<EquipmentSlot> AttributeModifierSlot.slotPredicateprivate final List<EquipmentSlot> AttributeModifierSlot.slotsMethods in net.minecraft.component.type that return EquipmentSlotModifier and TypeMethodDescriptionEquippableComponent.slot()Returns the value of theslotrecord component.Methods in net.minecraft.component.type that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionAttributeModifierSlot.getSlots()AttributeModifierSlot.iterator()Methods 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 EquippableComponent.BuilderEquippableComponent.builder(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) (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, boolean bool4) 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 final @Nullable EquipmentSlotEnchantmentEffectContext.slotThe field for theslotrecord component.Methods in net.minecraft.enchantment that return EquipmentSlotModifier and TypeMethodDescriptionEnchantmentEffectContext.slot()Returns the value of theslotrecord 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 voidEnchantmentHelper.applyAttributeModifiers(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static voidEnchantmentHelper.applyLocationBasedEffects(ServerWorld world, ItemStack stack, LivingEntity user, EquipmentSlot slot) private static voidEnchantmentHelper.forEachEnchantment(ItemStack stack, EquipmentSlot slot, LivingEntity entity, EnchantmentHelper.ContextAwareConsumer contextAwareConsumer) static voidEnchantmentHelper.onHitBlock(ServerWorld world, ItemStack stack, @Nullable LivingEntity user, Entity enchantedEntity, @Nullable EquipmentSlot slot, Vec3d pos, BlockState state, Consumer<Item> onBreak) static voidEnchantmentHelper.removeLocationBasedEffects(ItemStack stack, LivingEntity user, EquipmentSlot slot) booleanEnchantment.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 TypeFieldDescriptionprivate final Map<EquipmentSlot, Float> EquipmentDropChances.byEquipmentThe field for thebyEquipmentrecord component.static final StringIdentifiable.EnumCodec<EquipmentSlot> EquipmentSlot.CODECstatic final IntFunction<EquipmentSlot> EquipmentSlot.FROM_INDEXprivate final Map<EquipmentSlot, ItemStack> LivingEntity.lastEquipmentStacksprivate final EnumMap<EquipmentSlot, Reference2ObjectMap<Enchantment, Set<EnchantmentLocationBasedEffect>>> LivingEntity.locationBasedEnchantmentEffectsprivate final EnumMap<EquipmentSlot, ItemStack> EntityEquipment.mapstatic final PacketCodec<ByteBuf, EquipmentSlot> EquipmentSlot.PACKET_CODECstatic final com.mojang.serialization.Codec<Map<EquipmentSlot, Float>> EquipmentTable.SLOT_DROP_CHANCES_CODECprivate final Map<EquipmentSlot, Float> EquipmentTable.slotDropChancesThe field for theslotDropChancesrecord component.static final List<EquipmentSlot> EquipmentSlot.VALUESMethods in net.minecraft.entity that return EquipmentSlotModifier and TypeMethodDescriptionstatic EquipmentSlotReturns the slot where the name is equal toname.private static @Nullable EquipmentSlotLivingEntity.getEquipmentSlot(int slotId) final 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 TypeMethodDescriptionEquipmentDropChances.byEquipment()Returns the value of thebyEquipmentrecord component.private 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.private static Map<EquipmentSlot, Float> EquipmentDropChances.getWithDefaultChances(Map<EquipmentSlot, Float> byEquipment) private static Map<EquipmentSlot, Float> EquipmentDropChances.getWithoutDefaultChances(Map<EquipmentSlot, Float> byEquipment) EquipmentTable.slotDropChances()Returns the value of theslotDropChancesrecord component.Methods in net.minecraft.entity with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanLivingEntity.canDispenserEquipSlot(EquipmentSlot slot) final booleanLivingEntity.canEquip(ItemStack stack, EquipmentSlot slot) static booleanLivingEntity.canGlideWith(ItemStack stack, EquipmentSlot slot) booleanLivingEntity.canUseSlot(EquipmentSlot slot) protected voidLivingEntity.damageEquipment(DamageSource source, float amount, EquipmentSlot[] slots) booleanEquipmentDropChances.dropsExactly(EquipmentSlot slot) voidEquipmentHolder.equipStack(EquipmentSlot slot, ItemStack stack) voidLivingEntity.equipStack(EquipmentSlot slot, ItemStack stack) EntityEquipment.get(EquipmentSlot slot) floatEquipmentDropChances.get(EquipmentSlot slot) private static byteLivingEntity.getEquipmentBreakStatus(EquipmentSlot slot) EquipmentHolder.getEquippedStack(EquipmentSlot slot) LivingEntity.getEquippedStack(EquipmentSlot slot) protected RegistryEntry<SoundEvent> LivingEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) LivingEntity.getLocationBasedEnchantmentEffects(EquipmentSlot slot) private static StackReferenceLivingEntity.getStackReference(LivingEntity entity, EquipmentSlot slot) booleanLivingEntity.hasStackEquipped(EquipmentSlot slot) protected booleanLivingEntity.isArmorSlot(EquipmentSlot slot) private voidLivingEntity.onEquipmentRemoved(ItemStack removedEquipment, EquipmentSlot slot, AttributeContainer container) voidLivingEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) EntityEquipment.put(EquipmentSlot slot, ItemStack stack) voidLivingEntity.sendEquipmentBreakStatus(Item item, EquipmentSlot slot) voidEquipmentHolder.setEquipmentDropChance(EquipmentSlot slot, float dropChance) EquipmentDropChances.withChance(EquipmentSlot slot, float chance) EquipmentDropChances.withGuaranteed(EquipmentSlot slot) 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 static Map<EquipmentSlot, Float> EquipmentDropChances.getWithDefaultChances(Map<EquipmentSlot, Float> byEquipment) private static Map<EquipmentSlot, Float> EquipmentDropChances.getWithoutDefaultChances(Map<EquipmentSlot, Float> byEquipment) private voidLivingEntity.sendEquipmentChanges(Map<EquipmentSlot, ItemStack> equipmentChanges) Sends equipment changes to nearby players.default voidEquipmentHolder.setEquipmentFromTable(RegistryKey<LootTable> lootTable, LootWorldContext parameters, long seed, Map<EquipmentSlot, Float> slotDropChances) default voidEquipmentHolder.setEquipmentFromTable(RegistryKey<LootTable> lootTable, LootWorldContext parameters, Map<EquipmentSlot, Float> slotDropChances) Constructor parameters in net.minecraft.entity with type arguments of type EquipmentSlotModifierConstructorDescriptionprivateEquipmentTable(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 voidSkeletonHorseTrapTriggerGoal.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 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) private booleanArmorStandEntity.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_ORDERMethods in net.minecraft.entity.mob that return types with arguments of type EquipmentSlotModifier and TypeMethodDescriptionMobEntity.dropForeignEquipment(ServerWorld world, Predicate<ItemStack> dropPredicate) Drops all foreign equipment (equipment which this entity picked up from the world and should be always dropped undamaged).Methods in net.minecraft.entity.mob with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanMobEntity.canDispenserEquipSlot(EquipmentSlot slot) MobEntity.createEquipmentInventory(EquipmentSlot slot) private voidMobEntity.enchantEquipment(ServerWorldAccess world, EquipmentSlot slot, Random random, float power, LocalDifficulty localDifficulty) protected voidMobEntity.enchantEquipment(ServerWorldAccess world, Random random, EquipmentSlot slot, LocalDifficulty localDifficulty) private voidPiglinEntity.equipAtChance(EquipmentSlot slot, ItemStack stack, Random random) protected voidMobEntity.equipLootStack(EquipmentSlot slot, ItemStack stack) private doubleMobEntity.getAttributeValueWithStack(ItemStack stack, RegistryEntry<EntityAttribute> attribute, EquipmentSlot slot) MobEntity.getEquipmentForSlot(EquipmentSlot equipmentSlot, int equipmentLevel) voidAbstractSkeletonEntity.onEquipStack(EquipmentSlot slot, ItemStack oldStack, ItemStack newStack) private booleanMobEntity.prefersNewArmor(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected booleanDrownedEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected booleanMobEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) protected booleanPiglinEntity.prefersNewEquipment(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) private booleanMobEntity.prefersNewWeapon(ItemStack newStack, ItemStack currentStack, EquipmentSlot slot) voidMobEntity.setDropGuaranteed(EquipmentSlot slot) voidMobEntity.setEquipmentDropChance(EquipmentSlot slot, float dropChance) 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.passive
Methods in net.minecraft.entity.passive with parameters of type EquipmentSlotModifier and TypeMethodDescriptionprotected booleanAbstractHorseEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanAllayEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanDolphinEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanFoxEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanPandaEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanPigEntity.canDispenserEquipSlot(EquipmentSlot slot) protected booleanStriderEntity.canDispenserEquipSlot(EquipmentSlot slot) booleanAbstractHorseEntity.canUseSlot(EquipmentSlot slot) booleanHorseEntity.canUseSlot(EquipmentSlot slot) booleanLlamaEntity.canUseSlot(EquipmentSlot slot) booleanPigEntity.canUseSlot(EquipmentSlot slot) booleanStriderEntity.canUseSlot(EquipmentSlot slot) protected RegistryEntry<SoundEvent> AbstractHorseEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> CamelEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> PigEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) protected RegistryEntry<SoundEvent> StriderEntity.getEquipSound(EquipmentSlot slot, ItemStack stack, EquippableComponent equippableComponent) -
Uses of EquipmentSlot in net.minecraft.entity.player
Fields in net.minecraft.entity.player with type parameters of type EquipmentSlotModifier and TypeFieldDescriptionstatic final Int2ObjectMap<EquipmentSlot> PlayerInventory.EQUIPMENT_SLOTSMethods in net.minecraft.entity.player with parameters of type EquipmentSlotModifier and TypeMethodDescriptionPlayerEquipment.get(EquipmentSlot slot) protected booleanPlayerEntity.isArmorSlot(EquipmentSlot slot) PlayerEquipment.put(EquipmentSlot slot, ItemStack stack) -
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
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.ItemStack.damage(int amount, ItemConvertible itemAfterBreaking, LivingEntity entity, EquipmentSlot slot) Item.Settings.equippable(EquipmentSlot slot) Item.Settings.equippableUnswappable(EquipmentSlot slot) voidCompassItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.voidFilledMapItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.voidItem.inventoryTick(ItemStack stack, ServerWorld world, Entity entity, @Nullable EquipmentSlot slot) Called on both the client and the server every tick if the item is in a player or other entity's inventory.voidItemStack.inventoryTick(World world, Entity entity, @Nullable 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 EquipmentSlotModifierConstructorDescriptionprivateEquipmentType(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 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_ORDERFields 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 ItemStackLootCommand.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 TypeMethodDescriptionvoidServerPlayerEntity.sendEquipmentBreakStatus(Item item, EquipmentSlot slot)