mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 09:12:22 +00:00
ScriptEntityParticle:
-Added width, offset, and animation rate attributes to particles. -Added setSize(), getWidth() and getHeight() functions. -Added setOffset(), getOffsetX(), and getOffsetY() functions. -Added setAnimRate() and getAnimRate() functions.
This commit is contained in:
1 parent
d6c46158f5
commit
728269ff87
6 files changed
+191
-82
No files matched your search
@@ -33,6 +33,10 @@ public class ScriptEntityParticle {
|
||||
public float rotationZRate = 0.0F;
|
||||
public int rotationZRateStart = 0;
|
||||
|
||||
public int width = -1, height = -1;
|
||||
public int offsetX = 0, offsetY = 0;
|
||||
public int animRate = 0;
|
||||
|
||||
public boolean facePlayer = true;
|
||||
|
||||
public ScriptEntityParticle(String directory){
|
||||
@@ -49,11 +53,28 @@ public class ScriptEntityParticle {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
facePlayer,
|
||||
facePlayer, width, height, offsetX, offsetY, animRate,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
|
||||
public void setSize(int width, int height){
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
public int getWidth() { return width; }
|
||||
public int getHeight() { return height; }
|
||||
|
||||
public void setOffset(int offsetX, int offsetY){
|
||||
this.offsetX = offsetX;
|
||||
this.offsetY = offsetY;
|
||||
}
|
||||
public int getOffsetX() { return offsetX; }
|
||||
public int getOffsetY() { return offsetY; }
|
||||
|
||||
public void setAnimRate(int animRate) { this.animRate = animRate; }
|
||||
public int getAnimRate() { return animRate; }
|
||||
|
||||
public boolean getFacePlayer() { return facePlayer; }
|
||||
public void setFacePlayer(boolean facePlayer) { this.facePlayer = facePlayer; }
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
rotationX1, rotationX2, rotationXRate, rotationXRateStart,
|
||||
rotationY1, rotationY2, rotationYRate, rotationYRateStart,
|
||||
rotationZ1, rotationZ2, rotationZRate, rotationZRateStart,
|
||||
true,
|
||||
true, -1, -1, 0,0, 0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
@@ -101,7 +101,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true,
|
||||
true, -1, -1, 0,0,0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
@@ -119,7 +119,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true,
|
||||
true, -1, -1, 0,0,0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
@@ -136,7 +136,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true,
|
||||
true, -1, -1, 0,0,0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
@@ -152,7 +152,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true,
|
||||
true, -1, -1, 0,0,0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
@@ -167,7 +167,7 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
0, 0, 0, 0,
|
||||
true,
|
||||
true, -1, -1, 0,0,0,
|
||||
entityID
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user