Class AttackEffect
java.lang.Object
com.pixelmonmod.pixelmon.client.particle.ParticleEffect
com.pixelmonmod.pixelmon.client.particle.particles.AttackEffect
TODO:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionintfloatintdoubledoubledoublebooleanfloatbooleanintdoubleintnet.minecraft.client.Minecraftdoubledoubledoubledoublefloatfloatdoubleintdoubledoubledoublenet.minecraft.resources.ResourceLocationintdoubledouble -
Constructor Summary
ConstructorsConstructorDescriptionAttackEffect(IAttackEffect effect, double startX, double startY, double startZ, double endX, double endY, double endZ, int accuracy, int hiddenUntil, boolean hiddenIsDisable, double noiseParam, double speed, int startID, int endID) AttackEffect(IAttackEffect effect, int startEntityID, float[] startPos, int endEntityID, float[] endPos, StandardParticleAnimationData data) -
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.voidpostRender(ParticleArcanery particle, float partialTicks) Does rendering after therenderfunctions.voidpreRender(ParticleArcanery particle, float partialTicks) Does rendering before therenderfunctions.voidrender(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, float partialTicks) Renders particles.setEndPos(double endX, double endY, double endZ) setEndPos(float endX, float endY, float endZ) voidsetHideTicks(int hideTicks, boolean hideWhileDisabled) setLifetimeTicks(int ticks) setNoise(double noiseParam) setStartPos(double startX, double startY, double startZ) setStartPos(float startX, float startY, float startZ) net.minecraft.resources.ResourceLocationtexture()voidupdate(ParticleArcanery particle) A function called every tick byParticleArcanery.tick().Methods inherited from class com.pixelmonmod.pixelmon.client.particle.ParticleEffect
render
-
Field Details
-
startX
public double startX -
startY
public double startY -
startZ
public double startZ -
endX
public double endX -
endY
public double endY -
endZ
public double endZ -
innaccuracy
public double innaccuracy -
travelledDistance
public double travelledDistance -
totalDistance
public double totalDistance -
maxAge
public int maxAge -
age
public int age -
eol
public boolean eol -
speed
public double speed -
mX
public double mX -
mY
public double mY -
mZ
public double mZ -
r
public float r -
g
public float g -
b
public float b -
scale
public float scale -
texture
public net.minecraft.resources.ResourceLocation texture -
ticker
public int ticker -
noiseParam
public double noiseParam -
startID
public int startID -
endID
public int endID -
mc
public net.minecraft.client.Minecraft mc -
callback
-
-
Constructor Details
-
AttackEffect
public AttackEffect() -
AttackEffect
public AttackEffect(IAttackEffect effect, int startEntityID, float[] startPos, int endEntityID, float[] endPos, StandardParticleAnimationData data) -
AttackEffect
public AttackEffect(IAttackEffect effect, double startX, double startY, double startZ, double endX, double endY, double endZ, int accuracy, int hiddenUntil, boolean hiddenIsDisable, double noiseParam, double speed, int startID, int endID)
-
-
Method Details
-
setLifetimeTicks
-
setHideTicks
-
setNoise
-
setStartPos
-
setStartPos
-
setEndPos
-
setEndPos
-
setHeading
public void setHeading() -
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...?
-
customRenderer
public boolean customRenderer()- Overrides:
customRendererin classParticleEffect- Returns:
- Whether a particle should use
ParticleEffect'srender functions.
-
preRender
Description copied from class:ParticleEffectDoes rendering before therenderfunctions.- Overrides:
preRenderin classParticleEffect- Parameters:
particle- An object representing a particle...?partialTicks- Rendering ticks between game ticks.
-
render
public void render(com.mojang.blaze3d.vertex.PoseStack matrix, ParticleArcanery particle, com.mojang.blaze3d.vertex.Tesselator tesselator, float partialTicks) Description copied from class:ParticleEffectRenders particles.- Overrides:
renderin classParticleEffect- Parameters:
matrix- Rendering api stuff.particle- An object representing a particle...?tesselator- ???partialTicks- Rendering ticks between game ticks.
-
postRender
Description copied from class:ParticleEffectDoes rendering after therenderfunctions.- Overrides:
postRenderin classParticleEffect- Parameters:
particle- An object representing a particle...?partialTicks- Rendering ticks between game ticks.
-
texture
public net.minecraft.resources.ResourceLocation texture()- Specified by:
texturein classParticleEffect- Returns:
- The texture of the particle.
-