BiomeSelector
    
            
            in package
            
        
    
    
    
        
        
    
Table of Contents
- $map : array<string|int, Biome>|SplFixedArray
- $rainfall : Simplex
- $temperature : Simplex
- __construct() : mixed
- getRainfall() : float
- getTemperature() : float
- pickBiome() : Biome
- recalculate() : void
- lookup() : int
- Lookup function called by recalculate() to determine the biome to use for this temperature and rainfall.
Properties
$map
    private
        array<string|int, Biome>|SplFixedArray
    $map
     = null
    
    
    
    Tags
$rainfall
    private
        Simplex
    $rainfall
    
    
    
    
$temperature
    private
        Simplex
    $temperature
    
    
    
    
Methods
__construct()
    public
                    __construct(Random $random) : mixed
        
        Parameters
- $random : Random
Return values
mixed —getRainfall()
    public
                    getRainfall(float $x, float $z) : float
        
        Parameters
- $x : float
- $z : float
Return values
float —getTemperature()
    public
                    getTemperature(float $x, float $z) : float
        
        Parameters
- $x : float
- $z : float
Return values
float —pickBiome()
    public
                    pickBiome(float $x, float $z) : Biome
        
        Parameters
- $x : float
- $z : float
Return values
Biome —recalculate()
    public
                    recalculate() : void
        
    
    
        Return values
void —lookup()
Lookup function called by recalculate() to determine the biome to use for this temperature and rainfall.
    protected
    abstract                lookup(float $temperature, float $rainfall) : int
    
        Parameters
- $temperature : float
- $rainfall : float
Return values
int —biome ID 0-255