Class ParticleBuff
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
com.binaris.wizardry.client.particle.ParticleBuff
Particle Buff is the only particle in Electroblob's Wizardry (at least on Alpha release) that's using the linking
mechanism from ParticleWizardry to follow an entity. It represents the buff effect visually by floating upwards
from the entity it's linked to. The particle uses a custom texture and rendering method to achieve its appearance.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.binaris.wizardry.api.client.particle.ParticleWizardry
adjustQuadSize, angle, entity, fadeBlue, fadeGreen, fadeRed, initialBlue, initialGreen, initialRed, pitch, PROVIDERS, radius, random, relativeMotionX, relativeMotionY, relativeMotionZ, relativeX, relativeY, relativeZ, seed, shaded, speed, yawFields 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
ConstructorsConstructorDescriptionParticleBuff(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteProvider) -
Method Summary
Modifier and TypeMethodDescriptionprotected intgetLightColor(float partialTick) @NotNull net.minecraft.client.particle.ParticleRenderTypevoidrender(@NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.client.Camera camera, float partialTicks) voidtick()Methods inherited from class com.binaris.wizardry.api.client.particle.ParticleWizardry
drawParticle, move, setCollisions, setColor, setEntity, setFacing, setFadeColour, setGravity, setParticleSpeed, setSeed, setShaded, setSpin, updateEntityLinkingMethods 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, setPos, setPower, setSize, toString
-
Constructor Details
-
ParticleBuff
public ParticleBuff(net.minecraft.client.multiplayer.ClientLevel world, double x, double y, double z, net.minecraft.client.particle.SpriteSet spriteProvider)
-
-
Method Details
-
getRenderType
@NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()- Overrides:
getRenderTypein classParticleWizardry
-
tick
public void tick()- Overrides:
tickin classParticleWizardry
-
render
public void render(@NotNull @NotNull com.mojang.blaze3d.vertex.VertexConsumer vertexConsumer, net.minecraft.client.Camera camera, float partialTicks) - Overrides:
renderin classParticleWizardry
-
getLightColor
protected int getLightColor(float partialTick) - Overrides:
getLightColorin classParticleWizardry
-