Skip to content

SliceFunction 5.46.0 ​

final class · pocketmine\world\generator\vanilla\density\SliceFunction · source

Extends DensityFunction

"minecraft:slice": evaluates the input with one coordinate fixed (e.g. y = 0 for a horizontal shape).

Constants ​

AXIS_X ​

php
public const AXIS_X = 0

AXIS_Y ​

php
public const AXIS_Y = 1

AXIS_Z ​

php
public const AXIS_Z = 2

Properties ​

$axis ​

php
public readonly int $axis

$coordinate ​

php
public readonly int $coordinate

$input ​

php
public readonly \pocketmine\world\generator\vanilla\density\DensityFunction $input

Methods ​

__construct() ​

php
public function __construct(int $axis, int $coordinate, \pocketmine\world\generator\vanilla\density\DensityFunction $input)

children() ​

php
public function children() : array

compute() ​

php
public function compute(float $x, float $y, float $z) : float

dependsOnY() ​

php
public function dependsOnY() : bool

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