EndCrystal
Extends Entity
Implements Explosive
End crystal. Any hit destroys it, whatever its damage (melee, any projectile that hurts entities, even snowballs and eggs, explosions, which chain into other crystals): it explodes with power 6, without fire. Like vanilla it ignores damage from the ender dragon (and its fireballs), and splash potions / bottles o' enchanting don't break it. Invulnerable crystals (the ones rebuilt on the pillars while the dragon is being respawned) only die in the void.
Constants
EXPLOSION_POWER 5.46.0
public const EXPLOSION_POWER = 6.0Power of the explosion of a destroyed crystal.
Properties
$beamTarget protected
protected ?\pocketmine\math\Vector3 $beamTarget$invulnerable 5.46.0 protected
protected bool $invulnerable$showBase protected
protected bool $showBaseMethods
attack()
public function attack(\pocketmine\event\entity\EntityDamageEvent $source) : voidexplode()
public function explode() : voidgetBeamTarget()
public function getBeamTarget() : ?\pocketmine\math\Vector3getInitialDragMultiplier() protected
protected function getInitialDragMultiplier() : floatgetInitialGravity() protected
protected function getInitialGravity() : floatgetInitialSizeInfo() protected
protected function getInitialSizeInfo() : \pocketmine\entity\EntitySizeInfogetNetworkTypeId()
public static function getNetworkTypeId() : stringgetPickedItem()
public function getPickedItem() : ?\pocketmine\item\ItemignoresDamage() 5.46.0 protected
protected function ignoresDamage(\pocketmine\event\entity\EntityDamageEvent $source) : boolReturns whether this damage leaves the crystal untouched: invulnerable crystals, the ender dragon (vanilla crystals ignore any damage the dragon causes) and thrown potions / experience bottles (they don't hurt what they hit).
initEntity() protected
protected function initEntity(\pocketmine\nbt\tag\CompoundTag $nbt) : voidisFireProof()
public function isFireProof() : boolisInvulnerable() 5.46.0
public function isInvulnerable() : boolWhether the crystal ignores all damage except the void's (vanilla "permanently invulnerable").
onDeathUpdate() protected
protected function onDeathUpdate(int $tickDiff) : boolsaveNBT()
public function saveNBT() : \pocketmine\nbt\tag\CompoundTagsetBeamTarget()
public function setBeamTarget(?\pocketmine\math\Vector3 $beamTarget) : voidSets the block the crystal's beam points at (shown by clients), or null for no beam.
setInvulnerable() 5.46.0
public function setInvulnerable(bool $invulnerable) : voidsetShowBase()
public function setShowBase(bool $showBase) : voidshowBase()
public function showBase() : boolsyncNetworkData() protected
protected function syncNetworkData(\pocketmine\network\mcpe\protocol\types\entity\EntityMetadataCollection $properties) : void