类 Particle
java.lang.Object
net.minecraft.client.particle.Particle
-
字段概要
字段修饰符和类型字段说明protected int
protected float
private AABB
protected float
protected float
protected float
protected float
protected float
protected float
protected boolean
private static final AABB
protected final ClientLevel
protected int
private static final double
protected boolean
protected float
protected final RandomSource
protected float
protected boolean
protected float
protected boolean
private boolean
protected double
protected double
protected double
protected double
protected double
protected double
protected double
protected double
protected double
-
构造器概要
构造器限定符构造器说明protected
Particle
(ClientLevel pLevel, double pX, double pY, double pZ) Particle
(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
方法概要
修饰符和类型方法说明int
protected int
getLightColor
(float pPartialTick) getPos()
abstract ParticleRenderType
boolean
isAlive()
void
move
(double pX, double pY, double pZ) void
remove()
abstract void
render
(VertexConsumer pBuffer, Camera pRenderInfo, float pPartialTicks) scale
(float pScale) protected void
setAlpha
(float pAlpha) void
setBoundingBox
(AABB pBb) void
setColor
(float pParticleRed, float pParticleGreen, float pParticleBlue) void
setLifetime
(int pParticleLifeTime) protected void
void
setParticleSpeed
(double pXd, double pYd, double pZd) void
setPos
(double pX, double pY, double pZ) setPower
(float pMultiplier) protected void
setSize
(float pWidth, float pHeight) boolean
Forge added method that controls if a particle should be culled to it's bounding box.void
tick()
toString()
-
字段详细资料
-
INITIAL_AABB
-
MAXIMUM_COLLISION_VELOCITY_SQUARED
private static final double MAXIMUM_COLLISION_VELOCITY_SQUARED -
level
-
xo
protected double xo -
yo
protected double yo -
zo
protected double zo -
x
protected double x -
y
protected double y -
z
protected double z -
xd
protected double xd -
yd
protected double yd -
zd
protected double zd -
bb
-
onGround
protected boolean onGround -
hasPhysics
protected boolean hasPhysics -
stoppedByCollision
private boolean stoppedByCollision -
removed
protected boolean removed -
bbWidth
protected float bbWidth -
bbHeight
protected float bbHeight -
random
-
age
protected int age -
lifetime
protected int lifetime -
gravity
protected float gravity -
rCol
protected float rCol -
gCol
protected float gCol -
bCol
protected float bCol -
alpha
protected float alpha -
roll
protected float roll -
oRoll
protected float oRoll -
friction
protected float friction -
speedUpWhenYMotionIsBlocked
protected boolean speedUpWhenYMotionIsBlocked
-
-
构造器详细资料
-
Particle
-
Particle
public Particle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed)
-
-
方法详细资料
-
setPower
-
setParticleSpeed
public void setParticleSpeed(double pXd, double pYd, double pZd) -
scale
-
setColor
public void setColor(float pParticleRed, float pParticleGreen, float pParticleBlue) -
setAlpha
protected void setAlpha(float pAlpha) -
setLifetime
public void setLifetime(int pParticleLifeTime) -
getLifetime
public int getLifetime() -
tick
public void tick() -
render
-
getRenderType
-
toString
-
remove
public void remove() -
setSize
protected void setSize(float pWidth, float pHeight) -
setPos
public void setPos(double pX, double pY, double pZ) -
move
public void move(double pX, double pY, double pZ) -
setLocationFromBoundingbox
protected void setLocationFromBoundingbox() -
getLightColor
protected int getLightColor(float pPartialTick) -
isAlive
public boolean isAlive() -
getBoundingBox
-
setBoundingBox
-
getParticleGroup
-
shouldCull
public boolean shouldCull()Forge added method that controls if a particle should be culled to it's bounding box. Default behaviour is culling enabled -
getPos
-