RegistryObject

data class RegistryObject<T>(    val modid: String,     val name: String,     val t: T)

A RegistryObject with a name parameter, registers under your modid.

Author

Oliver-makes-code (Emma)

Parameters

modid

The modid to register under.

name

The name to register under.

t

The object to register.

Constructors

Link copied to clipboard
fun <T> RegistryObject(    modid: String,     name: String,     t: T)

Functions

Link copied to clipboard
infix fun toRegistry(registry: Registry<T>): T

Registers a RegistryObject.

Properties

Link copied to clipboard
val modid: String
Link copied to clipboard
val name: String
Link copied to clipboard
val t: T