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

11 lines
254 B
Kotlin
Raw Normal View History

2019-08-09 02:44:19 +00:00
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)
}