public abstract class Particle
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
protected int |
age |
protected boolean |
canCollide |
protected float |
height |
protected boolean |
isExpired |
protected int |
maxAge |
protected double |
motionX |
protected double |
motionY |
protected double |
motionZ |
protected boolean |
onGround |
protected float |
particleAlpha |
protected float |
particleAngle |
protected float |
particleBlue |
protected float |
particleGravity |
protected float |
particleGreen |
protected float |
particleRed |
protected double |
posX |
protected double |
posY |
protected double |
posZ |
protected float |
prevParticleAngle |
protected double |
prevPosX |
protected double |
prevPosY |
protected double |
prevPosZ |
protected java.util.Random |
rand |
protected float |
width |
protected World |
world |
修飾子 | コンストラクタと説明 |
---|---|
protected |
Particle(World worldIn,
double posXIn,
double posYIn,
double posZIn) |
|
Particle(World worldIn,
double xCoordIn,
double yCoordIn,
double zCoordIn,
double xSpeedIn,
double ySpeedIn,
double zSpeedIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
AxisAlignedBB |
getBoundingBox() |
protected int |
getBrightnessForRender(float partialTick) |
int |
getMaxAge() |
abstract IParticleRenderType |
getRenderType() |
boolean |
isAlive()
Returns true if this effect has not yet expired.
|
void |
move(double x,
double y,
double z) |
Particle |
multipleParticleScaleBy(float scale) |
Particle |
multiplyVelocity(float multiplier) |
abstract void |
renderParticle(com.mojang.blaze3d.vertex.IVertexBuilder buffer,
ActiveRenderInfo renderInfo,
float partialTicks) |
protected void |
resetPositionToBB() |
protected void |
setAlphaF(float alpha)
Sets the particle alpha (float)
|
void |
setBoundingBox(AxisAlignedBB bb) |
void |
setColor(float particleRedIn,
float particleGreenIn,
float particleBlueIn) |
void |
setExpired()
Called to indicate that this particle effect has expired and should be discontinued.
|
void |
setMaxAge(int particleLifeTime) |
void |
setPosition(double x,
double y,
double z) |
protected void |
setSize(float particleWidth,
float particleHeight) |
void |
tick() |
java.lang.String |
toString() |
protected final World world
protected double prevPosX
protected double prevPosY
protected double prevPosZ
protected double posX
protected double posY
protected double posZ
protected double motionX
protected double motionY
protected double motionZ
protected boolean onGround
protected boolean canCollide
protected boolean isExpired
protected float width
protected float height
protected final java.util.Random rand
protected int age
protected int maxAge
protected float particleGravity
protected float particleRed
protected float particleGreen
protected float particleBlue
protected float particleAlpha
protected float particleAngle
protected float prevParticleAngle
protected Particle(World worldIn, double posXIn, double posYIn, double posZIn)
public Particle(World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn)
public Particle multiplyVelocity(float multiplier)
public Particle multipleParticleScaleBy(float scale)
public void setColor(float particleRedIn, float particleGreenIn, float particleBlueIn)
protected void setAlphaF(float alpha)
public void setMaxAge(int particleLifeTime)
public int getMaxAge()
public void tick()
public abstract void renderParticle(com.mojang.blaze3d.vertex.IVertexBuilder buffer, ActiveRenderInfo renderInfo, float partialTicks)
public abstract IParticleRenderType getRenderType()
public java.lang.String toString()
toString
クラス内 java.lang.Object
public void setExpired()
protected void setSize(float particleWidth, float particleHeight)
public void setPosition(double x, double y, double z)
public void move(double x, double y, double z)
protected void resetPositionToBB()
protected int getBrightnessForRender(float partialTick)
public boolean isAlive()
public AxisAlignedBB getBoundingBox()
public void setBoundingBox(AxisAlignedBB bb)