Package net.minecraft.client.particle
Class TerrainParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
net.minecraft.client.particle.TerrainParticle
- Direct Known Subclasses:
CustomParticleTypeTest.ClientEvents.AnotherCustomParticle
,CustomParticleTypeTest.ClientEvents.CustomParticle
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
SingleQuadParticle.FacingCameraMode
Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha
-
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.TextureSheetParticle
sprite
Fields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSize
-
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 TerrainParticle
createTerrainParticle
(BlockParticleOption pType, ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) int
getLightColor
(float pPartialTick) protected float
getU0()
protected float
getU1()
protected float
getV0()
protected float
getV1()
updateSprite
(BlockState state, BlockPos pos) Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
pickSprite, setSprite, setSpriteFromAge
Methods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, render, renderRotatedQuad, renderRotatedQuad, scale
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, tick, toString
-
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
-
getRenderType
- Specified by:
getRenderType
in classParticle
-
getU0
protected float getU0()- Overrides:
getU0
in classTextureSheetParticle
-
getU1
protected float getU1()- Overrides:
getU1
in classTextureSheetParticle
-
getV0
protected float getV0()- Overrides:
getV0
in classTextureSheetParticle
-
getV1
protected float getV1()- Overrides:
getV1
in classTextureSheetParticle
-
getLightColor
public int getLightColor(float pPartialTick) - Overrides:
getLightColor
in classParticle
-
createTerrainParticle
@Nullable static TerrainParticle createTerrainParticle(BlockParticleOption pType, ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed) -
updateSprite
-