|
| __construct (Level $level, CompoundTag $nbt) |
|
| setType (int $type) |
|
| getType () |
|
| saveNBT () |
|
| getSpawnCompound () |
|
| spawnTo (Player $player) |
|
| __construct (Level $level, CompoundTag $nbt) |
|
| spawnToAll () |
|
| getSpawnCompound () |
|
| updateCompoundTag (CompoundTag $nbt, Player $player) |
|
| getSaveId () |
|
| __construct (Level $level, CompoundTag $nbt) |
|
| getId () |
|
| saveNBT () |
|
| getBlock () |
|
| onUpdate () |
|
| scheduleUpdate () |
|
| __destruct () |
|
| close () |
|
| getName () |
|
| __construct ($x=0, $y=0, $z=0, Level $level=null) |
|
| asPosition () |
|
| add ($x, $y=0, $z=0) |
|
| getLevel () |
|
| setLevel (Level $level=null) |
|
| isValid () |
|
| getSide ($side, $step=1) |
|
| __toString () |
|
| setComponents ($x, $y, $z) |
|
| fromObjectAdd (Vector3 $pos, $x, $y, $z) |
|
| __construct ($x=0, $y=0, $z=0) |
|
| getX () |
|
| getY () |
|
| getZ () |
|
| getFloorX () |
|
| getFloorY () |
|
| getFloorZ () |
|
| getRight () |
|
| getUp () |
|
| getForward () |
|
| getSouth () |
|
| getWest () |
|
| add ($x, $y=0, $z=0) |
|
| subtract ($x=0, $y=0, $z=0) |
|
| multiply ($number) |
|
| divide ($number) |
|
| ceil () |
|
| floor () |
|
| round () |
|
| abs () |
|
| getSide ($side, $step=1) |
|
| asVector3 () |
|
| distance (Vector3 $pos) |
|
| distanceSquared (Vector3 $pos) |
|
| maxPlainDistance ($x=0, $z=0) |
|
| length () |
|
| lengthSquared () |
|
| normalize () |
|
| dot (Vector3 $v) |
|
| cross (Vector3 $v) |
|
| equals (Vector3 $v) |
|
| getIntermediateWithXValue (Vector3 $v, $x) |
|
| getIntermediateWithYValue (Vector3 $v, $y) |
|
| getIntermediateWithZValue (Vector3 $v, $z) |
|
| setComponents ($x, $y, $z) |
|
| fromObjectAdd (Vector3 $pos, $x, $y, $z) |
|
| __toString () |
|
◆ __construct()
Skull constructor.
- Parameters
-
Level | $level | |
CompoundTag | $nbt | |
46 if(!isset($nbt->SkullType)){
47 $nbt->SkullType =
new ByteTag(
"SkullType", 0);
49 if(!isset($nbt->Rot) or !($nbt->Rot instanceof
ByteTag)){
50 $nbt->Rot =
new ByteTag(
"Rot", 0);
52 parent::__construct(
$level, $nbt);
◆ getSpawnCompound()
- Returns
- CompoundTag
87 $this->namedtag->SkullType,
89 new IntTag(
"x", (
int) $this->x),
90 new IntTag(
"y", (
int) $this->y),
91 new IntTag(
"z", (
int) $this->z),
◆ getType()
- Returns
- null
73 return $this->namedtag[
"SkullType"];
◆ saveNBT()
78 unset($this->namedtag->Creator);
◆ setType()
- Parameters
-
- Returns
- bool
61 if($type >= 0 && $type <= 4){
62 $this->namedtag->SkullType =
new ByteTag(
"SkullType", $type);
◆ TYPE_CREEPER
◆ TYPE_DRAGON
◆ TYPE_HUMAN
◆ TYPE_SKELETON
◆ TYPE_WITHER
◆ TYPE_ZOMBIE
The documentation for this class was generated from the following file:
- src/pocketmine/tile/Skull.php