Class GenericParticle<T extends AbstractWorldParticleOptions>
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<T>
- All Implemented Interfaces:
LodestoneWorldParticleActor
- Direct Known Subclasses:
FrameSetParticle,LodestoneItemCrumbParticle,LodestoneTerrainParticle,SparkParticle
public class GenericParticle<T extends AbstractWorldParticleOptions>
extends net.minecraft.client.particle.TextureSheetParticle
implements LodestoneWorldParticleActor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<Consumer<LodestoneWorldParticleActor>>protected final ColorParticleDataprotected final SimpleParticleOptions.ParticleDiscardFunctionTypeprotected final net.minecraft.client.particle.ParticleRenderTypeprotected 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, T 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) intintnet.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3net.minecraft.client.particle.ParticleRenderTypecom.mojang.blaze3d.vertex.VertexConsumergetVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer original) voidpickColor(float colorCoeff) voidpickSprite(int spriteIndex) voidrender(com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.client.Camera camera, float partialTicks) setParticleMotion(double x, double y, double z) setParticlePosition(double x, double y, double z) 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface team.lodestar.lodestone.systems.particle.LodestoneWorldParticleActor
setParticleMotion, setParticlePosition
-
Field Details
-
renderType
protected final net.minecraft.client.particle.ParticleRenderType renderType -
spriteSet
protected final net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet -
spritePicker
-
discardFunctionType
-
colorData
-
transparencyData
-
scaleData
-
spinData
-
actors
-
-
Constructor Details
-
GenericParticle
public GenericParticle(net.minecraft.client.multiplayer.ClientLevel world, T options, net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet, double x, double y, double z, double xd, double yd, double zd)
-
-
Method Details
-
getSpritePicker
-
getVertexConsumer
public com.mojang.blaze3d.vertex.VertexConsumer getVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer original) -
pickSprite
public void pickSprite(int spriteIndex) -
pickColor
public void pickColor(float colorCoeff) -
updateTraits
protected void updateTraits() -
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
-
getParticlePosition
public net.minecraft.world.phys.Vec3 getParticlePosition()- Specified by:
getParticlePositionin interfaceLodestoneWorldParticleActor
-
setParticlePosition
- Specified by:
setParticlePositionin interfaceLodestoneWorldParticleActor
-
getParticleSpeed
public net.minecraft.world.phys.Vec3 getParticleSpeed()- Specified by:
getParticleSpeedin interfaceLodestoneWorldParticleActor
-
setParticleMotion
- Specified by:
setParticleMotionin interfaceLodestoneWorldParticleActor
-
getParticleAge
public int getParticleAge()- Specified by:
getParticleAgein interfaceLodestoneWorldParticleActor
-
getParticleLifespan
public int getParticleLifespan()- Specified by:
getParticleLifespanin interfaceLodestoneWorldParticleActor
-