Uses of Record Class
net.minecraft.entity.attribute.EntityAttributeModifier
Package
Description
-
Uses of EntityAttributeModifier in net.minecraft.component.type
Modifier and TypeFieldDescriptionprivate final EntityAttributeModifier
AttributeModifiersComponent.Entry.modifier
The field for themodifier
record component.Modifier and TypeMethodDescriptionAttributeModifiersComponent.Entry.modifier()
Returns the value of themodifier
record component.Modifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.add
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) Modifier and TypeMethodDescriptionvoid
AttributeModifiersComponent.applyModifiers
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) void
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) ModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Uses of EntityAttributeModifier in net.minecraft.enchantment
Modifier and TypeMethodDescriptionstatic void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) static void
EnchantmentHelper.applyAttributeModifiers
(ItemStack stack, EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttributeModifier in net.minecraft.enchantment.effect
Modifier and TypeMethodDescriptionAttributeEnchantmentEffectType.createAttributeModifier
(int value) -
Uses of EntityAttributeModifier in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
LivingEntity.SPRINTING_SPEED_BOOST
-
Uses of EntityAttributeModifier in net.minecraft.entity.attribute
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<EntityAttributeModifier> EntityAttributeModifier.CODEC
private final Map
<UUID, EntityAttributeModifier> EntityAttributeInstance.idToModifiers
static final com.mojang.serialization.MapCodec
<EntityAttributeModifier> EntityAttributeModifier.MAP_CODEC
private final Map
<EntityAttributeModifier.Operation, Map<UUID, EntityAttributeModifier>> EntityAttributeInstance.operationToModifiers
static final PacketCodec
<ByteBuf, EntityAttributeModifier> EntityAttributeModifier.PACKET_CODEC
private final Map
<UUID, EntityAttributeModifier> EntityAttributeInstance.persistentModifiers
Modifier and TypeMethodDescriptionstatic @Nullable EntityAttributeModifier
EntityAttributeModifier.fromNbt
(NbtCompound nbt) EntityAttributeInstance.getModifier
(UUID uuid) Modifier and TypeMethodDescriptionEntityAttributeInstance.getModifiers()
(package private) Map
<UUID, EntityAttributeModifier> EntityAttributeInstance.getModifiers
(EntityAttributeModifier.Operation operation) private Collection
<EntityAttributeModifier> EntityAttributeInstance.getModifiersByOperation
(EntityAttributeModifier.Operation operation) Modifier and TypeMethodDescriptionprivate void
EntityAttributeInstance.addModifier
(EntityAttributeModifier modifier) void
EntityAttributeInstance.addPersistentModifier
(EntityAttributeModifier modifier) void
EntityAttributeInstance.addTemporaryModifier
(EntityAttributeModifier modifier) Adds a temporary attribute modifier.boolean
EntityAttributeInstance.hasModifier
(EntityAttributeModifier modifier) void
EntityAttributeInstance.removeModifier
(EntityAttributeModifier modifier) void
EntityAttributeInstance.updateModifier
(EntityAttributeModifier modifier) Modifier and TypeMethodDescriptionvoid
AttributeContainer.addTemporaryModifiers
(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) void
AttributeContainer.removeModifiers
(Multimap<RegistryEntry<EntityAttribute>, EntityAttributeModifier> modifiersMap) -
Uses of EntityAttributeModifier in net.minecraft.entity.effect
Modifier and TypeMethodDescriptionStatusEffect.EffectAttributeModifierCreator.createAttributeModifier
(String translationKey, int amplifier) Modifier and TypeMethodDescriptionvoid
StatusEffect.forEachAttributeModifier
(int amplifier, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> consumer) -
Uses of EntityAttributeModifier in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
EndermanEntity.ATTACKING_SPEED_BOOST
private static final EntityAttributeModifier
ZombifiedPiglinEntity.ATTACKING_SPEED_BOOST
private static final EntityAttributeModifier
ZombieEntity.BABY_SPEED_BONUS
private static final EntityAttributeModifier
PiglinEntity.BABY_SPEED_BOOST
private static final EntityAttributeModifier
ShulkerEntity.COVERED_ARMOR_BONUS
private static final EntityAttributeModifier
WitchEntity.DRINKING_SPEED_PENALTY_MODIFIER
-
Uses of EntityAttributeModifier in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
StriderEntity.SUFFOCATING_MODIFIER
-
Uses of EntityAttributeModifier in net.minecraft.item
Modifier and TypeMethodDescriptionprivate void
ItemStack.appendAttributeModifierTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) Modifier and TypeMethodDescriptionvoid
ItemStack.applyAttributeModifier
(AttributeModifierSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) void
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttributeModifier in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, EntityAttributeModifier> EntityAttributesS2CPacket.Entry.MODIFIER_CODEC
private final Collection
<EntityAttributeModifier> EntityAttributesS2CPacket.Entry.modifiers
The field for themodifiers
record component.Modifier and TypeMethodDescriptionEntityAttributesS2CPacket.Entry.modifiers()
Returns the value of themodifiers
record component.ModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttributeModifier in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
ServerPlayerEntity.CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER_UUID
private static final EntityAttributeModifier
ServerPlayerEntity.CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_UUID