Class LodestoneWorldParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
team.lodestar.lodestone.systems.particle.world.LodestoneWorldParticle
- Direct Known Subclasses:
LodestoneItemCrumbParticle,LodestoneTerrainParticle
public class LodestoneWorldParticle
extends net.minecraft.client.particle.TextureSheetParticle
-
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
FieldsModifier and TypeFieldDescriptionfinal ColorParticleDatafinal GenericParticleDataintorg.joml.Vector3ffloatfinal intfinal Collection<Consumer<LodestoneWorldParticle>> final LodestoneRenderLayerfinal net.minecraft.client.particle.ParticleRenderTypefinal GenericParticleDatafinal Collection<Consumer<LodestoneWorldParticle>> final SpinParticleDatafinal net.minecraft.client.particle.ParticleEngine.MutableSpriteSetfinal Collection<Consumer<LodestoneWorldParticle>> final GenericParticleDataorg.joml.Vector3fFields 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
ConstructorsConstructorDescriptionLodestoneWorldParticle(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 TypeMethodDescriptionintgetAge()floatgetAlpha()floatgetBlue()floatgetGreen()net.minecraft.world.phys.Vec3intgetLightColor(float pPartialTick) net.minecraft.world.phys.Vec3floatgetORoll()net.minecraft.world.phys.Vec3net.minecraft.world.phys.Vec3floatgetQuadLength(float partialTicks) net.minecraft.util.RandomSourcefloatgetRed()net.minecraft.client.particle.ParticleRenderTypefloatgetRoll()net.minecraft.world.phys.Vec3floatgetU0()floatgetU1()floatgetV0()floatgetV1()com.mojang.blaze3d.vertex.VertexConsumergetVertexConsumer(com.mojang.blaze3d.vertex.VertexConsumer original) doublegetX()doubledoublegetXOld()doublegetY()doubledoublegetYOld()doublegetZ()doubledoublegetZOld()voidmove(double x, double y, double z) voidpickColor(float colorCoeff) voidpickSprite(int spriteIndex) voidrender(com.mojang.blaze3d.vertex.VertexConsumer consumer, net.minecraft.client.Camera camera, float partialTicks) voidsetOldParticlePosition(net.minecraft.world.phys.Vec3 pos) voidsetParticlePosition(net.minecraft.world.phys.Vec3 pos) voidsetParticleSpeed(net.minecraft.world.phys.Vec3 speed) voidsetSpriteFromInverseAge(net.minecraft.client.particle.SpriteSet sprite) voidtick()voidtick(int times) protected voidMethods 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, getParticleGroup, getPos, isAlive, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
Field Details
-
behavior
-
spriteSet
public final net.minecraft.client.particle.ParticleEngine.MutableSpriteSet spriteSet -
spritePicker
-
renderType
public final net.minecraft.client.particle.ParticleRenderType renderType -
renderLayer
-
colorData
-
transparencyData
-
scaleData
-
lengthData
-
spinData
-
spawnActors
-
tickActors
-
renderActors
-
particleLight
public final int particleLight -
oldTravelledDistance
public org.joml.Vector3f oldTravelledDistance -
travelledDistance
public org.joml.Vector3f travelledDistance -
partialTicksCache
public float partialTicksCache -
lifeDelay
public int lifeDelay
-
-
Constructor Details
-
LodestoneWorldParticle
public LodestoneWorldParticle(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
-
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
public int getLightColor(float pPartialTick) - Overrides:
getLightColorin classnet.minecraft.client.particle.Particle
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
move
public void move(double x, double y, double z) - Overrides:
movein 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
-
setSpriteFromInverseAge
public void setSpriteFromInverseAge(net.minecraft.client.particle.SpriteSet sprite) -
getQuadLength
public float getQuadLength(float partialTicks) -
getTravelledDistance
public net.minecraft.world.phys.Vec3 getTravelledDistance() -
getInterpolatedTravelledDistance
public net.minecraft.world.phys.Vec3 getInterpolatedTravelledDistance() -
getU0
public float getU0()- Overrides:
getU0in classnet.minecraft.client.particle.TextureSheetParticle
-
getU1
public float getU1()- Overrides:
getU1in classnet.minecraft.client.particle.TextureSheetParticle
-
getV0
public float getV0()- Overrides:
getV0in classnet.minecraft.client.particle.TextureSheetParticle
-
getV1
public float getV1()- Overrides:
getV1in classnet.minecraft.client.particle.TextureSheetParticle
-
getRoll
public float getRoll() -
getORoll
public float getORoll() -
getRed
public float getRed() -
getGreen
public float getGreen() -
getBlue
public float getBlue() -
getAlpha
public float getAlpha() -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
getXOld
public double getXOld() -
getYOld
public double getYOld() -
getZOld
public double getZOld() -
getXMotion
public double getXMotion() -
getYMotion
public double getYMotion() -
getZMotion
public double getZMotion() -
getParticlePosition
public net.minecraft.world.phys.Vec3 getParticlePosition() -
setParticlePosition
public void setParticlePosition(net.minecraft.world.phys.Vec3 pos) -
getOldParticlePosition
public net.minecraft.world.phys.Vec3 getOldParticlePosition() -
setOldParticlePosition
public void setOldParticlePosition(net.minecraft.world.phys.Vec3 pos) -
getParticleSpeed
public net.minecraft.world.phys.Vec3 getParticleSpeed() -
setParticleSpeed
public void setParticleSpeed(net.minecraft.world.phys.Vec3 speed) -
getAge
public int getAge() -
getRandom
public net.minecraft.util.RandomSource getRandom() -
tick
public void tick(int times)
-