Method |
Description |
|
__construct ( integer $id, integer $meta ) |
|
|
__toString ( ) : string |
|
|
activate ( ) |
|
|
addVelocityToEntity ( Entity $entity, Vector3 $vector ) |
|
|
calculateIntercept ( Vector3 $pos1, Vector3 $pos2 ) : MovingObjectPosition |
|
|
canBeActivated ( ) : boolean |
AKA: Block->isActivable |
|
canBeBrokenWith ( Item $item ) |
|
|
canBeFlowedInto ( ) : boolean |
AKA: Block->isFlowable |
|
canBePlaced ( ) : boolean |
AKA: Block->isPlaceable |
|
canBeReplaced ( ) : boolean |
AKA: Block->canBeReplaced() |
|
canNeighborBurn ( ) |
|
|
canPassThrough ( ) |
|
|
collidesWithBB ( AxisAlignedBB $bb ) : boolean |
Checks for collision against an AxisAlignedBB |
|
deactivate ( ) |
|
|
get ( integer $id, integer $meta, Position $pos = null ) : Block |
|
|
getBoundingBox ( ) : AxisAlignedBB |
|
|
getBreakTime ( Item $item ) : float |
Returns the seconds that this block takes to be broken using an specific Item |
|
getBurnAbility ( ) : integer |
|
|
getBurnChance ( ) : integer |
|
|
getDamage ( ) : integer |
|
|
getDrops ( Item $item ) : array |
Returns an array of Item objects to be dropped |
|
getFrictionFactor ( ) : float |
|
|
getHardness ( ) : integer |
|
|
getId ( ) : integer |
|
|
getLightLevel ( ) : integer |
|
|
getMetadata ( $metadataKey ) |
|
|
getName ( ) : string |
|
|
getResistance ( ) : integer |
|
|
getSide ( integer $side, integer $step = 1 ) : Block |
Returns the Block on the side $side, works like Vector3::side() |
|
getToolType ( ) : integer |
|
|
hasEntityCollision ( ) |
|
|
hasMetadata ( $metadataKey ) |
|
|
init ( ) |
|
|
isActivated ( Block $from = null ) |
|
|
isBreakable ( Item $item ) : boolean |
Returns if the item can be broken with an specific Item |
|
isPlaceable ( ) |
|
|
isSolid ( ) |
|
|
isTopFacingSurfaceSolid ( ) |
|
|
isTransparent ( ) : boolean |
|
|
onActivate ( Item $item, Player $player = null ) : boolean |
Do actions when activated by Item. Returns if it has done anything |
|
onBreak ( Item $item ) : mixed |
Do the actions needed so the block is broken with the Item |
|
onEntityCollide ( Entity $entity ) |
|
|
onUpdate ( integer $type ) : void |
Fires a block update on the Block |
|
place ( Item $item, Block $block, Block $target, integer $face, float $fx, float $fy, float $fz, Player $player = null ) : boolean |
Places the Block, using block space and block target, and side. Returns if the block has been placed. |
|
position ( Position $v ) |
Sets the block position to a new Position object |
|
removeMetadata ( $metadataKey, pocketmine\plugin\Plugin $plugin ) |
|
|
setDamage ( integer $meta ) |
|
|
setMetadata ( $metadataKey, MetadataValue $metadataValue ) |
|
|
tickRate ( ) : integer |
|
|