Interface FabricEntityType.Builder.Living<T extends net.minecraft.world.entity.LivingEntity>

Type Parameters:
T - the type of living entity
All Known Subinterfaces:
FabricEntityType.Builder.Mob<T>
All Known Implementing Classes:
FabricEntityTypeImpl.Builder.Living, FabricEntityTypeImpl.Builder.Mob
Enclosing interface:
FabricEntityType.Builder<T extends net.minecraft.world.entity.Entity>

public static interface FabricEntityType.Builder.Living<T extends net.minecraft.world.entity.LivingEntity>
A builder for additional properties of a living entity, use via FabricEntityType.Builder.createLiving(EntityType.EntityFactory, MobCategory, UnaryOperator).
  • Method Summary

    Modifier and Type
    Method
    Description
    defaultAttributes(Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder> defaultAttributeBuilder)
    Sets the default attributes for a type of living entity.
  • Method Details

    • defaultAttributes

      FabricEntityType.Builder.Living<T> defaultAttributes(Supplier<net.minecraft.world.entity.ai.attributes.AttributeSupplier.Builder> defaultAttributeBuilder)
      Sets the default attributes for a type of living entity.
      Parameters:
      defaultAttributeBuilder - a function to generate the default attribute builder from the entity type
      Returns:
      this builder for chaining