blob: baba5d22dcc28138a2d39d62978073e5df38f5b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package moe.nea.potatocrime
import moe.nea.potatocrime.client.entity.PotatoGuardModel
import moe.nea.potatocrime.client.entity.PotatoGuardRenderer
import moe.nea.potatocrime.registry.PotatoRegistry
import net.fabricmc.api.ClientModInitializer
import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry
object PotatoCrimeClient : ClientModInitializer {
override fun onInitializeClient() {
EntityRendererRegistry.register(PotatoRegistry.potatoGuard, ::PotatoGuardRenderer)
EntityModelLayerRegistry.registerModelLayer(
PotatoGuardRenderer.modelLayer,
PotatoGuardModel::getTexturedModelData
)
}
}
|