ScriptParticle:

-The spawnInWorld() function now requires a ScriptWorld object to be passed in as the first parameter.
-New spawnInWorld() function with its only parameter being a ScriptWorld object. Spawns in the world with the particle's x,y,z variables.
This commit is contained in:
Luis C.M committed 2022-05-07 01:40:41 -05:00
1 parent a825d885f5
commit d49a31a4fe
5 files changed
+47 -15

No files matched your search

@@ -330,13 +330,25 @@ public class ScriptWorld implements IWorld {
}
/**
* @param directory The particle's texture directory. Use only forward slashes when writing a directory. Example: "customnpcs:textures/particle/tail.png"
* @return Returns ScriptEntityParticle object
* @param directory The particle's texture directory. Use only forward slashes when writing a directory. Example: "customnpcs:textures/particle/bubble.png"
* @return Returns ScriptParticle object
*/
public ScriptParticle createEntityParticle(String directory){
return new ScriptParticle(directory);
}
public ScriptParticle createParticle(String directory){
return new ScriptParticle(directory);
}
public void spawnParticle(ScriptParticle particle){
particle.spawnInWorld(this);
}
public void spawnParticle(ScriptParticle particle, double x, double y, double z){
particle.spawnInWorld(this,x,y,z);
}
/**
* @param key Get temp data for this key
* @return Returns the stored temp data