GradientFunction 5.46.0
Extends DensityFunction
"minecraft:gradient": clamped linear ramp along one axis between two coordinates, optionally repeating.
Constants
AXIS_X
php
public const AXIS_X = 0AXIS_Y
php
public const AXIS_Y = 1AXIS_Z
php
public const AXIS_Z = 2TILING_CLAMP
php
public const TILING_CLAMP = 0TILING_MIRRORED
php
public const TILING_MIRRORED = 2TILING_REPEAT
php
public const TILING_REPEAT = 1Properties
$axis
php
public readonly int $axis$fromCoordinate
php
public readonly int $fromCoordinate$fromValue
php
public readonly float $fromValue$tiling
php
public readonly int $tiling$toCoordinate
php
public readonly int $toCoordinate$toValue
php
public readonly float $toValueMethods
__construct()
php
public function __construct(int $axis, int $tiling, int $fromCoordinate, int $toCoordinate, float $fromValue, float $toValue)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : floatdependsOnY()
php
public function dependsOnY() : bool