Class SkipCellPointEvaluator

java.lang.Object
com.hypixel.hytale.procedurallib.logic.cell.evaluator.SkipCellPointEvaluator
All Implemented Interfaces:
PointEvaluator

public class SkipCellPointEvaluator extends Object implements PointEvaluator
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    collectPoint(int cellHash, int cellX, int cellY, double cellCentreX, double cellCentreY, T ctx, PointConsumer<T> consumer)
    Accepts a cell centre-point and passes it to the provided consumer.
    void
    evalPoint(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer)
    Evaluate the distance to a cell-point in a 3D neighborhood, recording only the closest result.
    void
    evalPoint(int seed, double x, double y, int cellHash, int cellX, int cellY, double cellPointX, double cellPointY, ResultBuffer.ResultBuffer2d buffer)
    Evaluate the distance to a cell-point in a 2D neighborhood, recording only the closest result.
    void
    evalPoint2(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer)
    Evaluate the distance to a cell-point in a 3D neighborhood, recording the closest and second-closest result.
    void
    evalPoint2(int seed, double x, double y, int cellHash, int cellX, int cellY, double cellPointX, double cellPointY, ResultBuffer.ResultBuffer2d buffer)
    Evaluate the distance to a cell-point in a 2D neighborhood, recording the closest and second-closest result.
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getJitter

      public CellJitter getJitter()
      Specified by:
      getJitter in interface PointEvaluator
      Returns:
      The jitter configuration to use when calculating cell centre-points.
    • evalPoint

      public void evalPoint(int seed, double x, double y, int cellHash, int cellX, int cellY, double cellPointX, double cellPointY, ResultBuffer.ResultBuffer2d buffer)
      Description copied from interface: PointEvaluator
      Evaluate the distance to a cell-point in a 2D neighborhood, recording only the closest result.
      Specified by:
      evalPoint in interface PointEvaluator
      Parameters:
      seed - The seed being sampled.
      x - The x-coordinate being sampled.
      y - The y-coordinate being sampled.
      cellHash - The seeded hash of the cell.
      cellX - The x-index of the cell.
      cellY - The y-index of the cell.
      cellPointX - The x-coordinate of the cell centre point.
      cellPointY - The y-coordinate of the cell centre point.
      buffer - The buffer into which the result of the evaluation is recorded.
    • evalPoint2

      public void evalPoint2(int seed, double x, double y, int cellHash, int cellX, int cellY, double cellPointX, double cellPointY, ResultBuffer.ResultBuffer2d buffer)
      Description copied from interface: PointEvaluator
      Evaluate the distance to a cell-point in a 2D neighborhood, recording the closest and second-closest result.
      Specified by:
      evalPoint2 in interface PointEvaluator
      Parameters:
      seed - The seed being sampled.
      x - The x-coordinate being sampled.
      y - The y-coordinate being sampled.
      cellHash - The seeded hash of the cell.
      cellX - The x-index of the cell.
      cellY - The y-index of the cell.
      cellPointX - The x-coordinate of the cell centre point.
      cellPointY - The y-coordinate of the cell centre point.
      buffer - The buffer into which the result of the evaluation is recorded.
    • evalPoint

      public void evalPoint(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer)
      Description copied from interface: PointEvaluator
      Evaluate the distance to a cell-point in a 3D neighborhood, recording only the closest result.
      Specified by:
      evalPoint in interface PointEvaluator
      Parameters:
      seed - The seed being sampled.
      x - The x-coordinate being sampled.
      y - The y-coordinate being sampled.
      z - The z-coordinate being sampled.
      cellHash - The seeded hash of the cell.
      cellX - The x-index of the cell.
      cellY - The y-index of the cell.
      cellZ - The z-index of the cell.
      cellPointX - The x-coordinate of the cell centre point.
      cellPointY - The y-coordinate of the cell centre point.
      cellPointZ - The z-coordinate of the cell centre point.
      buffer - The buffer into which the result of the evaluation is recorded.
    • evalPoint2

      public void evalPoint2(int seed, double x, double y, double z, int cellHash, int cellX, int cellY, int cellZ, double cellPointX, double cellPointY, double cellPointZ, ResultBuffer.ResultBuffer3d buffer)
      Description copied from interface: PointEvaluator
      Evaluate the distance to a cell-point in a 3D neighborhood, recording the closest and second-closest result.
      Specified by:
      evalPoint2 in interface PointEvaluator
      Parameters:
      seed - The seed being sampled.
      x - The x-coordinate being sampled.
      y - The y-coordinate being sampled.
      z - The z-coordinate being sampled.
      cellHash - The seeded hash of the cell.
      cellX - The x-index of the cell.
      cellY - The y-index of the cell.
      cellZ - The z-index of the cell.
      cellPointX - The x-coordinate of the cell centre point.
      cellPointY - The y-coordinate of the cell centre point.
      cellPointZ - The z-coordinate of the cell centre point.
      buffer - The buffer into which the result of the evaluation is recorded.
    • collectPoint

      public <T> void collectPoint(int cellHash, int cellX, int cellY, double cellCentreX, double cellCentreY, T ctx, @Nonnull PointConsumer<T> consumer)
      Description copied from interface: PointEvaluator
      Accepts a cell centre-point and passes it to the provided consumer.
      Specified by:
      collectPoint in interface PointEvaluator
      Type Parameters:
      T - The type of the contextual information being passed to the consumer.
      Parameters:
      cellHash - The hash of the cell.
      cellCentreX - The x-coordinate of the cell centre-point.
      cellCentreY - The y-coordinate of the cell centre-point.
      ctx - An arbitrary piece of contextual information to pass to the collector for each point visited.
      consumer - A consumer of the cell centre-point.