Class CubeParticle
java.lang.Object
net.minecraft.client.particle.Particle
com.simibubi.create.content.contraptions.particle.CubeParticle
public class CubeParticle
extends net.minecraft.client.particle.Particle
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.world.phys.Vec3[]protected booleanprotected floatFields 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
ConstructorsConstructorDescriptionCubeParticle(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, double motionX, double motionY, double motionZ) -
Method Summary
Modifier and TypeMethodDescriptionvoidaverageAge(int age) net.minecraft.client.particle.ParticleRenderTypevoidrender(com.mojang.blaze3d.vertex.VertexConsumer builder, net.minecraft.client.Camera renderInfo, float p_225606_3_) voidsetHot(boolean hot) voidsetScale(float scale) voidtick()Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, getParticleGroup, isAlive, move, remove, scale, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, toString
-
Field Details
-
CUBE
public static final net.minecraft.world.phys.Vec3[] CUBE -
scale
protected float scale -
hot
protected boolean hot
-
-
Constructor Details
-
CubeParticle
public CubeParticle(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, double motionX, double motionY, double motionZ)
-
-
Method Details
-
setScale
public void setScale(float scale) -
averageAge
public void averageAge(int age) -
setHot
public void setHot(boolean hot) -
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
render
public void render(com.mojang.blaze3d.vertex.VertexConsumer builder, net.minecraft.client.Camera renderInfo, float p_225606_3_) - Specified by:
renderin classnet.minecraft.client.particle.Particle
-
getRenderType
public net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-