Class GenericParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
team.lodestar.lodestone.systems.particle.world.GenericParticle
- Direct Known Subclasses:
FrameSetParticle
public class GenericParticle
extends net.minecraft.client.particle.TextureSheetParticle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Consumer<GenericParticle>protected final ColorParticleDataprotected final SimpleParticleOptions.ParticleDiscardFunctionTypeprotected final GenericParticleDataprotected final SpinParticleDataprotected final SimpleParticleOptions.ParticleSpritePickerprotected final net.minecraft.client.particle.ParticleEngine.MutableSpriteSetprotected final GenericParticleDataFields 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
ConstructorsConstructorDescriptionGenericParticle(net.minecraft.client.multiplayer.ClientLevel world, WorldParticleOptions options, net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet, double x, double y, double z, double xd, double yd, double zd) -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetLightColor(float pPartialTick) net.minecraft.world.phys.Vec3net.minecraft.client.particle.ParticleRenderTypevoidpickColor(float colorCoeff) voidpickSprite(int spriteIndex) voidrender(com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.client.Camera camera, float partialTicks) voidsetParticleSpeed(net.minecraft.world.phys.Vec3 speed) voidtick()protected voidMethods inherited from class net.minecraft.client.particle.TextureSheetParticle
getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAgeMethods inherited from class net.minecraft.client.particle.SingleQuadParticle
getQuadSize, scaleMethods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleGroup, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, shouldCull, toString
-
Field Details
-
spriteSet
protected final net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet -
spritePicker
-
discardFunctionType
-
colorData
-
transparencyData
-
scaleData
-
spinData
-
actor
-
-
Constructor Details
-
GenericParticle
public GenericParticle(net.minecraft.client.multiplayer.ClientLevel world, WorldParticleOptions options, net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet, double x, double y, double z, double xd, double yd, double zd)
-
-
Method Details
-
getLightColor
protected int getLightColor(float pPartialTick) - Overrides:
getLightColorin classnet.minecraft.client.particle.Particle
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
render
public void render(com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.client.Camera camera, 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
-
getSpritePicker
-
pickSprite
public void pickSprite(int spriteIndex) -
pickColor
public void pickColor(float colorCoeff) -
updateTraits
protected void updateTraits() -
getParticleSpeed
public net.minecraft.world.phys.Vec3 getParticleSpeed() -
setParticleSpeed
public void setParticleSpeed(net.minecraft.world.phys.Vec3 speed)
-