mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 04:09:57 +00:00
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:
1 parent
aeb807cea7
commit
97dc3e9f13
12 files changed
+81
-92
No files matched your search
@@ -46,8 +46,9 @@ public class GuiEntitySelection extends GuiNPCInterface
|
||||
list.add("CustomNPC");
|
||||
Collections.sort(list,String.CASE_INSENSITIVE_ORDER);
|
||||
slot = new GuiNPCStringSlot(list,this,false,18);
|
||||
if(playerdata.getEntityClass() != null)
|
||||
slot.selected = (String) EntityList.classToStringMapping.get(playerdata.getEntityClass());
|
||||
if(playerdata.getEntityClass() != null){
|
||||
slot.selected = (String) EntityList.classToStringMapping.get(playerdata.getEntityClass());
|
||||
}
|
||||
else{
|
||||
slot.selected = "CustomNPC";
|
||||
}
|
||||
@@ -121,6 +122,7 @@ public class GuiEntitySelection extends GuiNPCInterface
|
||||
if(entity != null){
|
||||
RendererLivingEntity render = (RendererLivingEntity) RenderManager.instance.getEntityRenderObject(entity);
|
||||
npc.display.texture = NPCRendererHelper.getTexture(render,entity);
|
||||
npc.display.modelType = 0;
|
||||
}
|
||||
else{
|
||||
npc.display.texture = "customnpcs:textures/entity/humanmale/Steve.png";
|
||||
|
||||
Reference in new issue
Block a user