Class ProgressingLine

java.lang.Object
me.desht.pneumaticcraft.client.util.ProgressingLine

public class ProgressingLine extends Object
  • Field Details

    • startX

      public float startX
    • startY

      public float startY
    • startZ

      public float startZ
    • endX

      public float endX
    • endY

      public float endY
    • endZ

      public float endZ
    • progress

      protected float progress
  • Constructor Details

    • ProgressingLine

      public ProgressingLine()
    • ProgressingLine

      public ProgressingLine(com.mojang.math.Vector3f start, com.mojang.math.Vector3f end)
    • ProgressingLine

      public ProgressingLine(net.minecraft.world.phys.Vec3 start, net.minecraft.world.phys.Vec3 end)
    • ProgressingLine

      public ProgressingLine(float startX, float startY, float startZ, float endX, float endY, float endZ)
    • ProgressingLine

      public ProgressingLine(float startX, float startY, float endX, float endY)
  • Method Details

    • getProgress

      public float getProgress()
    • setProgress

      public ProgressingLine setProgress(float progress)
    • incProgress

      public boolean incProgress(float increment)
      Increases the progress by the given amount.
      Parameters:
      increment -
      Returns:
      Returns true when the maximum progress has been reached.
    • incProgressByDistance

      public boolean incProgressByDistance(double distance)