Package net.minecraft.client.particle
Class TerrainParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TerrainParticle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
SingleQuadParticle.FacingCameraMode, SingleQuadParticle.LayerNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTerrainParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, BlockState pState) TerrainParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, BlockState pState, BlockPos pPos) -
Method Summary
Modifier and TypeMethodDescription(package private) static TerrainParticlecreateTerrainParticle(BlockParticleOption pType, ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) getLayer()intgetLightColor(float pPartialTick) protected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()updateSprite(BlockState state, BlockPos pos) Methods inherited from class net.minecraft.client.particle.SingleQuadParticle
extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getQuadSize, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toStringMethods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, tick
-
Field Details
-
pos
-
uo
private final float uo -
vo
private final float vo
-
-
Constructor Details
-
TerrainParticle
public TerrainParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, BlockState pState) -
TerrainParticle
public TerrainParticle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed, BlockState pState, BlockPos pPos)
-
-
Method Details
-
getLayer
- Specified by:
getLayerin classSingleQuadParticle
-
getU0
protected float getU0()- Overrides:
getU0in classSingleQuadParticle
-
getU1
protected float getU1()- Overrides:
getU1in classSingleQuadParticle
-
getV0
protected float getV0()- Overrides:
getV0in classSingleQuadParticle
-
getV1
protected float getV1()- Overrides:
getV1in classSingleQuadParticle
-
getLightColor
public int getLightColor(float pPartialTick) - Overrides:
getLightColorin classParticle
-
createTerrainParticle
@Nullable static TerrainParticle createTerrainParticle(BlockParticleOption pType, ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
updateSprite
-