public class ParticleArcanery
extends net.minecraft.client.particle.Particle
| Modifier and Type | Field and Description |
|---|---|
ParticleEffect |
effect |
net.minecraft.client.renderer.ActiveRenderInfo |
info |
double |
interpPosX |
double |
interpPosY |
double |
interpPosZ |
float |
rotationX |
float |
rotationXY |
float |
rotationXZ |
float |
rotationYZ |
float |
rotationZ |
| Constructor and Description |
|---|
ParticleArcanery(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.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
dispatch(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer tessellator,
float ticks) |
net.minecraft.util.math.vector.Vector3f[] |
doStandardParticleRotation(net.minecraft.util.math.vector.Vector3d vector3d,
float partialTicks) |
int |
getAge() |
float |
getAlphaColorF() |
float |
getAlphaF() |
float |
getAngle() |
float |
getBlueColorF() |
ParticleEffect |
getEffect() |
float |
getGreenColorF() |
float |
getHeight() |
int |
getLifetime() |
double |
getMotionX() |
double |
getMotionY() |
double |
getMotionZ() |
float |
getORoll() |
float |
getPrevAngle() |
double |
getPrevX() |
double |
getPrevY() |
double |
getPrevZ() |
java.util.Random |
getRandom() |
float |
getRedColorF() |
net.minecraft.client.particle.IParticleRenderType |
getRenderType() |
float |
getRoll() |
float |
getSize() |
net.minecraft.util.ResourceLocation |
getTexture() |
float |
getWidth() |
net.minecraft.world.World |
getWorld() |
double |
getX() |
double |
getY() |
double |
getZ() |
void |
incrementAge() |
void |
move(double dx,
double dy,
double dz) |
boolean |
onGround() |
void |
render(com.mojang.blaze3d.vertex.IVertexBuilder buffer,
net.minecraft.client.renderer.ActiveRenderInfo renderInfo,
float partialTicks) |
void |
render(com.mojang.blaze3d.matrix.MatrixStack matrix,
ParticleArcanery particle,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks) |
void |
setAngle(float theta) |
void |
setHeading(double x,
double y,
double z,
float velocity,
float inaccuracy)
Sets the current motion based on a given heading.
|
void |
setHeight(float height) |
void |
setLifetime(int lifetime) |
protected void |
setLocationFromBoundingbox() |
void |
setMotion(double x,
double y,
double z)
Set the motion of this particle.
|
void |
setOnGround() |
void |
setPos(double x,
double y,
double z) |
void |
setPrevPos(double x,
double y,
double z) |
void |
setRGBA(float r,
float g,
float b,
float a)
Set the color of this particle.
|
void |
setSize(float size) |
void |
setWidth(float width) |
boolean |
shouldCull() |
void |
tick() |
public ParticleEffect effect
public float rotationX
public float rotationZ
public float rotationYZ
public float rotationXY
public float rotationXZ
public double interpPosX
public double interpPosY
public double interpPosZ
public net.minecraft.client.renderer.ActiveRenderInfo info
public ParticleArcanery(double x,
double y,
double z,
double vx,
double vy,
double vz,
ParticleEffect effect)
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 - The ParticleEffect to render.public ParticleArcanery(double x,
double y,
double z,
double vx,
double vy,
double vz,
float size,
ParticleEffect effect)
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 - The ParticleEffect to render.public void setRGBA(float r,
float g,
float b,
float a)
ParticleEffect implementation in use
by this instance to check.r - Red portion.g - Green portion.b - Blue portion.a - Alpha portion.public double getMotionX()
public double getMotionY()
public double getMotionZ()
public void setMotion(double x,
double y,
double z)
ParticleEffect implementation in use
by this instance to check.x - X motion.y - Y motion.z - Z motion.public void setOnGround()
public void setLifetime(int lifetime)
setLifetime in class net.minecraft.client.particle.Particlepublic int getLifetime()
getLifetime in class net.minecraft.client.particle.Particlepublic net.minecraft.client.particle.IParticleRenderType getRenderType()
getRenderType in class net.minecraft.client.particle.Particlepublic boolean shouldCull()
shouldCull in class net.minecraft.client.particle.Particlepublic void incrementAge()
public int getAge()
public float getSize()
public void setSize(float size)
public float getWidth()
public void setWidth(float width)
public float getHeight()
public void setHeight(float height)
public double getX()
public double getY()
public double getZ()
public void setPos(double x,
double y,
double z)
setPos in class net.minecraft.client.particle.Particlepublic double getPrevX()
public double getPrevY()
public double getPrevZ()
public void setPrevPos(double x,
double y,
double z)
public void setHeading(double x,
double y,
double z,
float velocity,
float inaccuracy)
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.public boolean onGround()
public static void dispatch(com.mojang.blaze3d.matrix.MatrixStack matrix,
net.minecraft.client.renderer.IRenderTypeBuffer tessellator,
float ticks)
public void render(com.mojang.blaze3d.vertex.IVertexBuilder buffer,
net.minecraft.client.renderer.ActiveRenderInfo renderInfo,
float partialTicks)
render in class net.minecraft.client.particle.Particlepublic void render(com.mojang.blaze3d.matrix.MatrixStack matrix,
ParticleArcanery particle,
net.minecraft.client.renderer.IRenderTypeBuffer buffer,
float partialTicks)
public float getAngle()
public float getPrevAngle()
public float getAlphaF()
public net.minecraft.util.ResourceLocation getTexture()
public ParticleEffect getEffect()
public void tick()
tick in class net.minecraft.client.particle.Particleprotected void setLocationFromBoundingbox()
setLocationFromBoundingbox in class net.minecraft.client.particle.Particlepublic void move(double dx,
double dy,
double dz)
move in class net.minecraft.client.particle.Particlepublic void setAngle(float theta)
public java.util.Random getRandom()
public net.minecraft.world.World getWorld()
public float getRedColorF()
public float getGreenColorF()
public float getBlueColorF()
public float getAlphaColorF()
public net.minecraft.util.math.vector.Vector3f[] doStandardParticleRotation(net.minecraft.util.math.vector.Vector3d vector3d,
float partialTicks)
public float getRoll()
public float getORoll()