mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Revert "Revert "Roll back""
This reverts commit e1e804ffe35f9e6c6411b8ed6425af3f8e72f608.
This commit is contained in:
parent
e1e804ffe3
commit
a21bb5ab6d
@ -5,10 +5,9 @@ php:
|
|||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- pecl install channel://pecl.php.net/pthreads-0.0.44
|
- pecl install channel://pecl.php.net/pthreads-0.0.44
|
||||||
- git clone --depth=100 --quiet --branch=tests git://github.com/PocketMine/PocketMine-MP.git $(pwd)/tests/
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit tests/
|
- phpunit src/tests/
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ The entire server is done in PHP, and has been tested, profiled and optimized to
|
|||||||
|
|
||||||
### [Twitter @PocketMine](https://twitter.com/PocketMine)
|
### [Twitter @PocketMine](https://twitter.com/PocketMine)
|
||||||
|
|
||||||
## IRC #pocketmine @ irc.freenode.net
|
## IRC #pocketmine (or #mcpedevs) @ irc.freenode.net
|
||||||
* [WebIRC](http://webchat.freenode.net?channels=pocketmine,mcpedevs&uio=d4)
|
* [WebIRC](http://webchat.freenode.net?channels=pocketmine,mcpedevs&uio=d4)
|
||||||
|
|
||||||
|
|
||||||
@ -42,7 +42,6 @@ The entire server is done in PHP, and has been tested, profiled and optimized to
|
|||||||
* __[PHP SQLite3](http://php.net/manual/en/book.sqlite3.php)__
|
* __[PHP SQLite3](http://php.net/manual/en/book.sqlite3.php)__
|
||||||
* __[PHP BCMath](http://php.net/manual/en/book.bc.php)__
|
* __[PHP BCMath](http://php.net/manual/en/book.bc.php)__
|
||||||
* __[PHP pthreads](https://github.com/krakjoe/pthreads)__ by _[krakjoe](https://github.com/krakjoe)_: Threading for PHP - Share Nothing, Do Everything.
|
* __[PHP pthreads](https://github.com/krakjoe/pthreads)__ by _[krakjoe](https://github.com/krakjoe)_: Threading for PHP - Share Nothing, Do Everything.
|
||||||
* __[PHP NBT](https://github.com/TheFrozenFire/PHP-NBT-Decoder-Encoder/blob/master/nbt.class.php)__ by _[TheFrozenFire](https://github.com/TheFrozenFire)_: Class for reading in NBT-format files (modified to handle Little-Endian files).
|
|
||||||
* __[Spyc](https://github.com/mustangostang/spyc/blob/master/Spyc.php)__ by _[Vlad Andersen](https://github.com/mustangostang)_: A simple YAML loader/dumper class for PHP.
|
* __[Spyc](https://github.com/mustangostang/spyc/blob/master/Spyc.php)__ by _[Vlad Andersen](https://github.com/mustangostang)_: A simple YAML loader/dumper class for PHP.
|
||||||
* __[ANSICON](https://github.com/adoxa/ansicon)__ by _[Jason Hood](https://github.com/adoxa)_: Process ANSI escape sequences for Windows console programs.
|
* __[ANSICON](https://github.com/adoxa/ansicon)__ by _[Jason Hood](https://github.com/adoxa)_: Process ANSI escape sequences for Windows console programs.
|
||||||
* __[cURL](http://curl.haxx.se/)__: cURL is a command line tool for transferring data with URL syntax
|
* __[cURL](http://curl.haxx.se/)__: cURL is a command line tool for transferring data with URL syntax
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BanAPI{
|
class BanAPI{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BlockAPI{
|
class BlockAPI{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ChatAPI{
|
class ChatAPI{
|
||||||
@ -103,18 +97,27 @@ class ChatAPI{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function send($owner, $text, $whitelist = false, $blacklist = false){
|
public function send($owner, $text, $whitelist = false, $blacklist = false){
|
||||||
$message = "";
|
$message = array(
|
||||||
|
"player" => $owner,
|
||||||
|
"message" => $text,
|
||||||
|
);
|
||||||
if($owner !== false){
|
if($owner !== false){
|
||||||
if($owner instanceof Player){
|
if($owner instanceof Player){
|
||||||
$message = "<".$owner->username."> ";
|
|
||||||
}else{
|
|
||||||
$message = "<".$owner."> ";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$message .= $text;
|
|
||||||
if($whitelist === false){
|
if($whitelist === false){
|
||||||
console("[INFO] ".$message);
|
console("[INFO] <".$owner->username."> ".$text);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
if($whitelist === false){
|
||||||
|
console("[INFO] <".$owner."> ".$text);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if($whitelist === false){
|
||||||
|
console("[INFO] $text");
|
||||||
|
}
|
||||||
|
$message["player"] = "";
|
||||||
|
}
|
||||||
|
|
||||||
$this->server->handle("server.chat", new Container($message, $whitelist, $blacklist));
|
$this->server->handle("server.chat", new Container($message, $whitelist, $blacklist));
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ConsoleAPI{
|
class ConsoleAPI{
|
||||||
@ -37,7 +31,9 @@ class ConsoleAPI{
|
|||||||
|
|
||||||
public function init(){
|
public function init(){
|
||||||
$this->server->schedule(2, array($this, "handle"), array(), true);
|
$this->server->schedule(2, array($this, "handle"), array(), true);
|
||||||
|
if(!defined("NO_THREADS")){
|
||||||
$this->loop = new ConsoleLoop();
|
$this->loop = new ConsoleLoop();
|
||||||
|
}
|
||||||
$this->register("help", "[page|command name]", array($this, "defaultCommands"));
|
$this->register("help", "[page|command name]", array($this, "defaultCommands"));
|
||||||
$this->register("status", "", array($this, "defaultCommands"));
|
$this->register("status", "", array($this, "defaultCommands"));
|
||||||
$this->register("difficulty", "<0|1|2|3>", array($this, "defaultCommands"));
|
$this->register("difficulty", "<0|1|2|3>", array($this, "defaultCommands"));
|
||||||
@ -48,10 +44,12 @@ class ConsoleAPI{
|
|||||||
|
|
||||||
function __destruct(){
|
function __destruct(){
|
||||||
$this->server->deleteEvent($this->event);
|
$this->server->deleteEvent($this->event);
|
||||||
|
if(!defined("NO_THREADS")){
|
||||||
$this->loop->stop();
|
$this->loop->stop();
|
||||||
$this->loop->notify();
|
$this->loop->notify();
|
||||||
//$this->loop->join();
|
//$this->loop->join();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function defaultCommands($cmd, $params, $issuer, $alias){
|
public function defaultCommands($cmd, $params, $issuer, $alias){
|
||||||
$output = "";
|
$output = "";
|
||||||
@ -254,6 +252,9 @@ class ConsoleAPI{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function handle($time){
|
public function handle($time){
|
||||||
|
if(defined("NO_THREADS")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if($this->loop->line !== false){
|
if($this->loop->line !== false){
|
||||||
$line = trim($this->loop->line);
|
$line = trim($this->loop->line);
|
||||||
$this->loop->line = false;
|
$this->loop->line = false;
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class EntityAPI{
|
class EntityAPI{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LevelAPI{
|
class LevelAPI{
|
||||||
@ -53,7 +47,7 @@ class LevelAPI{
|
|||||||
$this->generateLevel($this->default, $this->server->seed);
|
$this->generateLevel($this->default, $this->server->seed);
|
||||||
$this->loadLevel($this->default);
|
$this->loadLevel($this->default);
|
||||||
}
|
}
|
||||||
$this->server->spawn = $this->getDefault()->getSpawn();
|
$this->server->spawn = $this->getDefault()->getSafeSpawn();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function commandHandler($cmd, $params, $issuer, $alias){
|
public function commandHandler($cmd, $params, $issuer, $alias){
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class MobAPI{
|
class MobAPI{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PlayerAPI{
|
class PlayerAPI{
|
||||||
@ -269,7 +263,7 @@ class PlayerAPI{
|
|||||||
$origin = $this->get($name);
|
$origin = $this->get($name);
|
||||||
if($origin instanceof Player){
|
if($origin instanceof Player){
|
||||||
$name = $origin->username;
|
$name = $origin->username;
|
||||||
return $origin->teleport($lv->getSpawn());
|
return $origin->teleport($lv->getSafeSpawn());
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PluginAPI extends stdClass{
|
class PluginAPI extends stdClass{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ServerAPI{
|
class ServerAPI{
|
||||||
@ -287,7 +281,7 @@ class ServerAPI{
|
|||||||
if($this->getProperty("auto-save") === true){
|
if($this->getProperty("auto-save") === true){
|
||||||
$this->server->schedule(18000, array($this, "autoSave"), array(), true);
|
$this->server->schedule(18000, array($this, "autoSave"), array(), true);
|
||||||
}
|
}
|
||||||
if($this->getProperty("enable-rcon") === true){
|
if(!defined("NO_THREADS") and $this->getProperty("enable-rcon") === true){
|
||||||
$this->rcon = new RCON($this->getProperty("rcon.password", ""), $this->getProperty("rcon.port", $this->getProperty("server-port")), ($ip = $this->getProperty("server-ip")) != "" ? $ip:"0.0.0.0", $this->getProperty("rcon.threads", 1), $this->getProperty("rcon.clients-per-thread", 50));
|
$this->rcon = new RCON($this->getProperty("rcon.password", ""), $this->getProperty("rcon.port", $this->getProperty("server-port")), ($ip = $this->getProperty("server-ip")) != "" ? $ip:"0.0.0.0", $this->getProperty("rcon.threads", 1), $this->getProperty("rcon.clients-per-thread", 50));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TileAPI{
|
class TileAPI{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TimeAPI{
|
class TimeAPI{
|
||||||
|
40
src/Data.php
40
src/Data.php
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BlockFace{
|
class BlockFace{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
193
src/Player.php
193
src/Player.php
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -71,6 +65,7 @@ class Player{
|
|||||||
private $lagStat = 0;
|
private $lagStat = 0;
|
||||||
private $spawnPosition;
|
private $spawnPosition;
|
||||||
private $packetLoss = 0;
|
private $packetLoss = 0;
|
||||||
|
private $lastChunk = false;
|
||||||
public $lastCorrect;
|
public $lastCorrect;
|
||||||
private $bigCnt;
|
private $bigCnt;
|
||||||
private $packetStats;
|
private $packetStats;
|
||||||
@ -165,6 +160,19 @@ class Player{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(is_array($this->lastChunk)){
|
||||||
|
$tiles = $this->server->query("SELECT ID FROM tiles WHERE spawnable = 1 AND level = '".$this->level->getName()."' AND x >= ".($this->lastChunk[0] - 1)." AND x < ".($this->lastChunk[0] + 17)." AND z >= ".($this->lastChunk[1] - 1)." AND z < ".($this->lastChunk[1] + 17).";");
|
||||||
|
$this->lastChunk = false;
|
||||||
|
if($tiles !== false and $tiles !== true){
|
||||||
|
while(($tile = $tiles->fetchArray(SQLITE3_ASSOC)) !== false){
|
||||||
|
$tile = $this->server->api->tile->getByID($tile["ID"]);
|
||||||
|
if($tile instanceof Tile){
|
||||||
|
$tile->spawn($this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$c = key($this->chunksOrder);
|
$c = key($this->chunksOrder);
|
||||||
$d = @$this->chunksOrder[$c];
|
$d = @$this->chunksOrder[$c];
|
||||||
if($c === null or $d > $this->server->api->getProperty("view-distance")){
|
if($c === null or $d > $this->server->api->getProperty("view-distance")){
|
||||||
@ -198,21 +206,8 @@ class Player{
|
|||||||
foreach($cnt as $i => $count){
|
foreach($cnt as $i => $count){
|
||||||
$this->chunkCount[$count] = true;
|
$this->chunkCount[$count] = true;
|
||||||
}
|
}
|
||||||
/*$this->chunkCount = $this->dataPacket(MC_CHUNK_DATA, array(
|
|
||||||
"x" => $X,
|
|
||||||
"z" => $Z,
|
|
||||||
"data" => $this->level->getOrderedMiniChunk($X, $Z, $Y),
|
|
||||||
));*/
|
|
||||||
|
|
||||||
$tiles = $this->server->query("SELECT ID FROM tiles WHERE spawnable = 1 AND level = '".$this->level->getName()."' AND x >= ".($x - 1)." AND x < ".($x + 17)." AND z >= ".($z - 1)." AND z < ".($z + 17).";");
|
$this->lastChunk = array($x, $z);
|
||||||
if($tiles !== false and $tiles !== true){
|
|
||||||
while(($tile = $tiles->fetchArray(SQLITE3_ASSOC)) !== false){
|
|
||||||
$tile = $this->server->api->tile->getByID($tile["ID"]);
|
|
||||||
if($tile instanceof Tile){
|
|
||||||
$tile->spawn($this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->server->schedule(MAX_CHUNK_RATE, array($this, "getNextChunk"));
|
$this->server->schedule(MAX_CHUNK_RATE, array($this, "getNextChunk"));
|
||||||
}
|
}
|
||||||
@ -462,8 +457,6 @@ class Player{
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}elseif($data->class === TILE_SIGN){
|
|
||||||
$data->spawn($this);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -473,7 +466,7 @@ class Player{
|
|||||||
if($w === $data["tile"]){
|
if($w === $data["tile"]){
|
||||||
$this->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
$this->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
||||||
"windowid" => $id,
|
"windowid" => $id,
|
||||||
"slot" => $data["slot"],
|
"slot" => $data["slot"] + (isset($data["offset"]) ? $data["offset"]:0),
|
||||||
"block" => $data["slotdata"]->getID(),
|
"block" => $data["slotdata"]->getID(),
|
||||||
"stack" => $data["slotdata"]->count,
|
"stack" => $data["slotdata"]->count,
|
||||||
"meta" => $data["slotdata"]->getMetadata(),
|
"meta" => $data["slotdata"]->getMetadata(),
|
||||||
@ -562,16 +555,17 @@ class Player{
|
|||||||
return;
|
return;
|
||||||
}else{
|
}else{
|
||||||
$message = $data->get();
|
$message = $data->get();
|
||||||
|
$this->sendChat(preg_replace('/\x1b\[[0-9;]*m/', "", $message["message"]), $message["player"]); //Remove ANSI codes from chat
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
$message = (string) $data;
|
$message = (string) $data;
|
||||||
|
$this->sendChat(preg_replace('/\x1b\[[0-9;]*m/', "", (string) $data)); //Remove ANSI codes from chat
|
||||||
}
|
}
|
||||||
$this->sendChat(preg_replace('/\x1b\[[0-9;]*m/', "", $message)); //Remove ANSI codes from chat
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendChat($message){
|
public function sendChat($message, $author = ""){
|
||||||
$mes = explode("\n", $message);
|
$mes = explode("\n", $message);
|
||||||
foreach($mes as $m){
|
foreach($mes as $m){
|
||||||
if(preg_match_all('#@([@A-Za-z_]{1,})#', $m, $matches, PREG_OFFSET_CAPTURE) > 0){
|
if(preg_match_all('#@([@A-Za-z_]{1,})#', $m, $matches, PREG_OFFSET_CAPTURE) > 0){
|
||||||
@ -594,6 +588,7 @@ class Player{
|
|||||||
|
|
||||||
if($m !== ""){
|
if($m !== ""){
|
||||||
$this->dataPacket(MC_CHAT, array(
|
$this->dataPacket(MC_CHAT, array(
|
||||||
|
"player" => ($author instanceof Player) ? $author->username:$author,
|
||||||
"message" => $m,
|
"message" => $m,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -900,6 +895,9 @@ class Player{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function clearQueue(){
|
public function clearQueue(){
|
||||||
|
if($this->connected === false){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
ksort($this->received);
|
ksort($this->received);
|
||||||
if(($cnt = count($this->received)) > PLAYER_MAX_QUEUE){
|
if(($cnt = count($this->received)) > PLAYER_MAX_QUEUE){
|
||||||
foreach($this->received as $c => $t){
|
foreach($this->received as $c => $t){
|
||||||
@ -1183,7 +1181,7 @@ class Player{
|
|||||||
"x" => $this->data->get("position")["x"],
|
"x" => $this->data->get("position")["x"],
|
||||||
"y" => $this->data->get("position")["y"],
|
"y" => $this->data->get("position")["y"],
|
||||||
"z" => $this->data->get("position")["z"],
|
"z" => $this->data->get("position")["z"],
|
||||||
"unknown1" => 0,
|
"generator" => 0,
|
||||||
"gamemode" => ($this->gamemode & 0x01),
|
"gamemode" => ($this->gamemode & 0x01),
|
||||||
"eid" => 0,
|
"eid" => 0,
|
||||||
));
|
));
|
||||||
@ -1627,29 +1625,14 @@ class Player{
|
|||||||
$this->entity->updateMetadata();
|
$this->entity->updateMetadata();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MC_SIGN_UPDATE:
|
|
||||||
if($this->spawned === false or $this->blocked === true){
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
$this->craftingItems = array();
|
|
||||||
$this->toCraft = array();
|
|
||||||
$t = $this->server->api->tile->get(new Position($data["x"], $data["y"], $data["z"], $this->level));
|
|
||||||
if(($t instanceof Tile) and $t->class === TILE_SIGN){
|
|
||||||
if($t->data["creator"] !== $this->username){
|
|
||||||
$t->spawn($this);
|
|
||||||
}else{
|
|
||||||
$t->setText($data["line0"], $data["line1"], $data["line2"], $data["line3"]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case MC_CHAT:
|
case MC_CHAT:
|
||||||
if($this->spawned === false){
|
if($this->spawned === false){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$this->craftingItems = array();
|
$this->craftingItems = array();
|
||||||
$this->toCraft = array();
|
$this->toCraft = array();
|
||||||
$message = preg_replace('#^<.*> #', "", $data["message"]);
|
if(trim($data["message"]) != "" and strlen($data["message"]) <= 255 and preg_match('#[^\\x20-\\xff]#', $data["message"]) == 0){
|
||||||
if(trim($data["message"]) != "" and strlen($data["message"]) <= 100 and preg_match('#[^\\x20-\\xff]#', $message) == 0){
|
$message = $data["message"];
|
||||||
if($message{0} === "/"){ //Command
|
if($message{0} === "/"){ //Command
|
||||||
$this->server->api->console->run(substr($message, 1), $this);
|
$this->server->api->console->run(substr($message, 1), $this);
|
||||||
}else{
|
}else{
|
||||||
@ -1665,7 +1648,19 @@ class Player{
|
|||||||
}
|
}
|
||||||
$this->craftingItems = array();
|
$this->craftingItems = array();
|
||||||
$this->toCraft = array();
|
$this->toCraft = array();
|
||||||
if(isset($this->windows[$data["windowid"]]) and $this->windows[$data["windowid"]]->class === TILE_CHEST){
|
if(isset($this->windows[$data["windowid"]])){
|
||||||
|
if(is_array($this->windows[$data["windowid"]])){
|
||||||
|
$all = $this->server->api->player->getAll($this->level);
|
||||||
|
foreach($this->windows[$data["windowid"]] as $ob){
|
||||||
|
$this->server->api->player->broadcastPacket($all, MC_TILE_EVENT, array(
|
||||||
|
"x" => $ob->x,
|
||||||
|
"y" => $ob->y,
|
||||||
|
"z" => $ob->z,
|
||||||
|
"case1" => 1,
|
||||||
|
"case2" => 0,
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}elseif($this->windows[$data["windowid"]]->class === TILE_CHEST){
|
||||||
$this->server->api->player->broadcastPacket($this->server->api->player->getAll($this->level), MC_TILE_EVENT, array(
|
$this->server->api->player->broadcastPacket($this->server->api->player->getAll($this->level), MC_TILE_EVENT, array(
|
||||||
"x" => $this->windows[$data["windowid"]]->x,
|
"x" => $this->windows[$data["windowid"]]->x,
|
||||||
"y" => $this->windows[$data["windowid"]]->y,
|
"y" => $this->windows[$data["windowid"]]->y,
|
||||||
@ -1674,6 +1669,7 @@ class Player{
|
|||||||
"case2" => 0,
|
"case2" => 0,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
unset($this->windows[$data["windowid"]]);
|
unset($this->windows[$data["windowid"]]);
|
||||||
|
|
||||||
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
$this->dataPacket(MC_CONTAINER_CLOSE, array(
|
||||||
@ -1739,15 +1735,63 @@ class Player{
|
|||||||
if(!isset($this->windows[$data["windowid"]])){
|
if(!isset($this->windows[$data["windowid"]])){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if(is_array($this->windows[$data["windowid"]])){
|
||||||
|
$tiles = $this->windows[$data["windowid"]];
|
||||||
|
if($data["slot"] > 0 and $data["slot"] < CHEST_SLOTS){
|
||||||
|
$tile = $tiles[0];
|
||||||
|
$slotn = $data["slot"];
|
||||||
|
$offset = 0;
|
||||||
|
}elseif($data["slot"] >= CHEST_SLOTS and $data["slot"] <= (CHEST_SLOTS << 1)){
|
||||||
|
$tile = $tiles[1];
|
||||||
|
$slotn = $data["slot"] - CHEST_SLOTS;
|
||||||
|
$offset = CHEST_SLOTS;
|
||||||
|
}else{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
$item = BlockAPI::getItem($data["block"], $data["meta"], $data["stack"]);
|
||||||
|
|
||||||
|
$slot = $tile->getSlot($slotn);
|
||||||
|
if($this->server->api->dhandle("player.container.slot", array(
|
||||||
|
"tile" => $tile,
|
||||||
|
"slot" => $data["slot"],
|
||||||
|
"offset" => $offset,
|
||||||
|
"slotdata" => $slot,
|
||||||
|
"itemdata" => $item,
|
||||||
|
"player" => $this,
|
||||||
|
)) === false){
|
||||||
|
$this->dataPacket(MC_CONTAINER_SET_SLOT, array(
|
||||||
|
"windowid" => $data["windowid"],
|
||||||
|
"slot" => $data["slot"],
|
||||||
|
"block" => $slot->getID(),
|
||||||
|
"stack" => $slot->count,
|
||||||
|
"meta" => $slot->getMetadata(),
|
||||||
|
));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if($item->getID() !== AIR and $slot->getID() == $item->getID()){
|
||||||
|
if($slot->count < $item->count){
|
||||||
|
if($this->removeItem($item->getID(), $item->getMetadata(), $item->count - $slot->count, false) === false){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}elseif($slot->count > $item->count){
|
||||||
|
$this->addItem($item->getID(), $item->getMetadata(), $slot->count - $item->count, false);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if($this->removeItem($item->getID(), $item->getMetadata(), $item->count, false) === false){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$this->addItem($slot->getID(), $slot->getMetadata(), $slot->count, false);
|
||||||
|
}
|
||||||
|
$tile->setSlot($slotn, $item, true, $offset);
|
||||||
|
}else{
|
||||||
$tile = $this->windows[$data["windowid"]];
|
$tile = $this->windows[$data["windowid"]];
|
||||||
if(($tile->class !== TILE_CHEST and $tile->class !== TILE_FURNACE) or $data["slot"] < 0 or ($tile->class === TILE_CHEST and $data["slot"] >= CHEST_SLOTS) or ($tile->class === TILE_FURNACE and $data["slot"] >= FURNACE_SLOTS)){
|
if(($tile->class !== TILE_CHEST and $tile->class !== TILE_FURNACE) or $data["slot"] < 0 or ($tile->class === TILE_CHEST and $data["slot"] >= CHEST_SLOTS) or ($tile->class === TILE_FURNACE and $data["slot"] >= FURNACE_SLOTS)){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$done = false;
|
|
||||||
$item = BlockAPI::getItem($data["block"], $data["meta"], $data["stack"]);
|
$item = BlockAPI::getItem($data["block"], $data["meta"], $data["stack"]);
|
||||||
|
|
||||||
$slot = $tile->getSlot($data["slot"]);
|
$slot = $tile->getSlot($data["slot"]);
|
||||||
$done = true;
|
|
||||||
if($this->server->api->dhandle("player.container.slot", array(
|
if($this->server->api->dhandle("player.container.slot", array(
|
||||||
"tile" => $tile,
|
"tile" => $tile,
|
||||||
"slot" => $data["slot"],
|
"slot" => $data["slot"],
|
||||||
@ -1779,12 +1823,35 @@ class Player{
|
|||||||
$this->addItem($slot->getID(), $slot->getMetadata(), $slot->count, false);
|
$this->addItem($slot->getID(), $slot->getMetadata(), $slot->count, false);
|
||||||
}
|
}
|
||||||
$tile->setSlot($data["slot"], $item);
|
$tile->setSlot($data["slot"], $item);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MC_SEND_INVENTORY: //TODO, Mojang, enable this ´^_^`
|
case MC_SEND_INVENTORY: //TODO, Mojang, enable this ´^_^`
|
||||||
if($this->spawned === false){
|
if($this->spawned === false){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MC_ENTITY_DATA:
|
||||||
|
if($this->spawned === false or $this->blocked === true){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$this->craftingItems = array();
|
||||||
|
$this->toCraft = array();
|
||||||
|
$t = $this->server->api->tile->get(new Position($data["x"], $data["y"], $data["z"], $this->level));
|
||||||
|
if(($t instanceof Tile) and $t->class === TILE_SIGN){
|
||||||
|
if($t->data["creator"] !== $this->username){
|
||||||
|
$t->spawn($this);
|
||||||
|
}else{
|
||||||
|
$nbt = new NBT();
|
||||||
|
$nbt->load($data["namedtag"]);
|
||||||
|
$d = array_shift($nbt->tree);
|
||||||
|
if($d["id"] !== TILE_SIGN){
|
||||||
|
$t->spawn($this);
|
||||||
|
}else{
|
||||||
|
$t->setText($d["Text1"], $d["Text2"], $d["Text3"], $d["Text4"]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console("[DEBUG] Unhandled 0x".dechex($pid)." Data Packet for Client ID ".$this->clientID.": ".print_r($data, true), true, true, 2);
|
console("[DEBUG] Unhandled 0x".dechex($pid)." Data Packet for Client ID ".$this->clientID.": ".print_r($data, true), true, true, 2);
|
||||||
break;
|
break;
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class PocketMinecraftServer{
|
class PocketMinecraftServer{
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
COMPILER_VERSION="0.12"
|
COMPILER_VERSION="0.13"
|
||||||
|
|
||||||
PHP_VERSION="5.4.16"
|
PHP_VERSION="5.5.3"
|
||||||
ZEND_VM="GOTO"
|
ZEND_VM="GOTO"
|
||||||
|
|
||||||
LIBEDIT_VERSION="0.3"
|
LIBEDIT_VERSION="0.3"
|
||||||
ZLIB_VERSION="1.2.8"
|
ZLIB_VERSION="1.2.8"
|
||||||
PTHREADS_VERSION="0.0.44"
|
PTHREADS_VERSION="0.0.44"
|
||||||
CURL_VERSION="curl-7_30_0"
|
CURL_VERSION="curl-7_32_0"
|
||||||
|
|
||||||
echo "[PocketMine] PHP installer and compiler for Linux & Mac"
|
echo "[PocketMine] PHP installer and compiler for Linux & Mac"
|
||||||
DIR="$(pwd)"
|
DIR="$(pwd)"
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
@ -66,8 +60,8 @@ ini_set("memory_limit", "128M"); //Default
|
|||||||
define("LOG", true);
|
define("LOG", true);
|
||||||
define("START_TIME", microtime(true));
|
define("START_TIME", microtime(true));
|
||||||
define("MAJOR_VERSION", "Alpha_1.3.7dev");
|
define("MAJOR_VERSION", "Alpha_1.3.7dev");
|
||||||
define("CURRENT_MINECRAFT_VERSION", "0.7.3 alpha");
|
define("CURRENT_MINECRAFT_VERSION", "0.7.4 alpha");
|
||||||
define("CURRENT_API_VERSION", 9);
|
define("CURRENT_API_VERSION", 10);
|
||||||
define("CURRENT_PHP_VERSION", "5.5");
|
define("CURRENT_PHP_VERSION", "5.5");
|
||||||
$gitsha1 = false;
|
$gitsha1 = false;
|
||||||
if(file_exists(FILE_PATH.".git/refs/heads/master")){ //Found Git information!
|
if(file_exists(FILE_PATH.".git/refs/heads/master")){ //Found Git information!
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("AIR", 0);
|
define("AIR", 0);
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -41,7 +35,7 @@ define("MAX_CHUNK_RATE", 20 / arg("max-chunks-per-second", 3.5)); //Default rate
|
|||||||
define("PLAYER_MAX_QUEUE", 1024);
|
define("PLAYER_MAX_QUEUE", 1024);
|
||||||
|
|
||||||
define("PLAYER_SURVIVAL_SLOTS", 36);
|
define("PLAYER_SURVIVAL_SLOTS", 36);
|
||||||
define("PLAYER_CREATIVE_SLOTS", 111);
|
define("PLAYER_CREATIVE_SLOTS", 112);
|
||||||
|
|
||||||
|
|
||||||
//Block Updates
|
//Block Updates
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("IRON_SHOVEL", 256);//Implemented
|
define("IRON_SHOVEL", 256);//Implemented
|
||||||
@ -123,8 +117,8 @@ define("EGG", 344);
|
|||||||
define("COMPASS", 345);
|
define("COMPASS", 345);
|
||||||
|
|
||||||
define("GLOWSTONE_DUST", 348);
|
define("GLOWSTONE_DUST", 348);
|
||||||
define("RAW_FISH", 349);
|
//define("RAW_FISH", 349);
|
||||||
define("COOKED_FISH", 350);
|
//define("COOKED_FISH", 350);
|
||||||
define("DYE", 351);
|
define("DYE", 351);
|
||||||
define("BONE", 352);
|
define("BONE", 352);
|
||||||
define("SUGAR", 353);
|
define("SUGAR", 353);
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(!function_exists("cli_set_process_title")){
|
if(!function_exists("cli_set_process_title")){
|
||||||
|
@ -1,33 +1,28 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
define("WINDOW_CHEST", 0);
|
define("WINDOW_CHEST", 0);
|
||||||
define("WINDOW_WORKBENCH", 1);
|
define("WINDOW_WORKBENCH", 1);
|
||||||
define("WINDOW_FURNACE", 2);
|
define("WINDOW_FURNACE", 2);
|
||||||
|
define("WINDOW_STONECUTTER", 3);
|
||||||
|
|
||||||
class Window{
|
class Window{
|
||||||
private $server;
|
private $server;
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
abstract class Block extends Position{
|
abstract class Block extends Position{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class Item{
|
class Item{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DoorBlock extends TransparentBlock{
|
class DoorBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FallableBlock extends SolidBlock{
|
class FallableBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FlowableBlock extends TransparentBlock{
|
class FlowableBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LiquidBlock extends TransparentBlock{
|
class LiquidBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SolidBlock extends GenericBlock{
|
class SolidBlock extends GenericBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class StairBlock extends TransparentBlock{
|
class StairBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TransparentBlock extends GenericBlock{
|
class TransparentBlock extends GenericBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LadderBlock extends TransparentBlock{
|
class LadderBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SignPostBlock extends TransparentBlock{
|
class SignPostBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TorchBlock extends FlowableBlock{
|
class TorchBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TrapdoorBlock extends TransparentBlock{
|
class TrapdoorBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LavaBlock extends LiquidBlock{
|
class LavaBlock extends LiquidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class StillLavaBlock extends LiquidBlock{
|
class StillLavaBlock extends LiquidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WaterBlock extends LiquidBlock{
|
class WaterBlock extends LiquidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class AirBlock extends TransparentBlock{
|
class AirBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BedBlock extends TransparentBlock{
|
class BedBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FireBlock extends FlowableBlock{
|
class FireBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class NetherReactorBlock extends SolidBlock{
|
class NetherReactorBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TNTBlock extends SolidBlock{
|
class TNTBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CakeBlock extends TransparentBlock{
|
class CakeBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CobwebBlock extends FlowableBlock{
|
class CobwebBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FenceBlock extends TransparentBlock{
|
class FenceBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FenceGateBlock extends TransparentBlock{
|
class FenceGateBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GlassPaneBlock extends TransparentBlock{
|
class GlassPaneBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class IronDoorBlock extends DoorBlock{
|
class IronDoorBlock extends DoorBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SlabBlock extends TransparentBlock{
|
class SlabBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SnowLayerBlock extends FlowableBlock{
|
class SnowLayerBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WoodDoorBlock extends DoorBlock{
|
class WoodDoorBlock extends DoorBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BrickStairsBlock extends StairBlock{
|
class BrickStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CobblestoneStairsBlock extends StairBlock{
|
class CobblestoneStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class NetherBricksStairsBlock extends StairBlock{
|
class NetherBricksStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class QuartzStairsBlock extends StairBlock{
|
class QuartzStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SandstoneStairsBlock extends StairBlock{
|
class SandstoneStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class StoneBrickStairsBlock extends StairBlock{
|
class StoneBrickStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WoodStairsBlock extends StairBlock{
|
class WoodStairsBlock extends StairBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CoalOreBlock extends SolidBlock{
|
class CoalOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DiamondOreBlock extends SolidBlock{
|
class DiamondOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GlowingRedstoneOreBlock extends SolidBlock{
|
class GlowingRedstoneOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GoldOreBlock extends SolidBlock{
|
class GoldOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class IronOreBlock extends SolidBlock{
|
class IronOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LapisOreBlock extends SolidBlock{
|
class LapisOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class RedstoneOreBlock extends SolidBlock{
|
class RedstoneOreBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BrownMushroomBlock extends FlowableBlock{
|
class BrownMushroomBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CactusBlock extends TransparentBlock{
|
class CactusBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CyanFlowerBlock extends FlowableBlock{
|
class CyanFlowerBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DandelionBlock extends FlowableBlock{
|
class DandelionBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DeadBushBlock extends FlowableBlock{
|
class DeadBushBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class MelonStemBlock extends FlowableBlock{
|
class MelonStemBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class RedMushroomBlock extends FlowableBlock{
|
class RedMushroomBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SaplingBlock extends FlowableBlock{
|
class SaplingBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class SugarcaneBlock extends FlowableBlock{
|
class SugarcaneBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class TallGrassBlock extends FlowableBlock{
|
class TallGrassBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class WheatBlock extends FlowableBlock{
|
class WheatBlock extends FlowableBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BedrockBlock extends SolidBlock{
|
class BedrockBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BookshelfBlock extends SolidBlock{
|
class BookshelfBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BricksBlock extends SolidBlock{
|
class BricksBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class BurningFurnaceBlock extends SolidBlock{
|
class BurningFurnaceBlock extends SolidBlock{
|
||||||
@ -65,32 +59,11 @@ class BurningFurnaceBlock extends SolidBlock{
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($furnace->class !== TILE_FURNACE or ($player->gamemode & 0x01) === 0x01){
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$player->windowCnt++;
|
|
||||||
$player->windowCnt = $id = max(2, $player->windowCnt % 16);
|
$furnace->openInventory($player);
|
||||||
$player->windows[$id] = $furnace;
|
|
||||||
$player->dataPacket(MC_CONTAINER_OPEN, array(
|
|
||||||
"windowid" => $id,
|
|
||||||
"type" => WINDOW_FURNACE,
|
|
||||||
"slots" => FURNACE_SLOTS,
|
|
||||||
"title" => "Furnace",
|
|
||||||
));
|
|
||||||
$slots = array();
|
|
||||||
for($s = 0; $s < FURNACE_SLOTS; ++$s){
|
|
||||||
$slot = $furnace->getSlot($s);
|
|
||||||
if($slot->getID() > 0 and $slot->count > 0){
|
|
||||||
$slots[] = $slot;
|
|
||||||
}else{
|
|
||||||
$slots[] = BlockAPI::getItem(AIR, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$player->dataPacket(MC_CONTAINER_SET_CONTENT, array(
|
|
||||||
"windowid" => $id,
|
|
||||||
"count" => count($slots),
|
|
||||||
"slots" => $slots
|
|
||||||
));
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ChestBlock extends TransparentBlock{
|
class ChestBlock extends TransparentBlock{
|
||||||
@ -31,54 +25,54 @@ class ChestBlock extends TransparentBlock{
|
|||||||
$this->isActivable = true;
|
$this->isActivable = true;
|
||||||
}
|
}
|
||||||
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
|
||||||
|
$server = ServerAPI::request();
|
||||||
$faces = array(
|
$faces = array(
|
||||||
0 => 4,
|
0 => 4,
|
||||||
1 => 2,
|
1 => 2,
|
||||||
2 => 5,
|
2 => 5,
|
||||||
3 => 3,
|
3 => 3,
|
||||||
);
|
);
|
||||||
$facesc = array(
|
|
||||||
2 => 4,
|
|
||||||
3 => 2,
|
|
||||||
4 => 5,
|
|
||||||
5 => 3,
|
|
||||||
);
|
|
||||||
$chest = false;
|
$chest = false;
|
||||||
|
$this->meta = $faces[$player->entity->getDirection()];
|
||||||
|
|
||||||
for($side = 2; $side <= 5; ++$side){
|
for($side = 2; $side <= 5; ++$side){
|
||||||
|
if(($this->meta === 4 or $this->meta === 5) and ($side === 4 or $side === 5)){
|
||||||
|
continue;
|
||||||
|
}elseif(($this->meta === 3 or $this->meta === 2) and ($side === 2 or $side === 3)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$c = $this->getSide($side);
|
$c = $this->getSide($side);
|
||||||
if($c instanceof ChestBlock){
|
if(($c instanceof ChestBlock) and $c->getMetadata() === $this->meta){
|
||||||
/*if($chest !== false){ //No chests in the middle
|
if((($tile = $server->api->tile->get($c)) instanceof Tile) and !$tile->isPaired()){
|
||||||
return false;
|
$chest = $tile;
|
||||||
}*/
|
|
||||||
$chest = array($side, $c);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($chest !== false and ($chest[1]->getSide($chest[0]) instanceof ChestBlock)){ //Already double chest
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($chest !== false){
|
|
||||||
$this->meta = $facesc[$chest[0]];
|
|
||||||
$this->level->setBlock($chest[1], new ChestBlock($this->meta));
|
|
||||||
}else{
|
|
||||||
$this->meta = $faces[$player->entity->getDirection()];
|
|
||||||
}
|
|
||||||
$this->level->setBlock($block, $this);
|
$this->level->setBlock($block, $this);
|
||||||
$server = ServerAPI::request();
|
$tile = $server->api->tile->add($this->level, TILE_CHEST, $this->x, $this->y, $this->z, array(
|
||||||
$server->api->tile->add($this->level, TILE_CHEST, $this->x, $this->y, $this->z, array(
|
|
||||||
"Items" => array(),
|
"Items" => array(),
|
||||||
"id" => TILE_CHEST,
|
"id" => TILE_CHEST,
|
||||||
"x" => $this->x,
|
"x" => $this->x,
|
||||||
"y" => $this->y,
|
"y" => $this->y,
|
||||||
"z" => $this->z
|
"z" => $this->z
|
||||||
));
|
));
|
||||||
|
|
||||||
|
/* 0.7.4 bug, waiting for Mojang...
|
||||||
|
if($chest instanceof Tile){
|
||||||
|
$chest->pairWith($tile);
|
||||||
|
$tile->pairWith($chest);
|
||||||
|
}*/
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onBreak(Item $item, Player $player){
|
public function onBreak(Item $item, Player $player){
|
||||||
|
$t = ServerAPI::request()->api->tile->get($this);
|
||||||
|
if($t !== false){
|
||||||
|
$t->unpair();
|
||||||
|
}
|
||||||
$this->level->setBlock($this, new AirBlock(), true, true);
|
$this->level->setBlock($this, new AirBlock(), true, true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -104,40 +98,13 @@ class ChestBlock extends TransparentBlock{
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($chest->class !== TILE_CHEST or ($player->gamemode & 0x01) === 0x01){
|
|
||||||
|
|
||||||
|
if(($player->gamemode & 0x01) === 0x01){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$player->windowCnt++;
|
|
||||||
$player->windowCnt = $id = max(2, $player->windowCnt % 16);
|
|
||||||
$player->windows[$id] = $chest;
|
|
||||||
$player->dataPacket(MC_CONTAINER_OPEN, array(
|
|
||||||
"windowid" => $id,
|
|
||||||
"type" => WINDOW_CHEST,
|
|
||||||
"slots" => CHEST_SLOTS,
|
|
||||||
"title" => "Chest",
|
|
||||||
));
|
|
||||||
$server->api->player->broadcastPacket($server->api->player->getAll($this->level), MC_TILE_EVENT, array(
|
|
||||||
"x" => $this->x,
|
|
||||||
"y" => $this->y,
|
|
||||||
"z" => $this->z,
|
|
||||||
"case1" => 1,
|
|
||||||
"case2" => 2,
|
|
||||||
));
|
|
||||||
$slots = array();
|
|
||||||
for($s = 0; $s < CHEST_SLOTS; ++$s){
|
|
||||||
$slot = $chest->getSlot($s);
|
|
||||||
if($slot->getID() > AIR and $slot->count > 0){
|
|
||||||
$slots[] = $slot;
|
|
||||||
}else{
|
|
||||||
$slots[] = BlockAPI::getItem(AIR, 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$player->dataPacket(MC_CONTAINER_SET_CONTENT, array(
|
|
||||||
"windowid" => $id,
|
|
||||||
"count" => count($slots),
|
|
||||||
"slots" => $slots
|
|
||||||
));
|
|
||||||
|
|
||||||
|
$chest->openInventory($player);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ClayBlock extends SolidBlock{
|
class ClayBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class CobblestoneBlock extends SolidBlock{
|
class CobblestoneBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DiamondBlock extends SolidBlock{
|
class DiamondBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DirtBlock extends SolidBlock{
|
class DirtBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class DoubleSlabBlock extends SolidBlock{
|
class DoubleSlabBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class FarmlandBlock extends SolidBlock{
|
class FarmlandBlock extends SolidBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GlassBlock extends TransparentBlock{
|
class GlassBlock extends TransparentBlock{
|
||||||
|
@ -1,28 +1,22 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GlowingObsidianBlock extends SolidBlock{
|
class GlowingObsidianBlock extends SolidBlock{
|
||||||
|
@ -1,31 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/**
|
||||||
|
*
|
||||||
-
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
/ \
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
/ \
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
/ PocketMine \
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
/ MP \
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|\ @shoghicp /|
|
*
|
||||||
|. \ / .|
|
* This program is free software: you can redistribute it and/or modify
|
||||||
| .. \ / .. |
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
| .. | .. |
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
| .. | .. |
|
* (at your option) any later version.
|
||||||
\ | /
|
*
|
||||||
\ | /
|
* @author PocketMine Team
|
||||||
\ | /
|
* @link http://www.pocketmine.net/
|
||||||
\ | /
|
*
|
||||||
|
*
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class GlowstoneBlock extends SolidBlock{
|
class GlowstoneBlock extends TransparentBlock{
|
||||||
public function __construct(){
|
public function __construct(){
|
||||||
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
|
parent::__construct(GLOWSTONE_BLOCK, 0, "Glowstone");
|
||||||
}
|
}
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user