diff --git a/src/data/bedrock/item/ItemDeserializer.php b/src/data/bedrock/item/ItemDeserializer.php index 41cedace8..7ac959b4d 100644 --- a/src/data/bedrock/item/ItemDeserializer.php +++ b/src/data/bedrock/item/ItemDeserializer.php @@ -117,7 +117,7 @@ final class ItemDeserializer{ $this->map(Ids::ACACIA_SIGN, fn() => Blocks::ACACIA_SIGN()->asItem()); //TODO: minecraft:agent_spawn_egg //TODO: minecraft:allay_spawn_egg - //TODO: minecraft:amethyst_shard + $this->map(Ids::AMETHYST_SHARD, fn() => Items::AMETHYST_SHARD()); $this->map(Ids::APPLE, fn() => Items::APPLE()); //TODO: minecraft:armor_stand $this->map(Ids::ARROW, function(Data $data) : Item{ @@ -266,7 +266,7 @@ final class ItemDeserializer{ $this->map(Ids::COOKED_RABBIT, fn() => Items::COOKED_RABBIT()); $this->map(Ids::COOKED_SALMON, fn() => Items::COOKED_SALMON()); $this->map(Ids::COOKIE, fn() => Items::COOKIE()); - //TODO: minecraft:copper_ingot + $this->map(Ids::COPPER_INGOT, fn() => Items::COPPER_INGOT()); //TODO: minecraft:cow_spawn_egg //TODO: minecraft:creeper_banner_pattern //TODO: minecraft:creeper_spawn_egg @@ -288,6 +288,7 @@ final class ItemDeserializer{ $this->map(Ids::DIAMOND_PICKAXE, fn() => Items::DIAMOND_PICKAXE()); $this->map(Ids::DIAMOND_SHOVEL, fn() => Items::DIAMOND_SHOVEL()); $this->map(Ids::DIAMOND_SWORD, fn() => Items::DIAMOND_SWORD()); + $this->map(Ids::DISC_FRAGMENT_5, fn() => Items::DISC_FRAGMENT_5()); //TODO: minecraft:dolphin_spawn_egg //TODO: minecraft:donkey_spawn_egg $this->map(Ids::DRAGON_BREATH, fn() => Items::DRAGON_BREATH()); @@ -315,6 +316,7 @@ final class ItemDeserializer{ } return Items::DYE()->setColor($dyeColor); }); + $this->map(Ids::ECHO_SHARD, fn() => Items::ECHO_SHARD()); $this->map(Ids::EGG, fn() => Items::EGG()); //TODO: minecraft:elder_guardian_spawn_egg //TODO: minecraft:elytra @@ -352,7 +354,7 @@ final class ItemDeserializer{ //TODO: minecraft:globe_banner_pattern //TODO: minecraft:glow_berries //TODO: minecraft:glow_frame - //TODO: minecraft:glow_ink_sac + $this->map(Ids::GLOW_INK_SAC, fn() => Items::GLOW_INK_SAC()); //TODO: minecraft:glow_squid_spawn_egg //TODO: minecraft:glow_stick $this->map(Ids::GLOWSTONE_DUST, fn() => Items::GLOWSTONE_DUST()); @@ -379,7 +381,7 @@ final class ItemDeserializer{ $this->map(Ids::HEART_OF_THE_SEA, fn() => Items::HEART_OF_THE_SEA()); //TODO: minecraft:hoglin_spawn_egg //TODO: minecraft:honey_bottle - //TODO: minecraft:honeycomb + $this->map(Ids::HONEYCOMB, fn() => Items::HONEYCOMB()); $this->map(Ids::HOPPER, fn() => Blocks::HOPPER()->asItem()); //TODO: minecraft:hopper_minecart //TODO: minecraft:horse_spawn_egg @@ -473,7 +475,7 @@ final class ItemDeserializer{ //TODO: minecraft:panda_spawn_egg $this->map(Ids::PAPER, fn() => Items::PAPER()); //TODO: minecraft:parrot_spawn_egg - //TODO: minecraft:phantom_membrane + $this->map(Ids::PHANTOM_MEMBRANE, fn() => Items::PHANTOM_MEMBRANE()); //TODO: minecraft:phantom_spawn_egg //TODO: minecraft:pig_spawn_egg //TODO: minecraft:piglin_banner_pattern @@ -511,9 +513,9 @@ final class ItemDeserializer{ $this->map(Ids::RABBIT_STEW, fn() => Items::RABBIT_STEW()); //TODO: minecraft:rapid_fertilizer //TODO: minecraft:ravager_spawn_egg - //TODO: minecraft:raw_copper - //TODO: minecraft:raw_gold - //TODO: minecraft:raw_iron + $this->map(Ids::RAW_COPPER, fn() => Items::RAW_COPPER()); + $this->map(Ids::RAW_GOLD, fn() => Items::RAW_GOLD()); + $this->map(Ids::RAW_IRON, fn() => Items::RAW_IRON()); $this->map(Ids::RED_DYE, fn() => Items::DYE()->setColor(DyeColor::RED())); $this->map(Ids::REDSTONE, fn() => Items::REDSTONE_DUST()); $this->map(Ids::REPEATER, fn() => Blocks::REDSTONE_REPEATER()->asItem()); @@ -565,7 +567,7 @@ final class ItemDeserializer{ $this->map(Ids::SPRUCE_BOAT, fn() => Items::SPRUCE_BOAT()); $this->map(Ids::SPRUCE_DOOR, fn() => Blocks::SPRUCE_DOOR()->asItem()); $this->map(Ids::SPRUCE_SIGN, fn() => Blocks::SPRUCE_SIGN()->asItem()); - //TODO: minecraft:spyglass + $this->map(Ids::SPYGLASS, fn() => Items::SPYGLASS()); $this->map(Ids::SQUID_SPAWN_EGG, fn() => Items::SQUID_SPAWN_EGG()); $this->map(Ids::STICK, fn() => Items::STICK()); $this->map(Ids::STONE_AXE, fn() => Items::STONE_AXE()); diff --git a/src/data/bedrock/item/ItemSerializer.php b/src/data/bedrock/item/ItemSerializer.php index 99086c7b4..4d57071c9 100644 --- a/src/data/bedrock/item/ItemSerializer.php +++ b/src/data/bedrock/item/ItemSerializer.php @@ -258,6 +258,7 @@ final class ItemSerializer{ $this->map(Items::ACACIA_BOAT(), self::id(Ids::ACACIA_BOAT)); $this->map(Items::ACACIA_SIGN(), self::id(Ids::ACACIA_SIGN)); + $this->map(Items::AMETHYST_SHARD(), self::id(Ids::AMETHYST_SHARD)); $this->map(Items::APPLE(), self::id(Ids::APPLE)); $this->map(Items::ARROW(), self::id(Ids::ARROW)); $this->map(Items::BAKED_POTATO(), self::id(Ids::BAKED_POTATO)); @@ -336,6 +337,7 @@ final class ItemSerializer{ $this->map(Items::COOKED_RABBIT(), self::id(Ids::COOKED_RABBIT)); $this->map(Items::COOKED_SALMON(), self::id(Ids::COOKED_SALMON)); $this->map(Items::COOKIE(), self::id(Ids::COOKIE)); + $this->map(Items::COPPER_INGOT(), self::id(Ids::COPPER_INGOT)); $this->map(Items::CRIMSON_SIGN(), self::id(Ids::CRIMSON_SIGN)); $this->map(Items::DARK_OAK_BOAT(), self::id(Ids::DARK_OAK_BOAT)); $this->map(Items::DARK_OAK_SIGN(), self::id(Ids::DARK_OAK_SIGN)); @@ -349,6 +351,7 @@ final class ItemSerializer{ $this->map(Items::DIAMOND_PICKAXE(), self::id(Ids::DIAMOND_PICKAXE)); $this->map(Items::DIAMOND_SHOVEL(), self::id(Ids::DIAMOND_SHOVEL)); $this->map(Items::DIAMOND_SWORD(), self::id(Ids::DIAMOND_SWORD)); + $this->map(Items::DISC_FRAGMENT_5(), self::id(Ids::DISC_FRAGMENT_5)); $this->map(Items::DRAGON_BREATH(), self::id(Ids::DRAGON_BREATH)); $this->map(Items::DRIED_KELP(), self::id(Ids::DRIED_KELP)); $this->map(Items::DYE(), fn(Dye $item) => new Data(match($item->getColor()){ @@ -370,6 +373,7 @@ final class ItemSerializer{ DyeColor::YELLOW() => Ids::YELLOW_DYE, default => throw new AssumptionFailedError("Unhandled dye color " . $item->getColor()->name()), })); + $this->map(Items::ECHO_SHARD(), self::id(Ids::ECHO_SHARD)); $this->map(Items::EGG(), self::id(Ids::EGG)); $this->map(Items::EMERALD(), self::id(Ids::EMERALD)); $this->map(Items::ENCHANTED_GOLDEN_APPLE(), self::id(Ids::ENCHANTED_GOLDEN_APPLE)); @@ -384,6 +388,7 @@ final class ItemSerializer{ $this->map(Items::GLASS_BOTTLE(), self::id(Ids::GLASS_BOTTLE)); $this->map(Items::GLISTERING_MELON(), self::id(Ids::GLISTERING_MELON_SLICE)); $this->map(Items::GLOWSTONE_DUST(), self::id(Ids::GLOWSTONE_DUST)); + $this->map(Items::GLOW_INK_SAC(), self::id(Ids::GLOW_INK_SAC)); $this->map(Items::GOLDEN_APPLE(), self::id(Ids::GOLDEN_APPLE)); $this->map(Items::GOLDEN_AXE(), self::id(Ids::GOLDEN_AXE)); $this->map(Items::GOLDEN_BOOTS(), self::id(Ids::GOLDEN_BOOTS)); @@ -399,6 +404,7 @@ final class ItemSerializer{ $this->map(Items::GOLD_NUGGET(), self::id(Ids::GOLD_NUGGET)); $this->map(Items::GUNPOWDER(), self::id(Ids::GUNPOWDER)); $this->map(Items::HEART_OF_THE_SEA(), self::id(Ids::HEART_OF_THE_SEA)); + $this->map(Items::HONEYCOMB(), self::id(Ids::HONEYCOMB)); $this->map(Items::INK_SAC(), self::id(Ids::INK_SAC)); $this->map(Items::IRON_AXE(), self::id(Ids::IRON_AXE)); $this->map(Items::IRON_BOOTS(), self::id(Ids::IRON_BOOTS)); @@ -435,6 +441,7 @@ final class ItemSerializer{ $this->map(Items::OAK_SIGN(), self::id(Ids::OAK_SIGN)); $this->map(Items::PAINTING(), self::id(Ids::PAINTING)); $this->map(Items::PAPER(), self::id(Ids::PAPER)); + $this->map(Items::PHANTOM_MEMBRANE(), self::id(Ids::PHANTOM_MEMBRANE)); $this->map(Items::POISONOUS_POTATO(), self::id(Ids::POISONOUS_POTATO)); $this->map(Items::POPPED_CHORUS_FRUIT(), self::id(Ids::POPPED_CHORUS_FRUIT)); $this->map(Items::POTATO(), self::id(Ids::POTATO)); @@ -449,7 +456,10 @@ final class ItemSerializer{ $this->map(Items::RABBIT_STEW(), self::id(Ids::RABBIT_STEW)); $this->map(Items::RAW_BEEF(), self::id(Ids::BEEF)); $this->map(Items::RAW_CHICKEN(), self::id(Ids::CHICKEN)); + $this->map(Items::RAW_COPPER(), self::id(Ids::RAW_COPPER)); $this->map(Items::RAW_FISH(), self::id(Ids::COD)); + $this->map(Items::RAW_GOLD(), self::id(Ids::RAW_GOLD)); + $this->map(Items::RAW_IRON(), self::id(Ids::RAW_IRON)); $this->map(Items::RAW_MUTTON(), self::id(Ids::MUTTON)); $this->map(Items::RAW_PORKCHOP(), self::id(Ids::PORKCHOP)); $this->map(Items::RAW_RABBIT(), self::id(Ids::RABBIT)); @@ -477,6 +487,7 @@ final class ItemSerializer{ $this->map(Items::SPLASH_POTION(), fn(SplashPotion $item) => new Data(Ids::SPLASH_POTION, PotionTypeIdMap::getInstance()->toId($item->getType()))); $this->map(Items::SPRUCE_BOAT(), self::id(Ids::SPRUCE_BOAT)); $this->map(Items::SPRUCE_SIGN(), self::id(Ids::SPRUCE_SIGN)); + $this->map(Items::SPYGLASS(), self::id(Ids::SPYGLASS)); $this->map(Items::SQUID_SPAWN_EGG(), self::id(Ids::SQUID_SPAWN_EGG)); $this->map(Items::STEAK(), self::id(Ids::COOKED_BEEF)); $this->map(Items::STICK(), self::id(Ids::STICK)); diff --git a/src/item/ItemFactory.php b/src/item/ItemFactory.php index 7f4c889c8..1a4ecc068 100644 --- a/src/item/ItemFactory.php +++ b/src/item/ItemFactory.php @@ -98,6 +98,7 @@ class ItemFactory{ $this->register(new GoldenApple(new IID(Ids::GOLDEN_APPLE), "Golden Apple")); $this->register(new GoldenAppleEnchanted(new IID(Ids::ENCHANTED_GOLDEN_APPLE), "Enchanted Golden Apple")); $this->register(new GoldenCarrot(new IID(Ids::GOLDEN_CARROT), "Golden Carrot")); + $this->register(new Item(new IID(Ids::AMETHYST_SHARD), "Amethyst Shard")); $this->register(new Item(new IID(Ids::BLAZE_POWDER), "Blaze Powder")); $this->register(new Item(new IID(Ids::BLEACH), "Bleach")); //EDU $this->register(new Item(new IID(Ids::BONE), "Bone")); @@ -143,9 +144,12 @@ class ItemFactory{ $this->register(new Item(new IID(Ids::CHEMICAL_AMMONIA), "Ammonia")); $this->register(new Item(new IID(Ids::CHEMICAL_SODIUM_HYPOCHLORITE), "Sodium Hypochlorite")); $this->register(new Item(new IID(Ids::DIAMOND), "Diamond")); + $this->register(new Item(new IID(Ids::DISC_FRAGMENT_5), "Disc Fragment (5)")); $this->register(new Item(new IID(Ids::DRAGON_BREATH), "Dragon's Breath")); + $this->register(new Item(new IID(Ids::GLOW_INK_SAC), "Glow Ink Sac")); $this->register(new Item(new IID(Ids::INK_SAC), "Ink Sac")); $this->register(new Item(new IID(Ids::LAPIS_LAZULI), "Lapis Lazuli")); + $this->register(new Item(new IID(Ids::ECHO_SHARD), "Echo Shard")); $this->register(new Item(new IID(Ids::EMERALD), "Emerald")); $this->register(new Item(new IID(Ids::FEATHER), "Feather")); $this->register(new Item(new IID(Ids::FERMENTED_SPIDER_EYE), "Fermented Spider Eye")); @@ -157,6 +161,7 @@ class ItemFactory{ $this->register(new Item(new IID(Ids::GOLD_NUGGET), "Gold Nugget")); $this->register(new Item(new IID(Ids::GUNPOWDER), "Gunpowder")); $this->register(new Item(new IID(Ids::HEART_OF_THE_SEA), "Heart of the Sea")); + $this->register(new Item(new IID(Ids::HONEYCOMB), "Honeycomb")); $this->register(new Item(new IID(Ids::IRON_INGOT), "Iron Ingot")); $this->register(new Item(new IID(Ids::IRON_NUGGET), "Iron Nugget")); $this->register(new Item(new IID(Ids::LEATHER), "Leather")); @@ -175,6 +180,12 @@ class ItemFactory{ $this->register(new Item(new IID(Ids::SUGAR), "Sugar")); $this->register(new Item(new IID(Ids::SCUTE), "Scute")); $this->register(new Item(new IID(Ids::WHEAT), "Wheat")); + $this->register(new Item(new IID(Ids::COPPER_INGOT), "Copper Ingot")); + $this->register(new Item(new IID(Ids::RAW_COPPER), "Raw Copper")); + $this->register(new Item(new IID(Ids::RAW_IRON), "Raw Iron")); + $this->register(new Item(new IID(Ids::RAW_GOLD), "Raw Gold")); + $this->register(new Item(new IID(Ids::PHANTOM_MEMBRANE), "Phantom Membrane")); + $this->register(new Item(new IID(Ids::SPYGLASS), "Spyglass")); //the meta values for buckets are intentionally hardcoded because block IDs will change in the future $this->register(new LiquidBucket(new IID(Ids::WATER_BUCKET), "Water Bucket", Blocks::WATER())); diff --git a/src/item/ItemTypeIds.php b/src/item/ItemTypeIds.php index ebc743298..cc6a678bb 100644 --- a/src/item/ItemTypeIds.php +++ b/src/item/ItemTypeIds.php @@ -268,6 +268,31 @@ final class ItemTypeIds{ public const CRIMSON_SIGN = 20229; public const MANGROVE_SIGN = 20230; public const WARPED_SIGN = 20231; + public const AMETHYST_SHARD = 20232; + public const COPPER_INGOT = 20233; + public const DISC_FRAGMENT_5 = 20234; + public const ECHO_SHARD = 20235; + public const GLOW_INK_SAC = 20236; + public const HONEY_BOTTLE = 20237; + public const HONEYCOMB = 20238; + public const RECORD_5 = 20239; + public const RECORD_OTHERSIDE = 20240; + public const RECORD_PIGSTEP = 20241; + public const NETHERITE_INGOT = 20242; + public const NETHERITE_AXE = 20243; + public const NETHERITE_HOE = 20244; + public const NETHERITE_PICKAXE = 20245; + public const NETHERITE_SHOVEL = 20246; + public const NETHERITE_SWORD = 20247; + public const NETHERITE_BOOTS = 20248; + public const NETHERITE_CHESTPLATE = 20249; + public const NETHERITE_HELMET = 20250; + public const NETHERITE_LEGGINGS = 20251; + public const PHANTOM_MEMBRANE = 20252; + public const RAW_COPPER = 20253; + public const RAW_IRON = 20254; + public const RAW_GOLD = 20255; + public const SPYGLASS = 20256; - public const FIRST_UNUSED_ITEM_ID = 20232; + public const FIRST_UNUSED_ITEM_ID = 20239; } diff --git a/src/item/StringToItemParser.php b/src/item/StringToItemParser.php index c5f5cc1ba..6becb7e91 100644 --- a/src/item/StringToItemParser.php +++ b/src/item/StringToItemParser.php @@ -1041,6 +1041,7 @@ final class StringToItemParser extends StringToTParser{ $result->registerBlock("zombie_head", fn() => Blocks::MOB_HEAD()->setSkullType(SkullType::ZOMBIE())); $result->register("acacia_boat", fn() => Items::ACACIA_BOAT()); + $result->register("amethyst_shard", fn() => Items::AMETHYST_SHARD()); $result->register("apple", fn() => Items::APPLE()); $result->register("apple_enchanted", fn() => Items::ENCHANTED_GOLDEN_APPLE()); $result->register("appleenchanted", fn() => Items::ENCHANTED_GOLDEN_APPLE()); @@ -1138,6 +1139,7 @@ final class StringToItemParser extends StringToTParser{ $result->register("cooked_rabbit", fn() => Items::COOKED_RABBIT()); $result->register("cooked_salmon", fn() => Items::COOKED_SALMON()); $result->register("cookie", fn() => Items::COOKIE()); + $result->register("copper_ingot", fn() => Items::COPPER_INGOT()); $result->register("dark_oak_boat", fn() => Items::DARK_OAK_BOAT()); $result->register("diamond", fn() => Items::DIAMOND()); $result->register("diamond_axe", fn() => Items::DIAMOND_AXE()); @@ -1149,9 +1151,11 @@ final class StringToItemParser extends StringToTParser{ $result->register("diamond_pickaxe", fn() => Items::DIAMOND_PICKAXE()); $result->register("diamond_shovel", fn() => Items::DIAMOND_SHOVEL()); $result->register("diamond_sword", fn() => Items::DIAMOND_SWORD()); + $result->register("disc_fragment_5", fn() => Items::DISC_FRAGMENT_5()); $result->register("dragon_breath", fn() => Items::DRAGON_BREATH()); $result->register("dried_kelp", fn() => Items::DRIED_KELP()); $result->register("dye", fn() => Items::INK_SAC()); + $result->register("echo_shard", fn() => Items::ECHO_SHARD()); $result->register("egg", fn() => Items::EGG()); $result->register("emerald", fn() => Items::EMERALD()); $result->register("enchanted_golden_apple", fn() => Items::ENCHANTED_GOLDEN_APPLE()); @@ -1170,6 +1174,7 @@ final class StringToItemParser extends StringToTParser{ $result->register("ghast_tear", fn() => Items::GHAST_TEAR()); $result->register("glass_bottle", fn() => Items::GLASS_BOTTLE()); $result->register("glistering_melon", fn() => Items::GLISTERING_MELON()); + $result->register("glow_ink_sac", fn() => Items::GLOW_INK_SAC()); $result->register("glowstone_dust", fn() => Items::GLOWSTONE_DUST()); $result->register("gold_axe", fn() => Items::GOLDEN_AXE()); $result->register("gold_boots", fn() => Items::GOLDEN_BOOTS()); @@ -1200,6 +1205,7 @@ final class StringToItemParser extends StringToTParser{ $result->register("healing_potion", fn() => Items::POTION()->setType(PotionType::HEALING())); $result->register("healing_splash_potion", fn() => Items::SPLASH_POTION()->setType(PotionType::HEALING())); $result->register("heart_of_the_sea", fn() => Items::HEART_OF_THE_SEA()); + $result->register("honeycomb", fn() => Items::HONEYCOMB()); $result->register("ink_sac", fn() => Items::INK_SAC()); $result->register("invisibility_potion", fn() => Items::POTION()->setType(PotionType::INVISIBILITY())); $result->register("invisibility_splash_potion", fn() => Items::SPLASH_POTION()->setType(PotionType::INVISIBILITY())); @@ -1280,6 +1286,7 @@ final class StringToItemParser extends StringToTParser{ $result->register("oak_boat", fn() => Items::OAK_BOAT()); $result->register("painting", fn() => Items::PAINTING()); $result->register("paper", fn() => Items::PAPER()); + $result->register("phantom_membrane", fn() => Items::PHANTOM_MEMBRANE()); $result->register("poison_potion", fn() => Items::POTION()->setType(PotionType::POISON())); $result->register("poison_splash_potion", fn() => Items::SPLASH_POTION()->setType(PotionType::POISON())); $result->register("poisonous_potato", fn() => Items::POISONOUS_POTATO()); @@ -1300,8 +1307,11 @@ final class StringToItemParser extends StringToTParser{ $result->register("rabbit_stew", fn() => Items::RABBIT_STEW()); $result->register("raw_beef", fn() => Items::RAW_BEEF()); $result->register("raw_cod", fn() => Items::RAW_FISH()); + $result->register("raw_copper", fn() => Items::RAW_COPPER()); $result->register("raw_chicken", fn() => Items::RAW_CHICKEN()); $result->register("raw_fish", fn() => Items::RAW_FISH()); + $result->register("raw_gold", fn() => Items::RAW_GOLD()); + $result->register("raw_iron", fn() => Items::RAW_IRON()); $result->register("raw_mutton", fn() => Items::RAW_MUTTON()); $result->register("raw_porkchop", fn() => Items::RAW_PORKCHOP()); $result->register("raw_rabbit", fn() => Items::RAW_RABBIT()); @@ -1339,6 +1349,7 @@ final class StringToItemParser extends StringToTParser{ $result->register("spider_eye", fn() => Items::SPIDER_EYE()); $result->register("splash_potion", fn() => Items::SPLASH_POTION()); $result->register("spruce_boat", fn() => Items::SPRUCE_BOAT()); + $result->register("spyglass", fn() => Items::SPYGLASS()); $result->register("squid_spawn_egg", fn() => Items::SQUID_SPAWN_EGG()); $result->register("steak", fn() => Items::STEAK()); $result->register("stick", fn() => Items::STICK()); diff --git a/src/item/VanillaItems.php b/src/item/VanillaItems.php index a2c035fe7..9bd9ee4e9 100644 --- a/src/item/VanillaItems.php +++ b/src/item/VanillaItems.php @@ -36,6 +36,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static Boat ACACIA_BOAT() * @method static ItemBlockWallOrFloor ACACIA_SIGN() * @method static ItemBlock AIR() + * @method static Item AMETHYST_SHARD() * @method static Apple APPLE() * @method static Arrow ARROW() * @method static BakedPotato BAKED_POTATO() @@ -115,6 +116,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static CookedRabbit COOKED_RABBIT() * @method static CookedSalmon COOKED_SALMON() * @method static Cookie COOKIE() + * @method static Item COPPER_INGOT() * @method static CoralFan CORAL_FAN() * @method static ItemBlockWallOrFloor CRIMSON_SIGN() * @method static Boat DARK_OAK_BOAT() @@ -129,9 +131,11 @@ use pocketmine\utils\CloningRegistryTrait; * @method static Pickaxe DIAMOND_PICKAXE() * @method static Shovel DIAMOND_SHOVEL() * @method static Sword DIAMOND_SWORD() + * @method static Item DISC_FRAGMENT_5() * @method static Item DRAGON_BREATH() * @method static DriedKelp DRIED_KELP() * @method static Dye DYE() + * @method static Item ECHO_SHARD() * @method static Egg EGG() * @method static Item EMERALD() * @method static GoldenAppleEnchanted ENCHANTED_GOLDEN_APPLE() @@ -146,6 +150,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static GlassBottle GLASS_BOTTLE() * @method static Item GLISTERING_MELON() * @method static Item GLOWSTONE_DUST() + * @method static Item GLOW_INK_SAC() * @method static GoldenApple GOLDEN_APPLE() * @method static Axe GOLDEN_AXE() * @method static Armor GOLDEN_BOOTS() @@ -161,6 +166,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static Item GOLD_NUGGET() * @method static Item GUNPOWDER() * @method static Item HEART_OF_THE_SEA() + * @method static Item HONEYCOMB() * @method static Item INK_SAC() * @method static Axe IRON_AXE() * @method static Armor IRON_BOOTS() @@ -197,6 +203,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static ItemBlockWallOrFloor OAK_SIGN() * @method static PaintingItem PAINTING() * @method static Item PAPER() + * @method static Item PHANTOM_MEMBRANE() * @method static PoisonousPotato POISONOUS_POTATO() * @method static Item POPPED_CHORUS_FRUIT() * @method static Potato POTATO() @@ -211,7 +218,10 @@ use pocketmine\utils\CloningRegistryTrait; * @method static RabbitStew RABBIT_STEW() * @method static RawBeef RAW_BEEF() * @method static RawChicken RAW_CHICKEN() + * @method static Item RAW_COPPER() * @method static RawFish RAW_FISH() + * @method static Item RAW_GOLD() + * @method static Item RAW_IRON() * @method static RawMutton RAW_MUTTON() * @method static RawPorkchop RAW_PORKCHOP() * @method static RawRabbit RAW_RABBIT() @@ -239,6 +249,7 @@ use pocketmine\utils\CloningRegistryTrait; * @method static SplashPotion SPLASH_POTION() * @method static Boat SPRUCE_BOAT() * @method static ItemBlockWallOrFloor SPRUCE_SIGN() + * @method static Item SPYGLASS() * @method static SpawnEgg SQUID_SPAWN_EGG() * @method static Steak STEAK() * @method static Stick STICK() @@ -292,6 +303,7 @@ final class VanillaItems{ self::register("acacia_boat", $factory->fromTypeId(Ids::ACACIA_BOAT)); self::register("acacia_sign", $factory->fromTypeId(Ids::ACACIA_SIGN)); + self::register("amethyst_shard", $factory->fromTypeId(Ids::AMETHYST_SHARD)); self::register("apple", $factory->fromTypeId(Ids::APPLE)); self::register("arrow", $factory->fromTypeId(Ids::ARROW)); self::register("baked_potato", $factory->fromTypeId(Ids::BAKED_POTATO)); @@ -371,6 +383,7 @@ final class VanillaItems{ self::register("cooked_rabbit", $factory->fromTypeId(Ids::COOKED_RABBIT)); self::register("cooked_salmon", $factory->fromTypeId(Ids::COOKED_SALMON)); self::register("cookie", $factory->fromTypeId(Ids::COOKIE)); + self::register("copper_ingot", $factory->fromTypeId(Ids::COPPER_INGOT)); self::register("coral_fan", $factory->fromTypeId(Ids::CORAL_FAN)); self::register("crimson_sign", $factory->fromTypeId(Ids::CRIMSON_SIGN)); self::register("dark_oak_boat", $factory->fromTypeId(Ids::DARK_OAK_BOAT)); @@ -385,9 +398,11 @@ final class VanillaItems{ self::register("diamond_pickaxe", $factory->fromTypeId(Ids::DIAMOND_PICKAXE)); self::register("diamond_shovel", $factory->fromTypeId(Ids::DIAMOND_SHOVEL)); self::register("diamond_sword", $factory->fromTypeId(Ids::DIAMOND_SWORD)); + self::register("disc_fragment_5", $factory->fromTypeId(Ids::DISC_FRAGMENT_5)); self::register("dragon_breath", $factory->fromTypeId(Ids::DRAGON_BREATH)); self::register("dried_kelp", $factory->fromTypeId(Ids::DRIED_KELP)); self::register("dye", $factory->fromTypeId(Ids::DYE)); + self::register("echo_shard", $factory->fromTypeId(Ids::ECHO_SHARD)); self::register("egg", $factory->fromTypeId(Ids::EGG)); self::register("emerald", $factory->fromTypeId(Ids::EMERALD)); self::register("enchanted_golden_apple", $factory->fromTypeId(Ids::ENCHANTED_GOLDEN_APPLE)); @@ -401,6 +416,7 @@ final class VanillaItems{ self::register("ghast_tear", $factory->fromTypeId(Ids::GHAST_TEAR)); self::register("glass_bottle", $factory->fromTypeId(Ids::GLASS_BOTTLE)); self::register("glistering_melon", $factory->fromTypeId(Ids::GLISTERING_MELON)); + self::register("glow_ink_sac", $factory->fromTypeId(Ids::GLOW_INK_SAC)); self::register("glowstone_dust", $factory->fromTypeId(Ids::GLOWSTONE_DUST)); self::register("gold_ingot", $factory->fromTypeId(Ids::GOLD_INGOT)); self::register("gold_nugget", $factory->fromTypeId(Ids::GOLD_NUGGET)); @@ -417,6 +433,7 @@ final class VanillaItems{ self::register("golden_sword", $factory->fromTypeId(Ids::GOLDEN_SWORD)); self::register("gunpowder", $factory->fromTypeId(Ids::GUNPOWDER)); self::register("heart_of_the_sea", $factory->fromTypeId(Ids::HEART_OF_THE_SEA)); + self::register("honeycomb", $factory->fromTypeId(Ids::HONEYCOMB)); self::register("ink_sac", $factory->fromTypeId(Ids::INK_SAC)); self::register("iron_axe", $factory->fromTypeId(Ids::IRON_AXE)); self::register("iron_boots", $factory->fromTypeId(Ids::IRON_BOOTS)); @@ -453,6 +470,7 @@ final class VanillaItems{ self::register("oak_sign", $factory->fromTypeId(Ids::OAK_SIGN)); self::register("painting", $factory->fromTypeId(Ids::PAINTING)); self::register("paper", $factory->fromTypeId(Ids::PAPER)); + self::register("phantom_membrane", $factory->fromTypeId(Ids::PHANTOM_MEMBRANE)); self::register("poisonous_potato", $factory->fromTypeId(Ids::POISONOUS_POTATO)); self::register("popped_chorus_fruit", $factory->fromTypeId(Ids::POPPED_CHORUS_FRUIT)); self::register("potato", $factory->fromTypeId(Ids::POTATO)); @@ -467,7 +485,10 @@ final class VanillaItems{ self::register("rabbit_stew", $factory->fromTypeId(Ids::RABBIT_STEW)); self::register("raw_beef", $factory->fromTypeId(Ids::RAW_BEEF)); self::register("raw_chicken", $factory->fromTypeId(Ids::RAW_CHICKEN)); + self::register("raw_copper", $factory->fromTypeId(Ids::RAW_COPPER)); self::register("raw_fish", $factory->fromTypeId(Ids::RAW_FISH)); + self::register("raw_gold", $factory->fromTypeId(Ids::RAW_GOLD)); + self::register("raw_iron", $factory->fromTypeId(Ids::RAW_IRON)); self::register("raw_mutton", $factory->fromTypeId(Ids::RAW_MUTTON)); self::register("raw_porkchop", $factory->fromTypeId(Ids::RAW_PORKCHOP)); self::register("raw_rabbit", $factory->fromTypeId(Ids::RAW_RABBIT)); @@ -495,6 +516,7 @@ final class VanillaItems{ self::register("splash_potion", $factory->fromTypeId(Ids::SPLASH_POTION)); self::register("spruce_boat", $factory->fromTypeId(Ids::SPRUCE_BOAT)); self::register("spruce_sign", $factory->fromTypeId(Ids::SPRUCE_SIGN)); + self::register("spyglass", $factory->fromTypeId(Ids::SPYGLASS)); self::register("squid_spawn_egg", $factory->fromTypeId(Ids::SQUID_SPAWN_EGG)); self::register("steak", $factory->fromTypeId(Ids::STEAK)); self::register("stick", $factory->fromTypeId(Ids::STICK));