mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Switched gamemode handler to Player object
This commit is contained in:
parent
4aa0f8f8d1
commit
d2dcf4f43a
10 changed files with 33 additions and 18 deletions
|
|
@ -138,7 +138,7 @@ abstract class Block{
|
|||
protected $shortname = "";
|
||||
protected $name = "";
|
||||
public $isActivable = false;
|
||||
public $isBreakable = true;
|
||||
public $breakable = true;
|
||||
public $isFlowable = false;
|
||||
public $isTransparent = false;
|
||||
public $isReplaceable = false;
|
||||
|
|
@ -186,6 +186,8 @@ abstract class Block{
|
|||
}
|
||||
}
|
||||
|
||||
abstract function isBreakable(Item $item, Player $player);
|
||||
|
||||
abstract function onBreak(BlockAPI $level, Item $item, Player $player);
|
||||
|
||||
abstract function place(BlockAPI $level, Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue