Class ParticleWizardry
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
com.binaris.wizardry.api.client.particle.ParticleWizardry
- Direct Known Subclasses:
ParticleBuff,ParticleCloud,ParticleDarkMagic,ParticleDust,ParticleFlash,ParticleIce,ParticleLeaf,ParticleLightningPulse,ParticleMagicBubble,ParticleMagicFire,ParticlePath,ParticleScorch,ParticleSnow,ParticleSpark,ParticleSparkle,ParticleSphere,ParticleTargeted
public abstract class ParticleWizardry
extends net.minecraft.client.particle.TextureSheetParticle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected floatprotected @Nullable net.minecraft.world.entity.Entityprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatstatic final Map<net.minecraft.core.particles.SimpleParticleType,BiFunction<net.minecraft.client.multiplayer.ClientLevel, net.minecraft.world.phys.Vec3, ParticleWizardry>> protected doubleprotected Randomprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected doubleprotected longprotected booleanprotected doubleprotected floatFields 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, rCol, removed, roll, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo -
Constructor Summary
ConstructorsConstructorDescriptionParticleWizardry(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteSet, boolean updateTextureOnTick) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawParticle(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks, org.joml.Quaternionf rotation) protected intgetLightColor(float f) @NotNull net.minecraft.client.particle.ParticleRenderTypevoidmove(double dx, double dy, double dz) voidrender(@NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, @NotNull net.minecraft.client.Camera camera, float tickDelta) voidsetCollisions(boolean canCollide) voidsetColor(float red, float green, float blue) voidsetEntity(net.minecraft.world.entity.Entity entity) voidsetFacing(float yaw, float pitch) voidsetFadeColor(float r, float g, float b) voidsetGravity(boolean gravity) voidsetSeed(long seed) voidsetShaded(boolean shaded) voidsetSpin(double radius, double speed) voidtick()protected voidupdateEntityLinking(float partialTicks) Methods 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, remove, setAlpha, setBoundingBox, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
Field Details
-
PROVIDERS
public static final Map<net.minecraft.core.particles.SimpleParticleType,BiFunction<net.minecraft.client.multiplayer.ClientLevel, PROVIDERSnet.minecraft.world.phys.Vec3, ParticleWizardry>> -
seed
protected long seed -
random
-
shaded
protected boolean shaded -
initialRed
protected float initialRed -
initialGreen
protected float initialGreen -
initialBlue
protected float initialBlue -
fadeRed
protected float fadeRed -
fadeGreen
protected float fadeGreen -
fadeBlue
protected float fadeBlue -
angle
protected float angle -
radius
protected double radius -
speed
protected double speed -
entity
@Nullable protected @Nullable net.minecraft.world.entity.Entity entity -
relativeX
protected double relativeX -
relativeY
protected double relativeY -
relativeZ
protected double relativeZ -
relativeMotionX
protected double relativeMotionX -
relativeMotionY
protected double relativeMotionY -
relativeMotionZ
protected double relativeMotionZ -
yaw
protected float yaw -
pitch
protected float pitch -
adjustQuadSize
protected boolean adjustQuadSize
-
-
Constructor Details
-
ParticleWizardry
public ParticleWizardry(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteSet, boolean updateTextureOnTick)
-
-
Method Details
-
setSeed
public void setSeed(long seed) -
setShaded
public void setShaded(boolean shaded) -
setGravity
public void setGravity(boolean gravity) -
setCollisions
public void setCollisions(boolean canCollide) -
setSpin
public void setSpin(double radius, double speed) -
setEntity
public void setEntity(net.minecraft.world.entity.Entity entity) -
setColor
public void setColor(float red, float green, float blue) - Overrides:
setColorin classnet.minecraft.client.particle.Particle
-
setFadeColor
public void setFadeColor(float r, float g, float b) -
setFacing
public void setFacing(float yaw, float pitch) -
getRenderType
@NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-
getLightColor
protected int getLightColor(float f) - Overrides:
getLightColorin classnet.minecraft.client.particle.Particle
-
render
public void render(@NotNull @NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, @NotNull @NotNull net.minecraft.client.Camera camera, float tickDelta) - Overrides:
renderin classnet.minecraft.client.particle.SingleQuadParticle
-
drawParticle
protected void drawParticle(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks, org.joml.Quaternionf rotation) -
updateEntityLinking
protected void updateEntityLinking(float partialTicks) -
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
move
public void move(double dx, double dy, double dz) - Overrides:
movein classnet.minecraft.client.particle.Particle
-