mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Regenerated block/item id lists and refactored some names for consistency with MCPE
This commit is contained in:
@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
*
|
||||
* ____ _ _ __ __ _ __ __ ____
|
||||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||
*
|
||||
* 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/
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\item;
|
||||
|
||||
class Camera extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
parent::__construct(self::CAMERA, $meta, $count, "Camera");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -123,10 +123,10 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$list[self::STICK] = Stick::class;
|
||||
self::$list[self::BOWL] = Bowl::class;
|
||||
self::$list[self::MUSHROOM_STEW] = MushroomStew::class;
|
||||
self::$list[self::GOLD_SWORD] = GoldSword::class;
|
||||
self::$list[self::GOLD_SHOVEL] = GoldShovel::class;
|
||||
self::$list[self::GOLD_PICKAXE] = GoldPickaxe::class;
|
||||
self::$list[self::GOLD_AXE] = GoldAxe::class;
|
||||
self::$list[self::GOLDEN_SWORD] = GoldSword::class;
|
||||
self::$list[self::GOLDEN_SHOVEL] = GoldShovel::class;
|
||||
self::$list[self::GOLDEN_PICKAXE] = GoldPickaxe::class;
|
||||
self::$list[self::GOLDEN_AXE] = GoldAxe::class;
|
||||
self::$list[self::STRING] = StringItem::class;
|
||||
self::$list[self::FEATHER] = Feather::class;
|
||||
self::$list[self::GUNPOWDER] = Gunpowder::class;
|
||||
@ -134,7 +134,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$list[self::STONE_HOE] = StoneHoe::class;
|
||||
self::$list[self::IRON_HOE] = IronHoe::class;
|
||||
self::$list[self::DIAMOND_HOE] = DiamondHoe::class;
|
||||
self::$list[self::GOLD_HOE] = GoldHoe::class;
|
||||
self::$list[self::GOLDEN_HOE] = GoldHoe::class;
|
||||
self::$list[self::WHEAT_SEEDS] = WheatSeeds::class;
|
||||
self::$list[self::WHEAT] = Wheat::class;
|
||||
self::$list[self::BREAD] = Bread::class;
|
||||
@ -142,10 +142,10 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$list[self::LEATHER_TUNIC] = LeatherTunic::class;
|
||||
self::$list[self::LEATHER_PANTS] = LeatherPants::class;
|
||||
self::$list[self::LEATHER_BOOTS] = LeatherBoots::class;
|
||||
self::$list[self::CHAIN_HELMET] = ChainHelmet::class;
|
||||
self::$list[self::CHAIN_CHESTPLATE] = ChainChestplate::class;
|
||||
self::$list[self::CHAIN_LEGGINGS] = ChainLeggings::class;
|
||||
self::$list[self::CHAIN_BOOTS] = ChainBoots::class;
|
||||
self::$list[self::CHAINMAIL_HELMET] = ChainHelmet::class;
|
||||
self::$list[self::CHAINMAIL_CHESTPLATE] = ChainChestplate::class;
|
||||
self::$list[self::CHAINMAIL_LEGGINGS] = ChainLeggings::class;
|
||||
self::$list[self::CHAINMAIL_BOOTS] = ChainBoots::class;
|
||||
self::$list[self::IRON_HELMET] = IronHelmet::class;
|
||||
self::$list[self::IRON_CHESTPLATE] = IronChestplate::class;
|
||||
self::$list[self::IRON_LEGGINGS] = IronLeggings::class;
|
||||
@ -154,10 +154,10 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$list[self::DIAMOND_CHESTPLATE] = DiamondChestplate::class;
|
||||
self::$list[self::DIAMOND_LEGGINGS] = DiamondLeggings::class;
|
||||
self::$list[self::DIAMOND_BOOTS] = DiamondBoots::class;
|
||||
self::$list[self::GOLD_HELMET] = GoldHelmet::class;
|
||||
self::$list[self::GOLD_CHESTPLATE] = GoldChestplate::class;
|
||||
self::$list[self::GOLD_LEGGINGS] = GoldLeggings::class;
|
||||
self::$list[self::GOLD_BOOTS] = GoldBoots::class;
|
||||
self::$list[self::GOLDEN_HELMET] = GoldHelmet::class;
|
||||
self::$list[self::GOLDEN_CHESTPLATE] = GoldChestplate::class;
|
||||
self::$list[self::GOLDEN_LEGGINGS] = GoldLeggings::class;
|
||||
self::$list[self::GOLDEN_BOOTS] = GoldBoots::class;
|
||||
self::$list[self::FLINT] = Flint::class;
|
||||
self::$list[self::RAW_PORKCHOP] = RawPorkchop::class;
|
||||
self::$list[self::COOKED_PORKCHOP] = CookedPorkchop::class;
|
||||
@ -227,7 +227,7 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
self::$list[self::BAKED_POTATO] = BakedPotato::class;
|
||||
|
||||
self::$list[self::GOLDEN_CARROT] = GoldenCarrot::class;
|
||||
self::$list[self::MOB_HEAD] = MobHead::class;
|
||||
self::$list[self::SKULL] = Skull::class;
|
||||
|
||||
self::$list[self::NETHER_STAR] = NetherStar::class;
|
||||
self::$list[self::PUMPKIN_PIE] = PumpkinPie::class;
|
||||
|
@ -27,7 +27,6 @@ use pocketmine\block\BlockIds;
|
||||
|
||||
interface ItemIds extends BlockIds{
|
||||
|
||||
//All BlockIds are also accessible through this interface.
|
||||
const IRON_SHOVEL = 256;
|
||||
const IRON_PICKAXE = 257;
|
||||
const IRON_AXE = 258;
|
||||
@ -52,13 +51,13 @@ interface ItemIds extends BlockIds{
|
||||
const DIAMOND_SHOVEL = 277;
|
||||
const DIAMOND_PICKAXE = 278;
|
||||
const DIAMOND_AXE = 279;
|
||||
const STICK = 280, STICKS = 280;
|
||||
const STICK = 280;
|
||||
const BOWL = 281;
|
||||
const MUSHROOM_STEW = 282;
|
||||
const GOLD_SWORD = 283, GOLDEN_SWORD = 283;
|
||||
const GOLD_SHOVEL = 284, GOLDEN_SHOVEL = 284;
|
||||
const GOLD_PICKAXE = 285, GOLDEN_PICKAXE = 285;
|
||||
const GOLD_AXE = 286, GOLDEN_AXE = 286;
|
||||
const GOLDEN_SWORD = 283, GOLD_SWORD = 283;
|
||||
const GOLDEN_SHOVEL = 284, GOLD_SHOVEL = 284;
|
||||
const GOLDEN_PICKAXE = 285, GOLD_PICKAXE = 285;
|
||||
const GOLDEN_AXE = 286, GOLD_AXE = 286;
|
||||
const STRING = 287;
|
||||
const FEATHER = 288;
|
||||
const GUNPOWDER = 289;
|
||||
@ -66,18 +65,18 @@ interface ItemIds extends BlockIds{
|
||||
const STONE_HOE = 291;
|
||||
const IRON_HOE = 292;
|
||||
const DIAMOND_HOE = 293;
|
||||
const GOLD_HOE = 294, GOLDEN_HOE = 294;
|
||||
const GOLDEN_HOE = 294, GOLD_HOE = 294;
|
||||
const SEEDS = 295, WHEAT_SEEDS = 295;
|
||||
const WHEAT = 296;
|
||||
const BREAD = 297;
|
||||
const LEATHER_CAP = 298;
|
||||
const LEATHER_TUNIC = 299;
|
||||
const LEATHER_PANTS = 300;
|
||||
const LEATHER_CAP = 298, LEATHER_HELMET = 298;
|
||||
const LEATHER_CHESTPLATE = 299, LEATHER_TUNIC = 299;
|
||||
const LEATHER_LEGGINGS = 300, LEATHER_PANTS = 300;
|
||||
const LEATHER_BOOTS = 301;
|
||||
const CHAIN_HELMET = 302;
|
||||
const CHAIN_CHESTPLATE = 303;
|
||||
const CHAIN_LEGGINGS = 304;
|
||||
const CHAIN_BOOTS = 305;
|
||||
const CHAINMAIL_HELMET = 302, CHAIN_HELMET = 302;
|
||||
const CHAINMAIL_CHESTPLATE = 303, CHAIN_CHESTPLATE = 303;
|
||||
const CHAINMAIL_LEGGINGS = 304, CHAIN_LEGGINGS = 304;
|
||||
const CHAINMAIL_BOOTS = 305, CHAIN_BOOTS = 305;
|
||||
const IRON_HELMET = 306;
|
||||
const IRON_CHESTPLATE = 307;
|
||||
const IRON_LEGGINGS = 308;
|
||||
@ -86,17 +85,17 @@ interface ItemIds extends BlockIds{
|
||||
const DIAMOND_CHESTPLATE = 311;
|
||||
const DIAMOND_LEGGINGS = 312;
|
||||
const DIAMOND_BOOTS = 313;
|
||||
const GOLD_HELMET = 314;
|
||||
const GOLD_CHESTPLATE = 315;
|
||||
const GOLD_LEGGINGS = 316;
|
||||
const GOLD_BOOTS = 317;
|
||||
const GOLDEN_HELMET = 314, GOLD_HELMET = 314;
|
||||
const GOLDEN_CHESTPLATE = 315, GOLD_CHESTPLATE = 315;
|
||||
const GOLDEN_LEGGINGS = 316, GOLD_LEGGINGS = 316;
|
||||
const GOLDEN_BOOTS = 317, GOLD_BOOTS = 317;
|
||||
const FLINT = 318;
|
||||
const RAW_PORKCHOP = 319;
|
||||
const PORKCHOP = 319, RAW_PORKCHOP = 319;
|
||||
const COOKED_PORKCHOP = 320;
|
||||
const PAINTING = 321;
|
||||
const GOLDEN_APPLE = 322;
|
||||
const SIGN = 323;
|
||||
const WOODEN_DOOR = 324, OAK_DOOR = 324;
|
||||
const OAK_DOOR = 324, WOODEN_DOOR = 324;
|
||||
const BUCKET = 325;
|
||||
|
||||
const MINECART = 328;
|
||||
@ -108,19 +107,19 @@ interface ItemIds extends BlockIds{
|
||||
const LEATHER = 334;
|
||||
|
||||
const BRICK = 336;
|
||||
const CLAY = 337;
|
||||
const SUGARCANE = 338, SUGAR_CANE = 338, SUGAR_CANES = 338;
|
||||
const CLAY = 337, CLAY_BALL = 337;
|
||||
const REEDS = 338, SUGARCANE = 338;
|
||||
const PAPER = 339;
|
||||
const BOOK = 340;
|
||||
const SLIMEBALL = 341;
|
||||
const MINECART_WITH_CHEST = 342;
|
||||
const SLIMEBALL = 341, SLIME_BALL = 341;
|
||||
const CHEST_MINECART = 342, MINECART_WITH_CHEST = 342;
|
||||
|
||||
const EGG = 344;
|
||||
const COMPASS = 345;
|
||||
const FISHING_ROD = 346;
|
||||
const CLOCK = 347;
|
||||
const GLOWSTONE_DUST = 348;
|
||||
const RAW_FISH = 349;
|
||||
const FISH = 349, RAW_FISH = 349;
|
||||
const COOKED_FISH = 350;
|
||||
const DYE = 351;
|
||||
const BONE = 352;
|
||||
@ -134,15 +133,15 @@ interface ItemIds extends BlockIds{
|
||||
const MELON = 360, MELON_SLICE = 360;
|
||||
const PUMPKIN_SEEDS = 361;
|
||||
const MELON_SEEDS = 362;
|
||||
const RAW_BEEF = 363;
|
||||
const STEAK = 364, COOKED_BEEF = 364;
|
||||
const RAW_CHICKEN = 365;
|
||||
const BEEF = 363, RAW_BEEF = 363;
|
||||
const COOKED_BEEF = 364, STEAK = 364;
|
||||
const CHICKEN = 365, RAW_CHICKEN = 365;
|
||||
const COOKED_CHICKEN = 366;
|
||||
const ROTTEN_FLESH = 367;
|
||||
|
||||
const ENDER_PEARL = 368;
|
||||
const BLAZE_ROD = 369;
|
||||
const GHAST_TEAR = 370;
|
||||
const GOLD_NUGGET = 371, GOLDEN_NUGGET = 371;
|
||||
const GOLDEN_NUGGET = 371, GOLD_NUGGET = 371;
|
||||
const NETHER_WART = 372;
|
||||
const POTION = 373;
|
||||
const GLASS_BOTTLE = 374;
|
||||
@ -152,67 +151,79 @@ interface ItemIds extends BlockIds{
|
||||
const MAGMA_CREAM = 378;
|
||||
const BREWING_STAND = 379;
|
||||
const CAULDRON = 380;
|
||||
|
||||
const GLISTERING_MELON = 382;
|
||||
const ENDER_EYE = 381;
|
||||
const GLISTERING_MELON = 382, SPECKLED_MELON = 382;
|
||||
const SPAWN_EGG = 383;
|
||||
const BOTTLE_O_ENCHANTING = 384, ENCHANTING_BOTTLE = 384;
|
||||
const FIRE_CHARGE = 385;
|
||||
const BOTTLE_O_ENCHANTING = 384, EXPERIENCE_BOTTLE = 384;
|
||||
const FIREBALL = 385, FIRE_CHARGE = 385;
|
||||
|
||||
const EMERALD = 388;
|
||||
const ITEM_FRAME = 389;
|
||||
const FRAME = 389, ITEM_FRAME = 389;
|
||||
const FLOWER_POT = 390;
|
||||
const CARROT = 391, CARROTS = 391;
|
||||
const POTATO = 392, POTATOES = 392;
|
||||
const BAKED_POTATO = 393, BAKED_POTATOES = 393;
|
||||
const CARROT = 391;
|
||||
const POTATO = 392;
|
||||
const BAKED_POTATO = 393;
|
||||
const POISONOUS_POTATO = 394;
|
||||
const MAP = 395, EMPTY_MAP = 395;
|
||||
const EMPTYMAP = 395, EMPTY_MAP = 395, MAP = 395;
|
||||
const GOLDEN_CARROT = 396;
|
||||
const MOB_HEAD = 397, SKULL = 397;
|
||||
const CARROT_ON_A_STICK = 398;
|
||||
const NETHER_STAR = 399;
|
||||
const CARROTONASTICK = 398, CARROT_ON_A_STICK = 398;
|
||||
const NETHERSTAR = 399, NETHER_STAR = 399;
|
||||
const PUMPKIN_PIE = 400;
|
||||
|
||||
const ENCHANTED_BOOK = 403;
|
||||
const COMPARATOR = 404;
|
||||
const NETHER_BRICK = 405;
|
||||
const QUARTZ = 406;
|
||||
const NETHER_QUARTZ = 406;
|
||||
const MINECART_WITH_TNT = 407;
|
||||
const MINECART_WITH_HOPPER = 408;
|
||||
const NETHERBRICK = 405;
|
||||
const NETHER_QUARTZ = 406, QUARTZ = 406;
|
||||
const MINECART_WITH_TNT = 407, TNT_MINECART = 407;
|
||||
const HOPPER_MINECART = 408, MINECART_WITH_HOPPER = 408;
|
||||
const PRISMARINE_SHARD = 409;
|
||||
const HOPPER = 410;
|
||||
const RAW_RABBIT = 411;
|
||||
const RABBIT = 411, RAW_RABBIT = 411;
|
||||
const COOKED_RABBIT = 412;
|
||||
const RABBIT_STEW = 413;
|
||||
const RABBIT_FOOT = 414;
|
||||
const RABBIT_HIDE = 415;
|
||||
const LEATHER_HORSE_ARMOR = 416; //I hate being forced to spell this wrong
|
||||
const IRON_HORSE_ARMOR = 417;
|
||||
const GOLD_HORSE_ARMOR = 418;
|
||||
const DIAMOND_HORSE_ARMOR = 419;
|
||||
const LEAD = 420, LEASH = 420;
|
||||
const NAMETAG = 421;
|
||||
const HORSEARMORLEATHER = 416, HORSE_ARMOR_LEATHER = 416, LEATHER_HORSE_ARMOR = 416;
|
||||
const HORSEARMORIRON = 417, HORSE_ARMOR_IRON = 417, IRON_HORSE_ARMOR = 417;
|
||||
const GOLD_HORSE_ARMOR = 418, HORSEARMORGOLD = 418, HORSE_ARMOR_GOLD = 418;
|
||||
const DIAMOND_HORSE_ARMOR = 419, HORSEARMORDIAMOND = 419, HORSE_ARMOR_DIAMOND = 419;
|
||||
const LEAD = 420;
|
||||
const NAMETAG = 421, NAME_TAG = 421;
|
||||
const PRISMARINE_CRYSTALS = 422;
|
||||
const RAW_MUTTON = 423;
|
||||
const COOKED_MUTTON = 424;
|
||||
const MUTTONRAW = 423, MUTTON_RAW = 423, RAW_MUTTON = 423;
|
||||
const COOKED_MUTTON = 424, MUTTONCOOKED = 424, MUTTON_COOKED = 424;
|
||||
|
||||
const END_CRYSTAL = 426;
|
||||
const SPRUCE_DOOR = 427;
|
||||
const BIRCH_DOOR = 428;
|
||||
const JUNGLE_DOOR = 429;
|
||||
const ACACIA_DOOR = 430;
|
||||
const DARK_OAK_DOOR = 431;
|
||||
const CHORUS_FRUIT = 432;
|
||||
const CHORUS_FRUIT_POPPED = 433;
|
||||
|
||||
const DRAGON_BREATH = 437;
|
||||
const SPLASH_POTION = 438;
|
||||
|
||||
const LINGERING_POTION = 441;
|
||||
|
||||
const COMMAND_BLOCK_MINECART = 443, MINECART_WITH_COMMAND_BLOCK = 443;
|
||||
const ELYTRA = 444;
|
||||
const SHULKER_SHELL = 445;
|
||||
|
||||
const TOTEM = 450;
|
||||
|
||||
const IRON_NUGGET = 452;
|
||||
|
||||
const BEETROOT = 457;
|
||||
const BEETROOT_SEEDS = 458, BEETROOT_SEED = 458;
|
||||
const BEETROOT_SEEDS = 458;
|
||||
const BEETROOT_SOUP = 459;
|
||||
const RAW_SALMON = 460;
|
||||
const CLOWN_FISH = 461;
|
||||
const PUFFER_FISH = 462;
|
||||
const RAW_SALMON = 460, SALMON = 460;
|
||||
const CLOWNFISH = 461;
|
||||
const PUFFERFISH = 462;
|
||||
const COOKED_SALMON = 463;
|
||||
|
||||
const ENCHANTED_GOLDEN_APPLE = 466;
|
||||
const APPLEENCHANTED = 466, APPLE_ENCHANTED = 466, ENCHANTED_GOLDEN_APPLE = 466;
|
||||
|
||||
const CAMERA = 498; #blamemojang
|
||||
}
|
||||
|
@ -25,9 +25,9 @@ namespace pocketmine\item;
|
||||
|
||||
use pocketmine\block\Block;
|
||||
|
||||
class MobHead extends Item{
|
||||
class Skull extends Item{
|
||||
public function __construct($meta = 0, $count = 1){
|
||||
$this->block = Block::get(Item::SKULL_BLOCK);
|
||||
parent::__construct(self::MOB_HEAD, $meta, $count, "Mob Head");
|
||||
parent::__construct(self::SKULL, $meta, $count, "Mob Head");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user