mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 13:09:11 +00:00
Added MarkovNameGenerator, Added Disable Body Part Feature
Two New Features >> + Added Markov Name Generate + Corrected Hide Body Parts
This commit is contained in:
1 parent
f155ef2481
commit
3a36be0ae4
47 files changed
+14517
-93
No files matched your search
@@ -11,6 +11,7 @@ import noppes.npcs.entity.EntityCustomNpc;
|
||||
public class GuiModelBody extends GuiModelInterface{
|
||||
|
||||
private GuiScreen parent;
|
||||
private final String[] arrBody = new String[]{"gui.no","gui.yes"};
|
||||
private final String[] arrBodywear = new String[]{"gui.no","gui.yes"};
|
||||
private final String[] arrWing = new String[]{"gui.no","Player","Type1","Type2","Type3","Type4","Type5","Type6","Type7","Type8","Type9",
|
||||
"Type10","Type11","Type12","Type13"};
|
||||
@@ -31,6 +32,9 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
|
||||
int y = guiTop + 20;
|
||||
|
||||
addButton(new GuiNpcButton(30, guiLeft + 50, y += 22, 70, 20, arrBody, playerdata.hideBody));
|
||||
addLabel(new GuiNpcLabel(30, "Hide", guiLeft, y + 5, 0xFFFFFF));
|
||||
|
||||
if (npc.display.modelType == 1 || npc.display.modelType == 2) {
|
||||
addButton(new GuiNpcButton(8, guiLeft + 50, y += 22, 70, 20, arrBodywear, playerdata.bodywear));
|
||||
addLabel(new GuiNpcLabel(8, "Bodywear", guiLeft, y + 5, 0xFFFFFF));
|
||||
@@ -87,17 +91,27 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int getSkirtindex(ModelPartData skirt) {
|
||||
if (skirt == null)
|
||||
return 0;
|
||||
if (skirt.type == 0) {
|
||||
if (skirt.playerTexture)
|
||||
return 1;
|
||||
if (skirt.texture.contains("1"))
|
||||
return 2;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
private int getSkirtindex(ModelPartData skirt) {
|
||||
if(skirt == null)
|
||||
return 0;
|
||||
if(skirt.type == 0){
|
||||
if(skirt.playerTexture)
|
||||
return 1;
|
||||
if(skirt.texture.contains("1"))
|
||||
return 2;
|
||||
if(skirt.texture.contains("2"))
|
||||
return 3;
|
||||
if(skirt.texture.contains("3"))
|
||||
return 4;
|
||||
if(skirt.texture.contains("4"))
|
||||
return 5;
|
||||
if(skirt.texture.contains("5"))
|
||||
return 6;
|
||||
if(skirt.texture.contains("6"))
|
||||
return 7;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
private int getParticleIndex(ModelPartData particles) {
|
||||
if(particles == null)
|
||||
@@ -202,11 +216,11 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
if(value == 0)
|
||||
playerdata.removePart("skirt");
|
||||
else{
|
||||
ModelPartData particles = playerdata.getOrCreatePart("skirt");
|
||||
ModelPartData skirt = playerdata.getOrCreatePart("skirt");
|
||||
if(value == 1)
|
||||
particles.setTexture("", 0);
|
||||
skirt.setTexture("", 0);
|
||||
if(value == 2)
|
||||
particles.setTexture("skirt/skirt1", 0);
|
||||
skirt.setTexture("skirt/skirt1", 0);
|
||||
}
|
||||
initGui();
|
||||
}
|
||||
@@ -215,6 +229,10 @@ public class GuiModelBody extends GuiModelInterface{
|
||||
playerdata.bodywear = (byte) button.getValue();
|
||||
}
|
||||
|
||||
if(button.id == 30){
|
||||
playerdata.hideBody = (byte) button.getValue();
|
||||
}
|
||||
|
||||
if(button.id == 11){
|
||||
this.mc.displayGuiScreen(new GuiModelColor(this, playerdata.getPartData("wings"), npc));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user