Class ParticleArcanery
java.lang.Object
net.minecraft.client.particle.Particle
com.pixelmonmod.pixelmon.client.particle.ParticleArcanery
public class ParticleArcanery
extends net.minecraft.client.particle.Particle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle
net.minecraft.client.particle.Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionnet.minecraft.client.CameradoubledoubledoublefloatfloatfloatfloatfloatFields 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
ConstructorsConstructorDescriptionParticleArcanery(double x, double y, double z, double vx, double vy, double vz, float size, ParticleEffect effect) Particle with specified sizing.ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, ParticleEffect effect) Particle with default sizing. -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddispatch(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, float ticks, net.minecraft.client.renderer.MultiBufferSource.BufferSource source) intgetAge()floatfloatfloatgetAngle()floatnet.minecraft.world.phys.AABBfloatfloatintdoubledoubledoublefloatdoublegetPrevX()doublegetPrevY()doublegetPrevZ()net.minecraft.util.RandomSourcefloatnet.minecraft.client.particle.ParticleRenderTypefloatgetSize()net.minecraft.resources.ResourceLocationfloatgetWidth()net.minecraft.world.level.LevelgetWorld()doublegetX()doublegetY()doublegetZ()voidvoidmove(double dx, double dy, double dz) booleanonGround()voidrender(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, float partialTicks) voidrender(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks) protected voidrenderRotatedQuad(com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.client.Camera camera, org.joml.Quaternionf rotation, float partialTicks) protected voidrenderRotatedQuad(com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, org.joml.Quaternionf rotation, float xPos, float yPos, float zPos, float partialTicks) voidsetAngle(float theta) voidsetHeading(double x, double y, double z, float velocity, float inaccuracy) Sets the current motion based on a given heading.voidsetHeight(float height) voidsetLifetime(int lifetime) protected voidvoidsetMotion(double x, double y, double z) Set the motion of this particle.voidvoidsetPos(double x, double y, double z) voidsetPrevPos(double x, double y, double z) voidsetRGBA(float r, float g, float b, float a) Set the color of this particle.voidsetSize(float size) voidsetWidth(float width) voidtick()Methods inherited from class net.minecraft.client.particle.Particle
getLightColor, getParticleGroup, getPos, getRenderBoundingBox, isAlive, remove, scale, setAlpha, setBoundingBox, setColor, setParticleSpeed, setPower, setSize, toString
-
Field Details
-
effect
-
rotationX
public float rotationX -
rotationZ
public float rotationZ -
rotationYZ
public float rotationYZ -
rotationXY
public float rotationXY -
rotationXZ
public float rotationXZ -
interpPosX
public double interpPosX -
interpPosY
public double interpPosY -
interpPosZ
public double interpPosZ -
info
public net.minecraft.client.Camera info
-
-
Constructor Details
-
ParticleArcanery
public ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, ParticleEffect effect) Particle with default sizing.- Parameters:
x- X position.y- Y position.z- Z position.vx- Initial X motion. Note, these values might not directly correlate to motion. Depends on the ParticleEffect impl.vy- Initial Y motion.vz- Initial Z motion.effect- TheParticleEffectto render.
-
ParticleArcanery
public ParticleArcanery(double x, double y, double z, double vx, double vy, double vz, float size, ParticleEffect effect) Particle with specified sizing.- Parameters:
x- X position.y- Y position.z- Z position.vx- Initial X motion. Note, these values might not directly correlate to motion. Depends on the ParticleEffect impl.vy- Initial Y motion.vz- Initial Z motion.size- Initial particle size.effect- TheParticleEffectto render.
-
-
Method Details
-
setRGBA
public void setRGBA(float r, float g, float b, float a) Set the color of this particle. Note that this may not always do what you expect, see the currentParticleEffectimplementation in use by this instance to check.- Parameters:
r- Red portion.g- Green portion.b- Blue portion.a- Alpha portion.
-
getMotionX
public double getMotionX() -
getMotionY
public double getMotionY() -
getMotionZ
public double getMotionZ() -
setMotion
public void setMotion(double x, double y, double z) Set the motion of this particle. Note that this may not always do what you expect, see the currentParticleEffectimplementation in use by this instance to check.- Parameters:
x- X motion.y- Y motion.z- Z motion.
-
setOnGround
public void setOnGround() -
setLifetime
public void setLifetime(int lifetime) - Overrides:
setLifetimein classnet.minecraft.client.particle.Particle
-
getLifetime
public int getLifetime()- Overrides:
getLifetimein classnet.minecraft.client.particle.Particle
-
getRenderType
public net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-
incrementAge
public void incrementAge() -
getAge
public int getAge() -
getSize
public float getSize() -
setSize
public void setSize(float size) -
getWidth
public float getWidth() -
setWidth
public void setWidth(float width) -
getHeight
public float getHeight() -
setHeight
public void setHeight(float height) -
getX
public double getX() -
getY
public double getY() -
getZ
public double getZ() -
setPos
public void setPos(double x, double y, double z) - Overrides:
setPosin classnet.minecraft.client.particle.Particle
-
getPrevX
public double getPrevX() -
getPrevY
public double getPrevY() -
getPrevZ
public double getPrevZ() -
setPrevPos
public void setPrevPos(double x, double y, double z) -
setHeading
public void setHeading(double x, double y, double z, float velocity, float inaccuracy) Sets the current motion based on a given heading.- Parameters:
x- X direction.y- Y direction.z- Z direction.velocity- Rate of movement.inaccuracy- Factor of how much the heading can vary from what is specified.
-
onGround
public boolean onGround() -
dispatch
public static void dispatch(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, float ticks, net.minecraft.client.renderer.MultiBufferSource.BufferSource source) -
render
public void render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera renderInfo, float partialTicks) - Specified by:
renderin classnet.minecraft.client.particle.Particle
-
getBoundingBox
public net.minecraft.world.phys.AABB getBoundingBox()- Overrides:
getBoundingBoxin classnet.minecraft.client.particle.Particle
-
getAngle
public float getAngle() -
getPrevAngle
public float getPrevAngle() -
getAlphaF
public float getAlphaF() -
getTexture
public net.minecraft.resources.ResourceLocation getTexture() -
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrix, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, float partialTicks) -
getEffect
-
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
setLocationFromBoundingbox
protected void setLocationFromBoundingbox()- Overrides:
setLocationFromBoundingboxin classnet.minecraft.client.particle.Particle
-
move
public void move(double dx, double dy, double dz) - Overrides:
movein classnet.minecraft.client.particle.Particle
-
setAngle
public void setAngle(float theta) -
getRandom
public net.minecraft.util.RandomSource getRandom() -
getWorld
public net.minecraft.world.level.Level getWorld() -
getRedColorF
public float getRedColorF() -
getGreenColorF
public float getGreenColorF() -
getBlueColorF
public float getBlueColorF() -
getAlphaColorF
public float getAlphaColorF() -
renderRotatedQuad
protected void renderRotatedQuad(com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.client.Camera camera, org.joml.Quaternionf rotation, float partialTicks) -
renderRotatedQuad
protected void renderRotatedQuad(com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, org.joml.Quaternionf rotation, float xPos, float yPos, float zPos, float partialTicks)
-