Skip to content

EndSpike 5.46.0 ​

final class · pocketmine\world\generator\vanilla\EndSpike · source

One obsidian spike of the End (see EndSpikes): its centre column, radius and height (the y of the block the End crystal's bedrock sits on). Guarded spikes have an iron bar cage around the crystal.

Properties ​

$centerX ​

php
public readonly int $centerX

$centerZ ​

php
public readonly int $centerZ

$guarded ​

php
public readonly bool $guarded

$height ​

php
public readonly int $height

$radius ​

php
public readonly int $radius

Methods ​

__construct() ​

php
public function __construct(int $centerX, int $centerZ, int $radius, int $height, bool $guarded)

isCenterWithinChunk() ​

php
public function isCenterWithinChunk(int $chunkX, int $chunkZ) : bool

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