diff options
Diffstat (limited to 'src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt')
-rw-r--r-- | src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt b/src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt index b724800..baba5d2 100644 --- a/src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt +++ b/src/client/kotlin/moe/nea/potatocrime/PotatoCrimeClient.kt @@ -1,9 +1,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() { - // This entrypoint is suitable for setting up client-specific logic, such as rendering. - } + override fun onInitializeClient() { + EntityRendererRegistry.register(PotatoRegistry.potatoGuard, ::PotatoGuardRenderer) + EntityModelLayerRegistry.registerModelLayer( + PotatoGuardRenderer.modelLayer, + PotatoGuardModel::getTexturedModelData + ) + } }
\ No newline at end of file |