Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: BiomeMapGenerator

[21:7] extends: FxObj

Wraps FXGL's BiomeMapGenerator (com.almasb.fxgl.procedural.BiomeMapGenerator), a CellGenerator that fills a Grid with elevation + moisture values produced by FXGLMath's 2D Perlin noise. Use the two channels to pick biome tiles (water vs grass vs desert vs forest). The underlying Java class implements the CellGenerator interface, but Aussom's CellGenerator wrapper is a static helper (not an inheritable class), so this wrapper extends FxObj directly.

Methods

  • BiomeMapGenerator (int Width = 0, int Height = 0, double Frequency = -1.0)

    Creates a new BiomeMapGenerator.

    • @p Width is the target grid width in cells.
    • @p Height is the target grid height in cells.
    • @p Frequency is the noise frequency (default 10.0 when -1).
  • adopt (object Ajo)

    Wraps an existing BiomeMapGenerator AussomJavaObject.

  • getWidth ()

  • getHeight ()

  • getFrequency ()

  • setFrequency (double V)

  • apply (int X, int Y)

    Generates the BiomeData cell at (X, Y). Returns a raw BiomeData AJO (x, y, elevation, moisture fields).