public interface IParticle
| Modifier and Type | Method and Description |
|---|---|
float |
getAlpha1() |
float |
getAlpha2() |
float |
getAlphaRate() |
int |
getAlphaRateStart() |
int |
getAmount() |
int |
getAnimEnd() |
boolean |
getAnimLoop() |
int |
getAnimRate() |
int |
getAnimStart() |
java.lang.String |
getDirectory() |
boolean |
getFacePlayer() |
boolean |
getGlows() |
float |
getGravity() |
int |
getHeight() |
int |
getHEXColor1() |
int |
getHEXColor2() |
float |
getHEXColorRate() |
int |
getHEXColorStart() |
int |
getMaxAge() |
double |
getMotionX() |
double |
getMotionY() |
double |
getMotionZ() |
boolean |
getNoClip() |
int |
getOffsetX() |
int |
getOffsetY() |
float |
getRotationX1() |
float |
getRotationX2() |
float |
getRotationXRate() |
int |
getRotationXRateStart() |
float |
getRotationY1() |
float |
getRotationY2() |
float |
getRotationYRate() |
int |
getRotationYRateStart() |
float |
getRotationZ1() |
float |
getRotationZ2() |
float |
getRotationZRate() |
int |
getRotationZRateStart() |
float |
getScale1() |
float |
getScale2() |
float |
getScaleRate() |
int |
getScaleRateStart() |
int |
getWidth() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
setAlpha(float alpha1,
float alpha2,
float alphaRate,
int alphaRateStart) |
void |
setAmount(int amount) |
void |
setAnim(int animRate,
boolean animLoop,
int animStart,
int animEnd)
Enables animation on the particle.
|
void |
setDirectory(java.lang.String directory) |
void |
setFacePlayer(boolean facePlayer) |
void |
setGlows(boolean glows) |
void |
setHEXColor(int HEXColor,
int HEXColor2,
float HEXColorRate,
int HEXColorStart) |
void |
setMaxAge(int maxAge) |
void |
setMotion(double motionX,
double motionY,
double motionZ,
float gravity) |
void |
setNoClip(boolean noClip) |
void |
setOffset(int offsetX,
int offsetY)
The horizontal and vertical offset of the particle's texture from the top-left, starts rendering the particle at this point.
|
void |
setPosition(double x,
double y,
double z) |
void |
setRotationX(float rotationX1,
float rotationX2,
float rotationXRate,
int rotationXRateStart)
Enables rotation about the X axis.
|
void |
setRotationY(float rotationY1,
float rotationY2,
float rotationYRate,
int rotationYRateStart)
Enables rotation about the Y axis.
|
void |
setRotationZ(float rotationZ1,
float rotationZ2,
float rotationZRate,
int rotationZRateStart)
Enables rotation about the Y axis.
|
void |
setScale(float scale1,
float scale2,
float scaleRate,
int scaleRateStart) |
void |
setSize(int width,
int height)
The width and height of the particle's texture you want to render in pixels.
|
void |
spawn(IEntity entity) |
void |
spawn(IWorld world) |
void |
spawn(IWorld world,
double x,
double y,
double z) |
void |
spawnInWorld(IWorld world)
Deprecated.
|
void |
spawnInWorld(IWorld world,
double x,
double y,
double z)
Deprecated.
|
void |
spawnOnEntity(IEntity entity)
Deprecated.
|
void spawn(IEntity entity)
entity - Spawns this particle object on the given entity. When spawned this way, the particle will always have its origin at the entity.void spawn(IWorld world)
world - Spawns the particle in the given world, at a position corresponding to this particle's position variables.void spawn(IWorld world, double x, double y, double z)
world - Spawns the particle in the given world, at a position determined by the input parameters.x - The X position the particle will spawn in the world.y - The Y position the particle will spawn in the world.z - The Z position the particle will spawn in the world.@Deprecated void spawnOnEntity(IEntity entity)
@Deprecated void spawnInWorld(IWorld world)
@Deprecated void spawnInWorld(IWorld world, double x, double y, double z)
void setGlows(boolean glows)
glows - If true, this particle ignores all lighting and always renders with full brightness.boolean getGlows()
void setNoClip(boolean noClip)
boolean getNoClip()
void setFacePlayer(boolean facePlayer)
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.boolean getFacePlayer()
void setDirectory(java.lang.String directory)
directory - The directory of this particle's texture. This can be any texture in a resource pack or mod, and even a URL!java.lang.String getDirectory()
void setAmount(int amount)
amount - The amount of multiples of this particle to spawn in the world. Not too good looking if used, but has some edge cases where it's alright.int getAmount()
void setMaxAge(int maxAge)
maxAge - The maximum age this particle will be around for, in MC ticks.int getMaxAge()
void setSize(int width,
int height)
width - The width of the particle's texture, in pixels.height - The height of the particle's texture, in pixels.int getWidth()
int getHeight()
void setOffset(int offsetX,
int offsetY)
offsetX - The horizontal offset, in pixels (u).offsetY - The vertical offset, in pixels (v).int getOffsetX()
int getOffsetY()
void setAnim(int animRate,
boolean animLoop,
int animStart,
int animEnd)
animRate - The frame rate of the particle's animation, in MC ticks. (20 ticks = 1 second)animLoop - Whether the animation loops or not.animStart - The amount of ticks before the particle starts animating.animEnd - The amount of ticks the particle is around for before it stops animating.int getAnimRate()
boolean getAnimLoop()
int getAnimStart()
int getAnimEnd()
void setPosition(double x,
double y,
double z)
x - The X position from the particle's origin the particle will spawn at.y - The Y position from the particle's origin the particle will spawn at.z - The Z position from the particle's origin the particle will spawn at.double getX()
double getY()
double getZ()
void setMotion(double motionX,
double motionY,
double motionZ,
float gravity)
double getMotionX()
double getMotionY()
double getMotionZ()
float getGravity()
void setHEXColor(int HEXColor,
int HEXColor2,
float HEXColorRate,
int HEXColorStart)
HEXColor - The starting HEX color of the particle.HEXColor2 - The ending HEX color of the particle.HEXColorRate - The rate of interpolation between the two HEX colors.HEXColorStart - The amount of ticks the particle is around for before its colors begin interpolating between HEXColor and HEXColor2.int getHEXColor1()
int getHEXColor2()
float getHEXColorRate()
int getHEXColorStart()
void setAlpha(float alpha1,
float alpha2,
float alphaRate,
int alphaRateStart)
alpha1 - The starting transparency of the particle.alpha2 - The ending transparency of the particle.alphaRate - The rate of interpolation between the two transparency values.alphaRateStart - The amount of ticks the particle is around for before its colors begin interpolating between alpha1 and alpha2.float getAlpha1()
float getAlpha2()
float getAlphaRate()
int getAlphaRateStart()
void setScale(float scale1,
float scale2,
float scaleRate,
int scaleRateStart)
scale1 - The starting scale/size of the particle.scale2 - The ending scale/size of the particle.scaleRate - The rate of interpolation between the two scale values.scaleRateStart - The amount of ticks the particle is around for before its colors begin interpolating between scale1 and scale2.float getScale1()
float getScale2()
float getScaleRate()
int getScaleRateStart()
void setRotationX(float rotationX1,
float rotationX2,
float rotationXRate,
int rotationXRateStart)
rotationX1 - The starting X rotation of the particle.rotationX2 - The ending X rotation of the particle.rotationXRate - The rate of interpolation between the two X rotation values.rotationXRateStart - The amount of ticks the particle is around for before its colors begin interpolating between rotationX1 and rotationX2.float getRotationX1()
float getRotationX2()
float getRotationXRate()
int getRotationXRateStart()
void setRotationY(float rotationY1,
float rotationY2,
float rotationYRate,
int rotationYRateStart)
rotationY1 - The starting Y rotation of the particle.rotationY2 - The ending Y rotation of the particle.rotationYRate - The rate of interpolation between the two Y rotation values.rotationYRateStart - The amount of ticks the particle is around for before its colors begin interpolating between rotationY1 and rotationY2.float getRotationY1()
float getRotationY2()
float getRotationYRate()
int getRotationYRateStart()
void setRotationZ(float rotationZ1,
float rotationZ2,
float rotationZRate,
int rotationZRateStart)
rotationZ1 - The starting Z rotation of the particle.rotationZ2 - The ending Z rotation of the particle.rotationZRate - The rate of interpolation between the two Z rotation values.rotationZRateStart - The amount of ticks the particle is around for before its colors begin interpolating between rotationZ1 and rotationZ2.float getRotationZ1()
float getRotationZ2()
float getRotationZRate()
int getRotationZRateStart()