RegistryAction

data class RegistryAction<T>(val modid: String?, val registry: Registry<T>)

Represents an action with a registry.

Author

Oliver-makes-code (Emma)

Parameters

modid

The modid to register under.

registry

The registry to register to.

Constructors

Link copied to clipboard
fun <T> RegistryAction(modid: String?, registry: Registry<T>)

Functions

Link copied to clipboard
infix fun T.withId(id: Identifier)

Registers an object with a given Identifier.

Link copied to clipboard
infix fun T.withName(name: String)

Registers an object with a given name.

Properties

Link copied to clipboard
val modid: String?
Link copied to clipboard
val registry: Registry<T>