Class Electric
java.lang.Object
com.pixelmonmod.pixelmon.client.particle.ParticleEffect
com.pixelmonmod.pixelmon.client.particle.particles.Electric
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidinit(ParticleArcanery particle, net.minecraft.world.level.Level world, double x, double y, double z, double vx, double vy, double vz, float size) A function called byParticleArcanery'sconstructor.voidrender(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, float partialTicks) Renders particles.net.minecraft.resources.ResourceLocationtexture()voidupdate(ParticleArcanery particle) A function called every tick byParticleArcanery.tick().Methods inherited from class com.pixelmonmod.pixelmon.client.particle.ParticleEffect
postRender, preRender, render
-
Constructor Details
-
Electric
public Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b) -
Electric
public Electric(int age, boolean parent, float pitch, float yaw, float velocity, float inaccuracy, float r, float g, float b, float a)
-
-
Method Details
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource, float partialTicks) Description copied from class:ParticleEffectRenders particles.Called by
ParticleArcanery.dispatch(PoseStack, Tesselator, float, MultiBufferSource.BufferSource)- Overrides:
renderin classParticleEffect- Parameters:
matrix- Rendering api stuff.particle- An object representing a particle...?tesselator- ???partialTicks- Rendering ticks between game ticks.
-
customRenderer
public boolean customRenderer()- Overrides:
customRendererin classParticleEffect- Returns:
- Whether a particle should use
ParticleEffect'srender functions.
-
init
public void init(ParticleArcanery particle, net.minecraft.world.level.Level world, double x, double y, double z, double vx, double vy, double vz, float size) Description copied from class:ParticleEffectA function called byParticleArcanery'sconstructor.TODO: idk why this is needed when constructor's exist
- Specified by:
initin classParticleEffect- Parameters:
particle- An object representing a particle...?world- The Minecraft world.x- The x coordinate of the particle.y- The y coordinate of the particle.z- The z coordinate of the particle.vx- The x velocity of the particle.vy- The y velocity of the particle.vz- The z velocity of the particle.size- The size of the particle in the world.
-
update
Description copied from class:ParticleEffectA function called every tick byParticleArcanery.tick().TODO: Why the fuck isn't this just called tick
- Specified by:
updatein classParticleEffect- Parameters:
particle- An object representing a particle...?
-
texture
public net.minecraft.resources.ResourceLocation texture()- Specified by:
texturein classParticleEffect- Returns:
- The texture of the particle.
-