Class EntityAttributeRegistry

java.lang.Object
dev.architectury.registry.level.entity.EntityAttributeRegistry

public final class EntityAttributeRegistry extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    register(Supplier<? extends net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> type, Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder> attribute)
    Registers default attributes to entities.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • register

      public static void register(Supplier<? extends net.minecraft.world.entity.EntityType<? extends net.minecraft.world.entity.LivingEntity>> type, Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder> attribute)
      Registers default attributes to entities.
      Parameters:
      type - the type of entity
      attribute - the attributes to register
      See Also:
      • DefaultAttributes