Class BandedPrimeLimiter

java.lang.Object
com.jozufozu.flywheel.backend.instancing.ratelimit.BandedPrimeLimiter
All Implemented Interfaces:
DistanceUpdateLimiter

public class BandedPrimeLimiter extends Object implements DistanceUpdateLimiter
  • Constructor Details

    • BandedPrimeLimiter

      public BandedPrimeLimiter()
  • Method Details

    • tick

      public void tick()
      Description copied from interface: DistanceUpdateLimiter
      Call this before every update.
      Specified by:
      tick in interface DistanceUpdateLimiter
    • shouldUpdate

      public boolean shouldUpdate(int dX, int dY, int dZ)
      Description copied from interface: DistanceUpdateLimiter
      Check to see if an object at the given position relative to the camera should be updated.
      Specified by:
      shouldUpdate in interface DistanceUpdateLimiter
      Parameters:
      dX - The X distance from the camera.
      dY - The Y distance from the camera.
      dZ - The Z distance from the camera.
      Returns:
      true if the object should be updated, false otherwise.
    • getUpdateDivisor

      protected int getUpdateDivisor(int dX, int dY, int dZ)