Search in sources :

Example 1 with ClientEventHandler

use of com.mraof.minestuck.event.ClientEventHandler in project Minestuck by mraof.

the class ClientProxy method preInit.

@Override
public void preInit() {
    RenderingRegistry.registerEntityRenderingHandler(EntityNakagator.class, RenderEntityMinestuck.getFactory(new ModelNakagator(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntitySalamander.class, RenderEntityMinestuck.getFactory(new ModelSalamander(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityIguana.class, RenderEntityMinestuck.getFactory(new ModelIguana(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityTurtle.class, RenderEntityMinestuck.getFactory(new ModelTurtle(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityImp.class, RenderEntityMinestuck.getFactory(new ModelImp(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityOgre.class, RenderEntityMinestuck.getFactory(new ModelOgre(), 2.8F));
    RenderingRegistry.registerEntityRenderingHandler(EntityBasilisk.class, RenderEntityMinestuck.getFactory(new ModelBasilisk(), 2.8F));
    RenderingRegistry.registerEntityRenderingHandler(EntityLich.class, RenderEntityMinestuck.getFactory(new ModelLich(), 0.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityGiclops.class, RenderEntityMinestuck.getFactory(new ModelGiclops(), 7.6F));
    RenderingRegistry.registerEntityRenderingHandler(EntityBishop.class, RenderEntityMinestuck.getFactory(new ModelBishop(), 1.8F));
    RenderingRegistry.registerEntityRenderingHandler(EntityRook.class, RenderEntityMinestuck.getFactory(new ModelRook(), 2.5F));
    RenderingRegistry.registerEntityRenderingHandler(EntityUnderlingPart.class, new IRenderFactory<EntityUnderlingPart>() {

        @Override
        public Render<EntityUnderlingPart> createRenderFor(RenderManager manager) {
            return new RenderShadow(manager, 2.8F);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityBigPart.class, new IRenderFactory<EntityBigPart>() {

        @Override
        public Render<EntityBigPart> createRenderFor(RenderManager manager) {
            return new RenderShadow(manager, 0F);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityPawn.class, new IRenderFactory<EntityPawn>() {

        @Override
        public Render<EntityPawn> createRenderFor(RenderManager manager) {
            return new RenderPawn(manager, new ModelBiped(), 0.5F);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityGrist.class, new IRenderFactory<EntityGrist>() {

        @Override
        public Render<EntityGrist> createRenderFor(RenderManager manager) {
            return new RenderGrist(manager);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityVitalityGel.class, new IRenderFactory<EntityVitalityGel>() {

        @Override
        public Render<EntityVitalityGel> createRenderFor(RenderManager manager) {
            return new RenderVitalityGel(manager);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityDecoy.class, new IRenderFactory<EntityDecoy>() {

        @Override
        public Render<EntityDecoy> createRenderFor(RenderManager manager) {
            return new RenderDecoy(manager);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityMetalBoat.class, new IRenderFactory<EntityBoat>() {

        @Override
        public Render<EntityBoat> createRenderFor(RenderManager manager) {
            return new RenderMetalBoat(manager);
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntityCrewPoster.class, new IRenderFactory<EntityCrewPoster>() {

        @Override
        public Render<EntityCrewPoster> createRenderFor(RenderManager manager) {
            return new RenderHangingArt<>(manager, "midnight_poster");
        }
    });
    RenderingRegistry.registerEntityRenderingHandler(EntitySbahjPoster.class, new IRenderFactory<EntitySbahjPoster>() {

        @Override
        public Render<EntitySbahjPoster> createRenderFor(RenderManager manager) {
            return new RenderHangingArt<>(manager, "sbahj_poster");
        }
    });
    MinecraftForge.EVENT_BUS.register(new MinestuckKeyHandler());
    MinecraftForge.EVENT_BUS.register(new ClientEventHandler());
    MinecraftForge.EVENT_BUS.register(MinestuckModelManager.class);
}
Also used : EntityPawn(com.mraof.minestuck.entity.carapacian.EntityPawn) MinestuckKeyHandler(com.mraof.minestuck.client.settings.MinestuckKeyHandler) Render(net.minecraft.client.renderer.entity.Render) EntityBoat(net.minecraft.entity.item.EntityBoat) RenderManager(net.minecraft.client.renderer.entity.RenderManager) EntityBigPart(com.mraof.minestuck.entity.EntityBigPart) EntityDecoy(com.mraof.minestuck.entity.EntityDecoy) ModelBiped(net.minecraft.client.model.ModelBiped) ClientEventHandler(com.mraof.minestuck.event.ClientEventHandler)

Aggregations

MinestuckKeyHandler (com.mraof.minestuck.client.settings.MinestuckKeyHandler)1 EntityBigPart (com.mraof.minestuck.entity.EntityBigPart)1 EntityDecoy (com.mraof.minestuck.entity.EntityDecoy)1 EntityPawn (com.mraof.minestuck.entity.carapacian.EntityPawn)1 ClientEventHandler (com.mraof.minestuck.event.ClientEventHandler)1 ModelBiped (net.minecraft.client.model.ModelBiped)1 Render (net.minecraft.client.renderer.entity.Render)1 RenderManager (net.minecraft.client.renderer.entity.RenderManager)1 EntityBoat (net.minecraft.entity.item.EntityBoat)1