Interface FabricDefaultAttributeRegistry.ModifyContext
- Enclosing class:
FabricDefaultAttributeRegistry
@NonExtendable
public static interface FabricDefaultAttributeRegistry.ModifyContext
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidmodify(Collection<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> entityTypes, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.voidmodify(Predicate<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> entityTypePredicate, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.default voidmodify(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> entityType, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.default voidModify the default attributes of all entity types with attributes.
-
Method Details
-
modify
void modify(Predicate<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> entityTypePredicate, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.- Parameters:
entityTypePredicate- A predicate to match entity types.consumer- A consumer that provides aAttributeSupplier.Builderto apply the modification.
-
modify
default void modify(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> entityType, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.- Parameters:
entityType- The entity type to modify.consumer- A consumer that provides aAttributeSupplier.Builderto apply the modification.
-
modify
default void modify(Collection<net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> entityTypes, FabricDefaultAttributeRegistry.ModifyConsumer consumer) Modify the default attributes of a specified entity type.- Parameters:
entityTypes- The entity types to modify.consumer- A consumer that provides aAttributeSupplier.Builderto apply the modification.
-
modifyAll
Modify the default attributes of all entity types with attributes.- Parameters:
consumer- A consumer that provides aAttributeSupplier.Builderto apply the modification.
-