java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.density.Density
com.hypixel.hytale.builtin.hytalegenerator.density.nodes.PlaneDensity

public class PlaneDensity extends Density
  • Field Details

    • ZERO_DELTA

      public static final double ZERO_DELTA
      See Also:
    • ZERO_VECTOR

      private static final Vector3d ZERO_VECTOR
    • distanceCurve

      @Nonnull private final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction distanceCurve
    • planeNormal

      @Nonnull private final Vector3d planeNormal
    • isPlaneHorizontal

      private final boolean isPlaneHorizontal
    • isAnchored

      private final boolean isAnchored
  • Constructor Details

    • PlaneDensity

      public PlaneDensity(@Nonnull it.unimi.dsi.fastutil.doubles.Double2DoubleFunction distanceCurve, @Nonnull Vector3d planeNormal, boolean isAnchored)
  • Method Details

    • process

      public double process(@Nonnull Density.Context context)
      Specified by:
      process in class Density
    • processAnchored

      private double processAnchored(double x, double y, double z, @Nullable Density.Context context)