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

    Fields
    Modifier and Type
    Field
    Description
    Don't remember where the last segment left off, just randomly move from the straight-line vector.
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    memory(float memoryFactor)
    Move from where the previous segment ended by a certain memory factor.
  • Field Details

  • Method Details

    • memory

      static BoltParticleOptions.SegmentSpreader memory(float memoryFactor)
      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)