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
-
Nested Class Summary
Modifier 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
Fields inherited from class net.minecraft.client.particle.TextureSheetParticle
sprite
Fields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSize
-
Constructor Summary
ConstructorDescriptionTerrainParticle
(ClientLevel p_108282_, double p_108283_, double p_108284_, double p_108285_, double p_108286_, double p_108287_, double p_108288_, BlockState p_108289_) TerrainParticle
(ClientLevel p_172451_, double p_172452_, double p_172453_, double p_172454_, double p_172455_, double p_172456_, double p_172457_, BlockState p_172458_, BlockPos p_172459_) -
Method Summary
Modifier and TypeMethodDescription(package private) static TerrainParticle
createTerrainParticle
(BlockParticleOption p_331600_, ClientLevel p_334810_, double p_328897_, double p_329583_, double p_331123_, double p_333546_, double p_335782_, double p_335068_) int
getLightColor
(float p_108291_) 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, 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, shouldCull, tick, toString
-
Field Details
-
pos
-
uo
private final float uo -
vo
private final float vo
-
-
Constructor Details
-
TerrainParticle
public TerrainParticle(ClientLevel p_108282_, double p_108283_, double p_108284_, double p_108285_, double p_108286_, double p_108287_, double p_108288_, BlockState p_108289_) -
TerrainParticle
public TerrainParticle(ClientLevel p_172451_, double p_172452_, double p_172453_, double p_172454_, double p_172455_, double p_172456_, double p_172457_, BlockState p_172458_, BlockPos p_172459_)
-
-
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 p_108291_) - Overrides:
getLightColor
in classParticle
-
createTerrainParticle
@Nullable static TerrainParticle createTerrainParticle(BlockParticleOption p_331600_, ClientLevel p_334810_, double p_328897_, double p_329583_, double p_331123_, double p_333546_, double p_335782_, double p_335068_) -
updateSprite
-