Skip to content

IntProvider 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\IntProvider · source

A parsed vanilla IntProvider: the sampler and its value range.

Properties ​

$max ​

php
public readonly int $max

$min ​

php
public readonly int $min

$sample ​

php
public readonly \Closure $sample

Methods ​

__construct() ​

php
public function __construct(\Closure $sample, int $min, int $max)

constant() ​

php
public static function constant(int $value) : self

sample() ​

php
public function sample(\pocketmine\world\generator\vanilla\feature\FeatureRandom $random) : int

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.