public class ParticleBlocks
extends net.minecraft.client.particle.SpriteTexturedParticle
Constructor and Description |
---|
ParticleBlocks(net.minecraft.client.world.ClientWorld worldIn,
double xCoordIn,
double yCoordIn,
double zCoordIn,
double xSpeedIn,
double ySpeedIn,
double zSpeedIn,
net.minecraft.block.BlockState state)
Initializes the particle.
|
Modifier and Type | Method and Description |
---|---|
net.minecraft.client.particle.IParticleRenderType |
getRenderType() |
protected float |
getU0() |
protected float |
getU1() |
protected float |
getV0() |
protected float |
getV1() |
void |
render(com.mojang.blaze3d.vertex.IVertexBuilder buffer,
net.minecraft.client.renderer.ActiveRenderInfo renderInfo,
float partialTicks) |
pickSprite, setSprite, setSpriteFromAge
public ParticleBlocks(net.minecraft.client.world.ClientWorld worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, net.minecraft.block.BlockState state)
worldIn
- The world the particle is in.xCoordIn
- The x coordinate of the particle.yCoordIn
- The y coordinate of the particle.zCoordIn
- The z coordinate of the particle.xSpeedIn
- The x component of the velocity of particle.ySpeedIn
- The y component of the velocity of the particle.zSpeedIn
- The z component of the velocity of the particle.state
- The block that spawned the particle.protected float getU0()
getU0
in class net.minecraft.client.particle.SpriteTexturedParticle
protected float getU1()
getU1
in class net.minecraft.client.particle.SpriteTexturedParticle
protected float getV0()
getV0
in class net.minecraft.client.particle.SpriteTexturedParticle
protected float getV1()
getV1
in class net.minecraft.client.particle.SpriteTexturedParticle
public void render(com.mojang.blaze3d.vertex.IVertexBuilder buffer, net.minecraft.client.renderer.ActiveRenderInfo renderInfo, float partialTicks)
render
in class net.minecraft.client.particle.TexturedParticle
public net.minecraft.client.particle.IParticleRenderType getRenderType()
getRenderType
in class net.minecraft.client.particle.Particle