Interface FabricDefaultAttributeRegistry.ModifyConsumer

Enclosing class:
FabricDefaultAttributeRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface FabricDefaultAttributeRegistry.ModifyConsumer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> type, net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder builder)
    A consumer used for modifying the base attribute values of an EntityType.
  • Method Details

    • accept

      void accept(net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity> type, net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder builder)
      A consumer used for modifying the base attribute values of an EntityType.
      Parameters:
      type - The entity type for which default attributes are being modified.
      builder - The default attribute builder. The builder will contain all the existing attributes for the entity type.