mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 11:32:20 +00:00
IParticle:
-Added glow option.
This commit is contained in:
1 parent
256ba5c599
commit
f3f209820c
6 files changed
+62
-14
No files matched your search
@@ -44,6 +44,7 @@ public class ScriptParticle implements IParticle {
|
||||
public int animStart = 0, animEnd = -1;
|
||||
|
||||
public boolean facePlayer = true;
|
||||
public boolean glows = true;
|
||||
|
||||
public ScriptParticle(String directory){
|
||||
this.directory = directory;
|
||||
@@ -61,7 +62,7 @@ public class ScriptParticle implements IParticle {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
facePlayer, width, height, offsetX, offsetY,
|
||||
facePlayer, glows, width, height, offsetX, offsetY,
|
||||
animRate, animLoop, animStart, animEnd,
|
||||
entityID, entity.getWorld().getDimensionID()
|
||||
);
|
||||
@@ -78,7 +79,7 @@ public class ScriptParticle implements IParticle {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
facePlayer, width, height, offsetX, offsetY,
|
||||
facePlayer, glows, width, height, offsetX, offsetY,
|
||||
animRate, animLoop, animStart, animEnd,
|
||||
-1, world.getDimensionID()
|
||||
);
|
||||
@@ -95,12 +96,15 @@ public class ScriptParticle implements IParticle {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
facePlayer, width, height, offsetX, offsetY,
|
||||
facePlayer, glows, width, height, offsetX, offsetY,
|
||||
animRate, animLoop, animStart, animEnd,
|
||||
-1, world.getDimensionID()
|
||||
);
|
||||
}
|
||||
|
||||
public void setGlows(boolean glows) { this.glows = glows; }
|
||||
public boolean getGlows() { return this.glows; }
|
||||
|
||||
public void setFacePlayer(boolean facePlayer) { this.facePlayer = facePlayer; }
|
||||
public boolean getFacePlayer() { return facePlayer; }
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
@@ -114,7 +114,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
@@ -137,7 +137,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
@@ -159,7 +159,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
@@ -180,7 +180,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
@@ -200,7 +200,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true, -1, -1, 0,0,
|
||||
true, true, -1, -1, 0,0,
|
||||
0, true, 0, 0,
|
||||
entityID, entity.dimension
|
||||
);
|
||||
|
||||
@@ -42,6 +42,13 @@ public interface IParticle {
|
||||
*/
|
||||
void spawnInWorld(ScriptWorld world, double x, double y, double z);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param glows If true, this particle ignores all lighting and always renders with full brightness.
|
||||
*/
|
||||
void setGlows(boolean glows);
|
||||
boolean getGlows();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param facePlayer Whether the particle is always facing the player's camera. If this is disabled, the particle will appear to be laying flat face down on the ground if its rotation is unchanged.
|
||||
|
||||
Reference in new issue
Block a user