diff --git a/src/pocketmine/block/ActivatorRail.php b/src/pocketmine/block/ActivatorRail.php new file mode 100644 index 000000000..9507a01ef --- /dev/null +++ b/src/pocketmine/block/ActivatorRail.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Activator Rail"; + } +} diff --git a/src/pocketmine/block/Block.php b/src/pocketmine/block/Block.php index fe0e7e3ca..ea53daada 100644 --- a/src/pocketmine/block/Block.php +++ b/src/pocketmine/block/Block.php @@ -63,9 +63,9 @@ class Block extends Position implements Metadatable{ const GOLD_ORE = 14; const IRON_ORE = 15; const COAL_ORE = 16; + const LOG = 17; const WOOD = 17; const TRUNK = 17; - const LOG = 17; const LEAVES = 18; const LEAVE = 18; const SPONGE = 19; @@ -74,18 +74,18 @@ class Block extends Position implements Metadatable{ const LAPIS_BLOCK = 22; const SANDSTONE = 24; - + const NOTE_BLOCK = 25; const BED_BLOCK = 26; - - + const POWERED_RAIL = 27; + const DETECTOR_RAIL = 28; const COBWEB = 30; const TALL_GRASS = 31; const BUSH = 32; const DEAD_BUSH = 32; const WOOL = 35; const DANDELION = 37; - const ROSE = 38; const POPPY = 38; + const ROSE = 38; const RED_FLOWER = 38; const BROWN_MUSHROOM = 39; const RED_MUSHROOM = 40; @@ -110,7 +110,7 @@ class Block extends Position implements Metadatable{ const OAK_WOOD_STAIRS = 53; const OAK_WOODEN_STAIRS = 53; const CHEST = 54; - + const REDSTONE_WIRE = 55; const DIAMOND_ORE = 56; const DIAMOND_BLOCK = 57; const CRAFTING_TABLE = 58; @@ -125,17 +125,20 @@ class Block extends Position implements Metadatable{ const WOODEN_DOOR_BLOCK = 64; const WOOD_DOOR_BLOCK = 64; const LADDER = 65; - + const RAIL = 66; const COBBLE_STAIRS = 67; const COBBLESTONE_STAIRS = 67; const WALL_SIGN = 68; - + const LEVER = 69; + const STONE_PRESSURE_PLATE = 70; const IRON_DOOR_BLOCK = 71; - + const WOODEN_PRESSURE_PLATE = 72; const REDSTONE_ORE = 73; const GLOWING_REDSTONE_ORE = 74; const LIT_REDSTONE_ORE = 74; - + const REDSTONE_TORCH = 75; + const LIT_REDSTONE_TORCH = 76; + const STONE_BUTTON = 77; const SNOW = 78; const SNOW_LAYER = 78; const ICE = 79; @@ -152,18 +155,17 @@ class Block extends Position implements Metadatable{ const GLOWSTONE = 89; const GLOWSTONE_BLOCK = 89; - + const PORTAL_BLOCK = 90; const LIT_PUMPKIN = 91; const JACK_O_LANTERN = 91; const CAKE_BLOCK = 92; const TRAPDOOR = 96; - const WOODEN_TRAPDOOR = 96; - const WOOD_TRAPDOOR = 96; - + const MONSTER_EGG_BLOCK = 97; const STONE_BRICKS = 98; const STONE_BRICK = 98; - + const BROWN_MUSHROOM_BLOCK = 99; + const RED_MUSHROOM_BLOCK = 100; const IRON_BAR = 101; const IRON_BARS = 101; const GLASS_PANE = 102; @@ -183,17 +185,24 @@ class Block extends Position implements Metadatable{ const NETHER_BRICK_BLOCK = 112; const NETHER_BRICK_FENCE = 113; const NETHER_BRICKS_STAIRS = 114; - + const NETHER_WART_BLOCK = 115; const ENCHANTING_TABLE = 116; const ENCHANT_TABLE = 116; const ENCHANTMENT_TABLE = 116; const BREWING_STAND = 117; + const END_PORTAL_FRAME = 120; const END_STONE = 121; + const REDSTONE_LAMP = 122; + const LIT_REDSTONE_LAMP = 123; + const ACTIVATOR_RAIL = 126; + const COCOA_BLOCK = 127; const SANDSTONE_STAIRS = 128; const EMERALD_ORE = 129; + const TRIPWIRE_HOOK = 131; + const TRIPWIRE = 132; const EMERALD_BLOCK = 133; const SPRUCE_WOOD_STAIRS = 134; const SPRUCE_WOODEN_STAIRS = 134; @@ -208,11 +217,16 @@ class Block extends Position implements Metadatable{ const FLOWER_POT_BLOCK = 140; const CARROT_BLOCK = 141; const POTATO_BLOCK = 142; - + const WOODEN_BUTTON = 143; + const MOB_HEAD_BLOCK = 144; const ANVIL = 145; const TRAPPED_CHEST = 146; + const WEIGHTED_PRESSURE_PLATE_LIGHT = 147; + const WEIGHTED_PRESSURE_PLATE_HEAVY = 148; + const DAYLIGHT_SENSOR = 151; const REDSTONE_BLOCK = 152; + const NETHER_QUARTZ_ORE = 153; const QUARTZ_BLOCK = 155; const QUARTZ_STAIRS = 156; @@ -238,6 +252,7 @@ class Block extends Position implements Metadatable{ const DARK_OAK_WOODEN_STAIRS = 164; const IRON_TRAPDOOR = 167; + const HAY_BALE = 170; const CARPET = 171; const HARDENED_CLAY = 172; @@ -245,6 +260,8 @@ class Block extends Position implements Metadatable{ const PACKED_ICE = 174; const DOUBLE_PLANT = 175; + const INVERTED_DAYLIGHT_SENSOR = 178; + const FENCE_GATE_SPRUCE = 183; const FENCE_GATE_BIRCH = 184; const FENCE_GATE_JUNGLE = 185; @@ -312,8 +329,13 @@ class Block extends Position implements Metadatable{ self::$list[self::GLASS] = Glass::class; self::$list[self::LAPIS_ORE] = LapisOre::class; self::$list[self::LAPIS_BLOCK] = Lapis::class; + self::$list[self::ACTIVATOR_RAIL] = ActivatorRail::class; + self::$list[self::COCOA_BLOCK] = CocoaBlock::class; self::$list[self::SANDSTONE] = Sandstone::class; + self::$list[self::NOTE_BLOCK] = NoteBlock::class; self::$list[self::BED_BLOCK] = Bed::class; + self::$list[self::POWERED_RAIL] = PoweredRail::class; + self::$list[self::DETECTOR_RAIL] = DetectorRail::class; self::$list[self::COBWEB] = Cobweb::class; self::$list[self::TALL_GRASS] = TallGrass::class; self::$list[self::DEAD_BUSH] = DeadBush::class; @@ -347,14 +369,20 @@ class Block extends Position implements Metadatable{ self::$list[self::SIGN_POST] = SignPost::class; self::$list[self::WOOD_DOOR_BLOCK] = WoodDoor::class; self::$list[self::LADDER] = Ladder::class; + self::$list[self::RAIL] = Rail::class; self::$list[self::COBBLESTONE_STAIRS] = CobblestoneStairs::class; self::$list[self::WALL_SIGN] = WallSign::class; - + self::$list[self::LEVER] = Lever::class; + self::$list[self::STONE_PRESSURE_PLATE] = StonePressurePlate::class; self::$list[self::IRON_DOOR_BLOCK] = IronDoor::class; + self::$list[self::WOODEN_PRESSURE_PLATE] = WoodenPressurePlate::class; self::$list[self::REDSTONE_ORE] = RedstoneOre::class; self::$list[self::GLOWING_REDSTONE_ORE] = GlowingRedstoneOre::class; + self::$list[self::REDSTONE_TORCH] = RedstoneTorch::class; + self::$list[self::LIT_REDSTONE_TORCH] = LitRedstoneTorch::class; + self::$list[self::STONE_BUTTON] = StoneButton::class; self::$list[self::SNOW_LAYER] = SnowLayer::class; self::$list[self::ICE] = Ice::class; self::$list[self::SNOW_BLOCK] = Snow::class; @@ -395,9 +423,12 @@ class Block extends Position implements Metadatable{ self::$list[self::BREWING_STAND] = BrewingStand::class; self::$list[self::END_PORTAL_FRAME] = EndPortalFrame::class; self::$list[self::END_STONE] = EndStone::class; + self::$list[self::REDSTONE_LAMP] = RedstoneLamp::class; + self::$list[self::LIT_REDSTONE_LAMP] = LitRedstoneLamp::class; self::$list[self::SANDSTONE_STAIRS] = SandstoneStairs::class; self::$list[self::EMERALD_ORE] = EmeraldOre::class; - + self::$list[self::TRIPWIRE_HOOK] = TripwireHook::class; + self::$list[self::TRIPWIRE] = Tripwire::class; self::$list[self::EMERALD_BLOCK] = Emerald::class; self::$list[self::SPRUCE_WOOD_STAIRS] = SpruceWoodStairs::class; self::$list[self::BIRCH_WOOD_STAIRS] = BirchWoodStairs::class; @@ -406,8 +437,13 @@ class Block extends Position implements Metadatable{ self::$list[self::FLOWER_POT_BLOCK] = FlowerPot::class; self::$list[self::CARROT_BLOCK] = Carrot::class; self::$list[self::POTATO_BLOCK] = Potato::class; + self::$list[self::WOODEN_BUTTON] = WoodenButton::class; self::$list[self::ANVIL] = Anvil::class; self::$list[self::TRAPPED_CHEST] = TrappedChest::class; + self::$list[self::WEIGHTED_PRESSURE_PLATE_LIGHT] = WeightedPressurePlateLight::class; + self::$list[self::WEIGHTED_PRESSURE_PLATE_HEAVY] = WeightedPressurePlateHeavy::class; + + self::$list[self::DAYLIGHT_SENSOR] = DaylightSensor::class; self::$list[self::REDSTONE_BLOCK] = Redstone::class; self::$list[self::QUARTZ_BLOCK] = Quartz::class; diff --git a/src/pocketmine/block/CocoaBlock.php b/src/pocketmine/block/CocoaBlock.php new file mode 100644 index 000000000..391ba9463 --- /dev/null +++ b/src/pocketmine/block/CocoaBlock.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Cocoa Block"; + } +} diff --git a/src/pocketmine/block/DaylightSensor.php b/src/pocketmine/block/DaylightSensor.php new file mode 100644 index 000000000..590952b42 --- /dev/null +++ b/src/pocketmine/block/DaylightSensor.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Daylight Sensor"; + } +} diff --git a/src/pocketmine/block/DetectorRail.php b/src/pocketmine/block/DetectorRail.php new file mode 100644 index 000000000..7a573bd3b --- /dev/null +++ b/src/pocketmine/block/DetectorRail.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Detector Rail"; + } +} diff --git a/src/pocketmine/block/Lever.php b/src/pocketmine/block/Lever.php new file mode 100644 index 000000000..993cd52b8 --- /dev/null +++ b/src/pocketmine/block/Lever.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Lever"; + } +} diff --git a/src/pocketmine/block/LitRedstoneLamp.php b/src/pocketmine/block/LitRedstoneLamp.php new file mode 100644 index 000000000..fe989d45f --- /dev/null +++ b/src/pocketmine/block/LitRedstoneLamp.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Lit Redstone Lamp"; + } +} diff --git a/src/pocketmine/block/LitRedstoneTorch.php b/src/pocketmine/block/LitRedstoneTorch.php new file mode 100644 index 000000000..3ae7410c1 --- /dev/null +++ b/src/pocketmine/block/LitRedstoneTorch.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Lit Redstone Torch"; + } +} diff --git a/src/pocketmine/block/NoteBlock.php b/src/pocketmine/block/NoteBlock.php new file mode 100644 index 000000000..d44a92263 --- /dev/null +++ b/src/pocketmine/block/NoteBlock.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Note Block"; + } +} diff --git a/src/pocketmine/block/Planks.php b/src/pocketmine/block/Planks.php index e0452a657..2889f0056 100644 --- a/src/pocketmine/block/Planks.php +++ b/src/pocketmine/block/Planks.php @@ -53,11 +53,11 @@ class Planks extends Solid{ self::BIRCH => "Birch Wood Planks", self::JUNGLE => "Jungle Wood Planks", self::ACACIA => "Acacia Wood Planks", - self::DARK_OAK => "Jungle Wood Planks", + self::DARK_OAK => "Dark Oak Wood Planks", "", "" ]; return $names[$this->meta & 0x07]; } -} \ No newline at end of file +} diff --git a/src/pocketmine/block/PoweredRail.php b/src/pocketmine/block/PoweredRail.php new file mode 100644 index 000000000..ec8eb9238 --- /dev/null +++ b/src/pocketmine/block/PoweredRail.php @@ -0,0 +1,34 @@ +meta = $meta; + } + + public function getName(){ + return "Powered Rail"; + } +} diff --git a/src/pocketmine/block/Rail.php b/src/pocketmine/block/Rail.php new file mode 100644 index 000000000..3712bffcf --- /dev/null +++ b/src/pocketmine/block/Rail.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Rail"; + } +} diff --git a/src/pocketmine/block/RedstoneLamp.php b/src/pocketmine/block/RedstoneLamp.php new file mode 100644 index 000000000..e3e3f16ca --- /dev/null +++ b/src/pocketmine/block/RedstoneLamp.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Redstone Lamp"; + } +} diff --git a/src/pocketmine/block/RedstoneTorch.php b/src/pocketmine/block/RedstoneTorch.php new file mode 100644 index 000000000..1c752a56e --- /dev/null +++ b/src/pocketmine/block/RedstoneTorch.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Redstone Torch"; + } +} diff --git a/src/pocketmine/block/StoneButton.php b/src/pocketmine/block/StoneButton.php new file mode 100644 index 000000000..e17a30bbb --- /dev/null +++ b/src/pocketmine/block/StoneButton.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Stone Button"; + } +} diff --git a/src/pocketmine/block/StonePressurePlate.php b/src/pocketmine/block/StonePressurePlate.php new file mode 100644 index 000000000..4d10165e8 --- /dev/null +++ b/src/pocketmine/block/StonePressurePlate.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Stone Pressure Plate"; + } +} diff --git a/src/pocketmine/block/Tripwire.php b/src/pocketmine/block/Tripwire.php new file mode 100644 index 000000000..7dd33fd8a --- /dev/null +++ b/src/pocketmine/block/Tripwire.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Tripwire"; + } +} diff --git a/src/pocketmine/block/TripwireHook.php b/src/pocketmine/block/TripwireHook.php new file mode 100644 index 000000000..38365d376 --- /dev/null +++ b/src/pocketmine/block/TripwireHook.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Tripwire Hook"; + } +} diff --git a/src/pocketmine/block/WeightedPressurePlateHeavy.php b/src/pocketmine/block/WeightedPressurePlateHeavy.php new file mode 100644 index 000000000..64a4650ac --- /dev/null +++ b/src/pocketmine/block/WeightedPressurePlateHeavy.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Weighted Pressure Plate Heavy"; + } +} diff --git a/src/pocketmine/block/WeightedPressurePlateLight.php b/src/pocketmine/block/WeightedPressurePlateLight.php new file mode 100644 index 000000000..93b73feb9 --- /dev/null +++ b/src/pocketmine/block/WeightedPressurePlateLight.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Weighted Pressure Plate Light"; + } +} diff --git a/src/pocketmine/block/WoodenButton.php b/src/pocketmine/block/WoodenButton.php new file mode 100644 index 000000000..63d625646 --- /dev/null +++ b/src/pocketmine/block/WoodenButton.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Wooden Button"; + } +} diff --git a/src/pocketmine/block/WoodenPressurePlate.php b/src/pocketmine/block/WoodenPressurePlate.php new file mode 100644 index 000000000..792a0e86e --- /dev/null +++ b/src/pocketmine/block/WoodenPressurePlate.php @@ -0,0 +1,35 @@ +meta = $meta; + } + + public function getName(){ + return "Wooden Pressure Plate"; + } +} diff --git a/src/pocketmine/item/BlazePowder.php b/src/pocketmine/item/BlazePowder.php new file mode 100644 index 000000000..ce4d771cd --- /dev/null +++ b/src/pocketmine/item/BlazePowder.php @@ -0,0 +1,28 @@ +