Skip to content

StructurePlaceSettings 5.47.0 ​

final class · pocketmine\world\structure\StructurePlaceSettings · source

How a structure template is loaded into a world (the load settings of a structure block).

Constants ​

ANIMATION_BY_BLOCK ​

php
public const ANIMATION_BY_BLOCK = 2

ANIMATION_BY_LAYER ​

php
public const ANIMATION_BY_LAYER = 1

ANIMATION_NONE ​

php
public const ANIMATION_NONE = 0

Properties ​

$animationMode ​

php
public readonly int $animationMode

$animationSeconds ​

php
public readonly float $animationSeconds

$includeBlocks ​

php
public readonly bool $includeBlocks

$includeEntities ​

php
public readonly bool $includeEntities

$integrity ​

php
public readonly float $integrity

$mirror ​

php
public readonly \pocketmine\world\structure\StructureMirror $mirror

$rotation ​

php
public readonly \pocketmine\world\structure\StructureRotation $rotation

$seed ​

php
public readonly int $seed

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\structure\StructureMirror $mirror = \pocketmine\world\structure\StructureMirror::NONE, \pocketmine\world\structure\StructureRotation $rotation = \pocketmine\world\structure\StructureRotation::NONE, bool $includeEntities = true, bool $includeBlocks = true, float $integrity = 100.0, int $seed = 0, int $animationMode = self::ANIMATION_NONE, float $animati …

isAnimated() ​

php
public function isAnimated() : bool

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.