Class FallingLeafParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
de.cheaterpaul.fallingleaves.util.FallingLeafParticle
public class FallingLeafParticle
extends net.minecraft.client.particle.TextureSheetParticle
TODO - Plenty of "Magic numbers" in this class that we may want to get rid of
or, at the very least, define as class constants at the head of the file.
-
Nested Class Summary
Nested ClassesNested 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
FieldsModifier and TypeFieldDescriptionprotected static final intstatic final net.minecraft.client.particle.ParticleRenderTypeprotected final floatprotected final intprotected intprotected static final floatprotected static final doubleprotected final floatFields 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, x, xd, xo, y, yd, yo, z, zd, zo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFallingLeafParticle(net.minecraft.client.multiplayer.ClientLevel clientWorld, double x, double y, double z, double r, double g, double b, LeafTypeLoader.ParticleProvider provider) -
Method Summary
Modifier and TypeMethodDescription@NotNull net.minecraft.client.particle.ParticleRenderTypevoidtick()Methods inherited from class net.minecraft.client.particle.TextureSheetParticle
getU0, getU1, getV0, getV1, 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, getLightColor, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
Field Details
-
LEAVES_SHEET
public static final net.minecraft.client.particle.ParticleRenderType LEAVES_SHEET -
TAU
protected static final float TAU- See Also:
-
FADE_DURATION
protected static final int FADE_DURATION- See Also:
-
WATER_FRICTION
protected static final double WATER_FRICTION- See Also:
-
windCoefficient
protected final float windCoefficient -
maxRotateSpeed
protected final float maxRotateSpeed -
maxRotateTime
protected final int maxRotateTime -
rotateTime
protected int rotateTime
-
-
Constructor Details
-
FallingLeafParticle
protected FallingLeafParticle(net.minecraft.client.multiplayer.ClientLevel clientWorld, double x, double y, double z, double r, double g, double b, LeafTypeLoader.ParticleProvider provider)
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
getRenderType
@NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-