FabricDefaultAttributeRegistry

public final class FabricDefaultAttributeRegistry

Allows registering custom default attributes for living entities.

All living entity types must have default attributes registered. See for utility on entity type registration in general.

A registered default attribute for an entity type can be retrieved through get.

See also

net.minecraft.entity.attribute.DefaultAttributeRegistry

Functions

register
Link copied to clipboard
static void register(EntityType<? extends LivingEntity> type, DefaultAttributeContainer.Builder builder)
Registers a default attribute for a type of living entity.

Sources

jvm source
Link copied to clipboard