Uses of Record Class
net.minecraft.entity.attribute.EntityAttributeModifier
Packages that use EntityAttributeModifier
Package
Description
-
Uses of EntityAttributeModifier in net.minecraft.component.type
Fields in net.minecraft.component.type declared as EntityAttributeModifierModifier and TypeFieldDescriptionprivate final EntityAttributeModifier
AttributeModifiersComponent.Entry.modifier
The field for themodifier
record component.Methods in net.minecraft.component.type that return EntityAttributeModifierModifier and TypeMethodDescriptionAttributeModifiersComponent.Entry.modifier()
Returns the value of themodifier
record component.Methods in net.minecraft.component.type with parameters of type EntityAttributeModifierModifier and TypeMethodDescriptionAttributeModifiersComponent.Builder.add
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) AttributeModifiersComponent.with
(RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier, AttributeModifierSlot slot) Method parameters in net.minecraft.component.type with type arguments of type EntityAttributeModifierModifier and TypeMethodDescriptionvoid
AttributeModifiersComponent.applyModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeConsumer) Constructors in net.minecraft.component.type with parameters of type EntityAttributeModifierModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier entityAttributeModifier, AttributeModifierSlot attributeModifierSlot) -
Uses of EntityAttributeModifier in net.minecraft.entity
Fields in net.minecraft.entity declared as EntityAttributeModifierModifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
LivingEntity.SPRINTING_SPEED_BOOST
-
Uses of EntityAttributeModifier in net.minecraft.entity.attribute
Fields in net.minecraft.entity.attribute with type parameters of type EntityAttributeModifierModifier 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
Methods in net.minecraft.entity.attribute that return EntityAttributeModifierModifier and TypeMethodDescriptionstatic @Nullable EntityAttributeModifier
EntityAttributeModifier.fromNbt
(NbtCompound nbt) EntityAttributeInstance.getModifier
(UUID uuid) Methods in net.minecraft.entity.attribute that return types with arguments of type EntityAttributeModifierModifier and TypeMethodDescriptionEntityAttributeInstance.getModifiers()
(package private) Map
<UUID, EntityAttributeModifier> EntityAttributeInstance.getModifiers
(EntityAttributeModifier.Operation operation) private Collection
<EntityAttributeModifier> EntityAttributeInstance.getModifiersByOperation
(EntityAttributeModifier.Operation operation) Methods in net.minecraft.entity.attribute with parameters of type EntityAttributeModifierModifier 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) -
Uses of EntityAttributeModifier in net.minecraft.entity.effect
Methods in net.minecraft.entity.effect that return EntityAttributeModifierModifier and TypeMethodDescriptionStatusEffect.EffectAttributeModifierCreator.createAttributeModifier
(String translationKey, int amplifier) Method parameters in net.minecraft.entity.effect with type arguments of type EntityAttributeModifierModifier and TypeMethodDescriptionvoid
StatusEffect.forEachAttributeModifier
(int amplifier, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> consumer) -
Uses of EntityAttributeModifier in net.minecraft.entity.mob
Fields in net.minecraft.entity.mob declared as EntityAttributeModifierModifier 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
Fields in net.minecraft.entity.passive declared as EntityAttributeModifierModifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
StriderEntity.SUFFOCATING_MODIFIER
-
Uses of EntityAttributeModifier in net.minecraft.item
Methods in net.minecraft.item with parameters of type EntityAttributeModifierModifier and TypeMethodDescriptionprivate void
ItemStack.appendAttributeModifierTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) Method parameters in net.minecraft.item with type arguments of type EntityAttributeModifierModifier and TypeMethodDescriptionvoid
ItemStack.applyAttributeModifiers
(EquipmentSlot slot, BiConsumer<RegistryEntry<EntityAttribute>, EntityAttributeModifier> attributeModifierConsumer) -
Uses of EntityAttributeModifier in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play with type parameters of type EntityAttributeModifierModifier and TypeFieldDescriptionstatic final PacketCodec
<ByteBuf, EntityAttributeModifier> EntityAttributesS2CPacket.Entry.MODIFIER_CODEC
private final Collection
<EntityAttributeModifier> EntityAttributesS2CPacket.Entry.modifiers
The field for themodifiers
record component.Methods in net.minecraft.network.packet.s2c.play that return types with arguments of type EntityAttributeModifierModifier and TypeMethodDescriptionEntityAttributesS2CPacket.Entry.modifiers()
Returns the value of themodifiers
record component.Constructor parameters in net.minecraft.network.packet.s2c.play with type arguments of type EntityAttributeModifierModifierConstructorDescriptionEntry
(RegistryEntry<EntityAttribute> registryEntry, double baseValue, Collection<EntityAttributeModifier> modifiers) -
Uses of EntityAttributeModifier in net.minecraft.server.network
Fields in net.minecraft.server.network declared as EntityAttributeModifierModifier and TypeFieldDescriptionprivate static final EntityAttributeModifier
ServerPlayerEntity.CREATIVE_BLOCK_INTERACTION_RANGE_MODIFIER_UUID
private static final EntityAttributeModifier
ServerPlayerEntity.CREATIVE_ENTITY_INTERACTION_RANGE_MODIFIER_UUID