Interface FabricDefaultAttributeRegistry.ModifyContext

Enclosing class:
FabricDefaultAttributeRegistry

@NonExtendable public static interface FabricDefaultAttributeRegistry.ModifyContext
  • 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 a AttributeSupplier.Builder to 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 a AttributeSupplier.Builder to 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 a AttributeSupplier.Builder to apply the modification.
    • modifyAll

      default void modifyAll(FabricDefaultAttributeRegistry.ModifyConsumer consumer)
      Modify the default attributes of all entity types with attributes.
      Parameters:
      consumer - A consumer that provides a AttributeSupplier.Builder to apply the modification.