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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
SingleQuadParticle.FacingCameraModeNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha -
Field Summary
FieldsFields inherited from class net.minecraft.client.particle.TextureSheetParticle
spriteFields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSize -
Constructor Summary
ConstructorsConstructorDescriptionTerrainParticle(ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, BlockState state) TerrainParticle(ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, BlockState state, BlockPos pos) -
Method Summary
Modifier and TypeMethodDescription(package private) static TerrainParticlecreateTerrainParticle(BlockParticleOption type, ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) intgetLightColor(float partialTick) protected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()updateSprite(BlockState state, BlockPos pos) Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
pickSprite, setSprite, setSpriteFromAgeMethods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, render, renderRotatedQuad, renderRotatedQuad, scaleMethods 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 level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, BlockState state) -
TerrainParticle
public TerrainParticle(ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed, BlockState state, BlockPos pos)
-
-
Method Details
-
getRenderType
- Specified by:
getRenderTypein classParticle
-
getU0
protected float getU0()- Overrides:
getU0in classTextureSheetParticle
-
getU1
protected float getU1()- Overrides:
getU1in classTextureSheetParticle
-
getV0
protected float getV0()- Overrides:
getV0in classTextureSheetParticle
-
getV1
protected float getV1()- Overrides:
getV1in classTextureSheetParticle
-
getLightColor
public int getLightColor(float partialTick) - Overrides:
getLightColorin classParticle
-
createTerrainParticle
@Nullable static TerrainParticle createTerrainParticle(BlockParticleOption type, ClientLevel level, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) -
updateSprite
-