PigVariantBuilder

A builder for a pig variant.

Properties

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

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<Pig.Variant>)

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

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

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

abstract fun texture(modelType: PigModelType, texture: AgingEntityVariantLayoutBuilder.() -> Unit)

Configures the modelType and texture of the entity variant.