EntityVariantBuilder

A builder for an entity variant.

Type Parameters

M

Model type enum, or Unit if there is only one model type.

LB

Layout builder type.

Inheritors

Properties

Link copied to clipboard
abstract val entry: RegistryEntry.Paper<T>

The entry of the element being built.

Functions

Link copied to clipboard
abstract fun spawnConditions(spawnConditions: SpawnConditionsBuilder.() -> Unit)

Configures the conditions under which this entity variant can spawn.

Link copied to clipboard
abstract fun tags(vararg tags: RegistryEntrySet.Paper.Tag<T>)

Adds the entry of the element being build to the given tags.

Link copied to clipboard
abstract fun texture(texture: LB.() -> Unit)

Configures the texture of the entity variant using the default model type.

abstract fun texture(modelType: M, texture: LB.() -> Unit)

Configures the modelType and texture of the entity variant.