ASMR/src/main/kotlin/net/shadowfacts/asmr/util/registry.kt

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)
}