PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\tile\Sign Class Reference
+ Inheritance diagram for pocketmine\tile\Sign:
+ Collaboration diagram for pocketmine\tile\Sign:

Public Member Functions

 __construct (FullChunk $chunk, Compound $nbt)
 
 saveNBT ()
 
 setText ($line1="", $line2="", $line3="", $line4="")
 
 getText ()
 
 getSpawnCompound ()
 
 spawnTo (Player $player)
 
 spawnToAll ()
 
 getSaveId ()
 
 getId ()
 
 getBlock ()
 
 onUpdate ()
 
 scheduleUpdate ()
 
 close ()
 
 getName ()
 
 getLevel ()
 
 setLevel (Level $level)
 
 isValid ()
 
 setStrong ()
 
 setWeak ()
 
 getSide ($side, $step=1)
 
 __toString ()
 
 setComponents ($x, $y, $z)
 
 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 ()
 
 distance (Vector3 $pos)
 
 distanceSquared (Vector3 $pos)
 
 maxPlainDistance ($x=0, $z=0)
 
 length ()
 
 lengthSquared ()
 
 normalize ()
 
 dot (Vector3 $v)
 
 cross (Vector3 $v)
 
 getIntermediateWithXValue (Vector3 $v, $x)
 
 getIntermediateWithYValue (Vector3 $v, $y)
 
 getIntermediateWithZValue (Vector3 $v, $z)
 

Static Public Member Functions

static createTile ($type, FullChunk $chunk, Compound $nbt,...$args)
 
static registerTile ($className)
 
static fromObject (Vector3 $pos, Level $level=null)
 
static getOppositeSide ($side)
 

Public Attributes

const SIGN = "Sign"
 
const CHEST = "Chest"
 
const FURNACE = "Furnace"
 
 $chunk
 
 $name
 
 $id
 
 $x
 
 $y
 
 $z
 
 $attach
 
 $metadata
 
 $closed = false
 
 $namedtag
 
 $tickTimer
 
 $level = null
 
const SIDE_DOWN = 0
 
const SIDE_UP = 1
 
const SIDE_NORTH = 2
 
const SIDE_SOUTH = 3
 
const SIDE_WEST = 4
 
const SIDE_EAST = 5
 

Static Public Attributes

static $tileCount = 1
 

Protected Attributes

 $lastUpdate
 
 $server
 
 $timings
 

Detailed Description

Definition at line 29 of file tile/Sign.php.

Member Function Documentation

pocketmine\math\Vector3::add (   $x,
  $y = 0,
  $z = 0 
)
inherited
Parameters
Vector3 | int$x
int$y
int$z
Returns
Vector3

Definition at line 94 of file Vector3.php.

Referenced by pocketmine\math\Vector3\subtract(), and pocketmine\level\Level\useBreakOn().

+ Here is the caller graph for this function:

static pocketmine\tile\Tile::createTile (   $type,
FullChunk  $chunk,
Compound  $nbt,
  $args 
)
staticinherited
Parameters
string$type
FullChunk$chunk
Compound$nbt
$args
Returns
Tile

Definition at line 74 of file Tile.php.

Referenced by pocketmine\level\Level\useItemOn().

+ Here is the caller graph for this function:

pocketmine\tile\Tile::getBlock ( )
inherited
Returns

Definition at line 145 of file Tile.php.

pocketmine\math\Vector3::getIntermediateWithXValue ( Vector3  $v,
  $x 
)
inherited

Returns a new vector with x value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$x
Returns
Vector3

Definition at line 241 of file Vector3.php.

pocketmine\math\Vector3::getIntermediateWithYValue ( Vector3  $v,
  $y 
)
inherited

Returns a new vector with y value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$y
Returns
Vector3

Definition at line 268 of file Vector3.php.

pocketmine\math\Vector3::getIntermediateWithZValue ( Vector3  $v,
  $z 
)
inherited

Returns a new vector with z value equal to the second parameter, along the line between this vector and the passed in vector, or null if not possible.

Parameters
Vector3$v
float$z
Returns
Vector3

Definition at line 295 of file Vector3.php.

pocketmine\tile\Tile::getSaveId ( )
inherited

Returns the short save name

Returns
string

Definition at line 104 of file Tile.php.

pocketmine\level\Position::getSide (   $side,
  $step = 1 
)
inherited

Returns a side Vector

Parameters
int$side
int$step
Returns
Position
Exceptions
LevelException

Definition at line 104 of file Position.php.

References pocketmine\level\Position\isValid().

+ Here is the call graph for this function:

pocketmine\level\Position::isValid ( )
inherited

Checks if this object has a valid reference to a Level

Returns
bool

Definition at line 66 of file Position.php.

Referenced by pocketmine\level\Position\getSide(), and pocketmine\block\Block\getSide().

+ Here is the caller graph for this function:

pocketmine\math\Vector3::normalize ( )
inherited
Returns
Vector3

Definition at line 211 of file Vector3.php.

static pocketmine\tile\Tile::registerTile (   $className)
staticinherited
Parameters
$className
Returns
bool

Definition at line 88 of file Tile.php.

pocketmine\level\Position::setComponents (   $x,
  $y,
  $z 
)
inherited
Parameters
$x
$y
$z
Returns
Position

Definition at line 123 of file Position.php.

pocketmine\level\Position::setStrong ( )
inherited

Marks the level reference as strong so it won't be collected by the garbage collector.

Deprecated:
Returns
bool

Definition at line 78 of file Position.php.

pocketmine\level\Position::setWeak ( )
inherited

Marks the level reference as weak so it won't have effect against the garbage collector decision.

Deprecated:
Returns
bool

Definition at line 90 of file Position.php.

pocketmine\math\Vector3::subtract (   $x = 0,
  $y = 0,
  $z = 0 
)
inherited
Parameters
Vector3 | int$x
int$y
int$z
Returns
Vector3

Definition at line 109 of file Vector3.php.

References pocketmine\math\Vector3\add().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: