Package vazkii.botania.client.fx
Class BoltParticleOptions
java.lang.Object
vazkii.botania.client.fx.BoltParticleOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfaceA bolt's fade function allows one to define lower and upper bounds on the bolt segments rendered based on lifespan.static interfaceA RandomFunction defines the behavior of the RNG used in various bolt generation calculations.static interfaceA SegmentSpreader defines how successive bolt segments are arranged in the bolt generation calculation, based on previous state.static interfaceA bolt's spawn function defines its spawn behavior (handled by the renderer).static interfaceA SpreadFunction defines how far bolt segments can stray from the straight-line vector, based on parallel 'progress' from start to finish. -
Constructor Summary
ConstructorsConstructorDescriptionBoltParticleOptions(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, int segments) BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, int segments, int count, float size, int lifespan, BoltParticleOptions.SpawnFunction spawnFunction, BoltParticleOptions.FadeFunction fadeFunction) -
Method Summary
Modifier and TypeMethodDescriptioncount(int count) fade(BoltParticleOptions.FadeFunction fadeFunction) Define theBoltParticleOptions.FadeFunctionfor this bolt effect.generate()org.joml.Vector4fgetColor()intlifespan(int lifespan) Define the lifespan (in ticks) of this bolt, at the end of which the bolt will expire.size(float size) Set the starting size (or width) of bolt segments.spawn(BoltParticleOptions.SpawnFunction spawnFunction) Define theBoltParticleOptions.SpawnFunctionfor this bolt effect.
-
Constructor Details
-
BoltParticleOptions
public BoltParticleOptions(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) -
BoltParticleOptions
public BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end) -
BoltParticleOptions
public BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, int segments) -
BoltParticleOptions
public BoltParticleOptions(BoltParticleOptions.BoltRenderInfo info, net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end, int segments, int count, float size, int lifespan, BoltParticleOptions.SpawnFunction spawnFunction, BoltParticleOptions.FadeFunction fadeFunction)
-
-
Method Details
-
count
- Parameters:
count- amount of bolts to render
-
size
Set the starting size (or width) of bolt segments.- Parameters:
size- starting size of bolt segments
-
spawn
Define theBoltParticleOptions.SpawnFunctionfor this bolt effect.- Parameters:
spawnFunction- spawn function to use
-
fade
Define theBoltParticleOptions.FadeFunctionfor this bolt effect.- Parameters:
fadeFunction- fade function to use
-
lifespan
Define the lifespan (in ticks) of this bolt, at the end of which the bolt will expire.- Parameters:
lifespan- lifespan to use in ticks
-
getLifespan
public int getLifespan() -
getSpawnFunction
-
getFadeFunction
-
getColor
public org.joml.Vector4f getColor() -
generate
-