mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Particles
This commit is contained in:
1 parent
2fc83cdfc4
commit
53441bb2d8
3 files changed
+23
-4
No files matched your search
@@ -9,12 +9,16 @@ import noppes.npcs.constants.EnumPotionType;
|
||||
public class SubGuiNpcProjectiles extends SubGuiInterface implements ITextfieldListener {
|
||||
private DataStats stats;
|
||||
private String[] potionNames = new String[]{"gui.none", "tile.fire.name", "potion.poison", "potion.hunger", "potion.weakness", "potion.moveSlowdown", "potion.confusion", "potion.blindness", "potion.wither"};
|
||||
private String[] trailNames = new String[]{"gui.none", "Smoke", "Portal", "Redstone", "Lightning", "LargeSmoke", "Magic", "Enchant"};
|
||||
private String[] trailNames = new String[]{ "gui.none", "trail.smoke", "trail.portal", "trail.redstone",
|
||||
"trail.lightning", "trail.largesmoke", "trail.magic", "trail.enchant", "trail.crit",
|
||||
"trail.explode", "trail.music", "trail.flame", "trail.lava", "trail.splash",
|
||||
"trail.slime", "trail.heart", "trail.angryvillager", "trail.happyvillager", "trail.custom"
|
||||
};
|
||||
|
||||
public SubGuiNpcProjectiles(DataStats stats) {
|
||||
this.stats = stats;
|
||||
setBackground("menubg.png");
|
||||
xSize = 256;
|
||||
xSize = 300;
|
||||
ySize = 216;
|
||||
closeOnEsc = true;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,17 @@ public enum EnumParticleType {
|
||||
LargeSmoke("largesmoke"),
|
||||
Magic("witchMagic"),
|
||||
Enchant("enchantmenttable"),
|
||||
Crit("crit");
|
||||
Crit("crit"),
|
||||
Explode("explode"),
|
||||
Music("note"),
|
||||
Flame("flame"),
|
||||
Lava("lava"),
|
||||
Splash("splash"),
|
||||
Slime("slime"),
|
||||
Heart("heart"),
|
||||
AngryVillager("angryVillager"),
|
||||
HappyVillager("happyVillager"),
|
||||
Custom("custom");
|
||||
|
||||
public String particleName;
|
||||
|
||||
|
||||
@@ -382,7 +382,12 @@ public class EntityProjectile extends EntityThrowable {
|
||||
}
|
||||
|
||||
if (worldObj.isRemote && !this.dataWatcher.getWatchableObjectString(22).equals("")) {
|
||||
this.worldObj.spawnParticle(this.dataWatcher.getWatchableObjectString(22), this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
|
||||
String particle = this.dataWatcher.getWatchableObjectString(22);
|
||||
if(particle.equals("custom")){
|
||||
|
||||
} else {
|
||||
this.worldObj.spawnParticle(particle, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D);
|
||||
}
|
||||
}
|
||||
this.setPosition(this.posX, this.posY, this.posZ);
|
||||
this.func_145775_I();//doBlockCollisions
|
||||
|
||||
Reference in new issue
Block a user