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 SingleQuadParticle
SingleQuadParticle.FacingCameraMode, SingleQuadParticle.LayerNested classes/interfaces inherited from class Particle
Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SingleQuadParticle.Layerprivate final BlockPosprivate final floatprivate final float -
Constructor Summary
ConstructorsConstructorDescriptionTerrainParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, BlockState blockState) TerrainParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, BlockState blockState, BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionprivate static @Nullable TerrainParticlecreateTerrainParticle(BlockParticleOption options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux) getLayer()protected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()updateSprite(BlockState state, BlockPos pos) Methods inherited from class SingleQuadParticle
extract, extractRotatedQuad, extractRotatedQuad, getFacingCameraMode, getGroup, getQuadSize, scale, setAlpha, setColor, setSprite, setSpriteFromAge, toStringMethods inherited from class Particle
getBoundingBox, getLifetime, getLightCoords, getParticleLimit, getPos, isAlive, move, remove, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, tick
-
Field Details
-
layer
-
pos
-
uo
private final float uo -
vo
private final float vo
-
-
Constructor Details
-
TerrainParticle
public TerrainParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, BlockState blockState) -
TerrainParticle
public TerrainParticle(ClientLevel level, double x, double y, double z, double xa, double ya, double za, BlockState blockState, BlockPos pos)
-
-
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
-
createTerrainParticle
private static @Nullable TerrainParticle createTerrainParticle(BlockParticleOption options, ClientLevel level, double x, double y, double z, double xAux, double yAux, double zAux) -
updateSprite
-