WORKING MODEL CHANGER!

Added Working Model Changer that allows you to change between Default, Steve 64 x 64, Alex Models. Now instead of selecting a completely different Entity, simply go to the Model Editor to change the Model Type and Version.
This commit is contained in:
KAMKEEL committed 2021-04-29 20:13:16 -04:00
1 parent aeb807cea7
commit 97dc3e9f13
12 files changed
+81 -92

No files matched your search

@@ -2,6 +2,7 @@ package noppes.npcs.client.renderer;
import java.lang.reflect.Method;
import net.minecraft.client.Minecraft;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.renderer.entity.NPCRendererHelper;
import net.minecraft.client.renderer.entity.RenderManager;
@@ -9,8 +10,10 @@ import net.minecraft.client.renderer.entity.RendererLivingEntity;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.boss.BossStatus;
import noppes.npcs.client.model.ModelMPM;
import noppes.npcs.client.model.util.ModelRenderPassHelper;
import noppes.npcs.constants.EnumStandingType;
import noppes.npcs.controllers.PixelmonHelper;
import noppes.npcs.entity.EntityCustomNpc;
import noppes.npcs.entity.EntityNPCInterface;
@@ -114,6 +117,13 @@ public class RenderCustomNpc extends RenderNPCHumanMale{
super.preRenderCallback(entityliving, f);
}
@Override
public void doRender(EntityLiving entityliving, double d, double d1, double d2, float f, float f1){
EntityNPCInterface npc = (EntityNPCInterface) entityliving;
super.doRender(entityliving, d, d1, d2, f, f1);
}
@Override
protected float handleRotationFloat(EntityLivingBase par1EntityLivingBase, float par2){
if(renderEntity != null){