11 lines
254 B
Kotlin
11 lines
254 B
Kotlin
|
package net.shadowfacts.asmr.util
|
||
|
|
||
|
import net.minecraft.util.Identifier
|
||
|
import net.minecraft.util.registry.Registry
|
||
|
|
||
|
/**
|
||
|
* @author shadowfacts
|
||
|
*/
|
||
|
fun <T> Registry<T>.register(obj: T, identifier: Identifier) {
|
||
|
Registry.register(this, identifier, obj)
|
||
|
}
|