Class ParticleBlocks
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
com.pixelmonmod.pixelmon.client.render.ParticleBlocks
public class ParticleBlocks
extends net.minecraft.client.particle.TextureSheetParticle
A particle spawned when a multiblock is broken.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.SingleQuadParticle.FacingCameraModeNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
net.minecraft.client.particle.Particle.LifetimeAlpha -
Field Summary
Fields inherited from class net.minecraft.client.particle.TextureSheetParticle
spriteFields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSizeFields inherited from class net.minecraft.client.particle.Particle
age, alpha, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, level, lifetime, onGround, oRoll, random, rCol, removed, roll, speedUpWhenYMotionIsBlocked, stoppedByCollision, x, xd, xo, y, yd, yo, z, zd, zo -
Constructor Summary
ConstructorsConstructorDescriptionParticleBlocks(net.minecraft.client.multiplayer.ClientLevel worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, net.minecraft.world.level.block.state.BlockState state) Initializes the particle. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.particle.ParticleRenderTypeprotected floatgetU0()protected floatgetU1()protected floatgetV0()protected floatgetV1()voidrender(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks) Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
pickSprite, setSprite, setSpriteFromAgeMethods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, renderRotatedQuad, renderRotatedQuad, scaleMethods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, tick, toString
-
Constructor Details
-
ParticleBlocks
public ParticleBlocks(net.minecraft.client.multiplayer.ClientLevel worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, net.minecraft.world.level.block.state.BlockState state) Initializes the particle.- Parameters:
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.
-
-
Method Details
-
getU0
protected float getU0()- Overrides:
getU0in classnet.minecraft.client.particle.TextureSheetParticle
-
getU1
protected float getU1()- Overrides:
getU1in classnet.minecraft.client.particle.TextureSheetParticle
-
getV0
protected float getV0()- Overrides:
getV0in classnet.minecraft.client.particle.TextureSheetParticle
-
getV1
protected float getV1()- Overrides:
getV1in classnet.minecraft.client.particle.TextureSheetParticle
-
render
public void render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks) - Overrides:
renderin classnet.minecraft.client.particle.SingleQuadParticle
-
getRenderType
public net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-