Package vazkii.botania.client.fx
Interface BoltParticleOptions.SegmentSpreader
- Enclosing class:
BoltParticleOptions
public static interface BoltParticleOptions.SegmentSpreader
A SegmentSpreader defines how successive bolt segments are arranged in the bolt generation calculation, based on
previous state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BoltParticleOptions.SegmentSpreaderDon't remember where the last segment left off, just randomly move from the straight-line vector. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.phys.Vec3getSegmentAdd(net.minecraft.world.phys.Vec3 perpendicularDist, net.minecraft.world.phys.Vec3 randVec, float maxDiff, float scale, float progress, double rand) memory(float memoryFactor) Move from where the previous segment ended by a certain memory factor.
-
Field Details
-
NO_MEMORY
Don't remember where the last segment left off, just randomly move from the straight-line vector.
-
-
Method Details
-
memory
Move from where the previous segment ended by a certain memory factor. Higher memory will restrict perpendicular movement. -
getSegmentAdd
net.minecraft.world.phys.Vec3 getSegmentAdd(net.minecraft.world.phys.Vec3 perpendicularDist, net.minecraft.world.phys.Vec3 randVec, float maxDiff, float scale, float progress, double rand)
-