Block.xp

Get the amount of dropped xp when the block is broken

class Block
uint
xp

Parameters

world World

the world where the block has been broken

player Player

the player who broke the block, can be null (e.g. explosion, fire...)

item Item

item used to break the block, is null if player is null or the player broke the block with his hand

Return Value

Type: uint

an integer, indicating the amount of xp that will be spawned

Meta