mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 09:49:50 +00:00
convert more constant interfaces to final classes, close #2885
This commit is contained in:
parent
ef8eba43d7
commit
75a2d79671
@ -23,7 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\block;
|
||||
|
||||
interface BlockLegacyIds{
|
||||
final class BlockLegacyIds{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const AIR = 0;
|
||||
public const STONE = 1;
|
||||
|
@ -26,7 +26,11 @@ namespace pocketmine\block;
|
||||
/**
|
||||
* Constants for legacy metadata for various blocks.
|
||||
*/
|
||||
interface BlockLegacyMetadata{
|
||||
final class BlockLegacyMetadata{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const ANVIL_NORMAL = 0;
|
||||
public const ANVIL_SLIGHTLY_DAMAGED = 4;
|
||||
|
@ -27,7 +27,11 @@ namespace pocketmine\block;
|
||||
* Types of tools that can be used to break blocks
|
||||
* Blocks may allow multiple tool types by combining these bitflags
|
||||
*/
|
||||
interface BlockToolType{
|
||||
final class BlockToolType{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const NONE = 0;
|
||||
public const SWORD = 1 << 0;
|
||||
|
@ -23,7 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
interface ItemIds{
|
||||
final class ItemIds{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const LIT_BLAST_FURNACE = -214;
|
||||
public const COMPOSTER = -213;
|
||||
|
@ -26,7 +26,11 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
/**
|
||||
* Version numbers and packet IDs for the current Minecraft PE protocol
|
||||
*/
|
||||
interface ProtocolInfo{
|
||||
final class ProtocolInfo{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
/**
|
||||
* NOTE TO DEVELOPERS
|
||||
|
@ -23,7 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\network\mcpe\protocol\types;
|
||||
|
||||
interface DimensionIds{
|
||||
final class DimensionIds{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const OVERWORLD = 0;
|
||||
public const NETHER = 1;
|
||||
|
@ -23,7 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\network\mcpe\protocol\types;
|
||||
|
||||
interface PlayerPermissions{
|
||||
final class PlayerPermissions{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const CUSTOM = 3;
|
||||
public const OPERATOR = 2;
|
||||
|
@ -23,7 +23,11 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\network\mcpe\protocol\types\inventory;
|
||||
|
||||
interface ContainerIds{
|
||||
final class ContainerIds{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const NONE = -1;
|
||||
public const INVENTORY = 0;
|
||||
|
@ -25,7 +25,11 @@ declare(strict_types=1);
|
||||
namespace pocketmine\network\mcpe\protocol\types\inventory;
|
||||
|
||||
|
||||
interface WindowTypes{
|
||||
final class WindowTypes{
|
||||
|
||||
private function __construct(){
|
||||
//NOOP
|
||||
}
|
||||
|
||||
public const NONE = -9;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user