本文整理汇总了PHP中parent::light方法的典型用法代码示例。如果您正苦于以下问题:PHP parent::light方法的具体用法?PHP parent::light怎么用?PHP parent::light使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类parent
的用法示例。
在下文中一共展示了parent::light方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: pollute
public static function pollute()
{
if (parent::$list === null) {
parent::$list = new \SplFixedArray(256);
parent::$fullList = new \SplFixedArray(4096);
parent::$light = new \SplFixedArray(256);
parent::$lightFilter = new \SplFixedArray(256);
parent::$solid = new \SplFixedArray(256);
parent::$hardness = new \SplFixedArray(256);
parent::$transparent = new \SplFixedArray(256);
parent::$list[self::AIR] = Air::class;
parent::$list[self::STONE] = Stone::class;
parent::$list[self::GRASS] = Grass::class;
parent::$list[self::DIRT] = Dirt::class;
parent::$list[self::COBBLESTONE] = Cobblestone::class;
parent::$list[self::PLANKS] = Planks::class;
parent::$list[self::SAPLING] = Sapling::class;
parent::$list[self::BEDROCK] = Bedrock::class;
parent::$list[self::WATER] = Water::class;
parent::$list[self::STILL_WATER] = StillWater::class;
parent::$list[self::LAVA] = Lava::class;
parent::$list[self::STILL_LAVA] = StillLava::class;
parent::$list[self::SAND] = Sand::class;
parent::$list[self::GRAVEL] = Gravel::class;
parent::$list[self::GOLD_ORE] = GoldOre::class;
parent::$list[self::IRON_ORE] = IronOre::class;
parent::$list[self::COAL_ORE] = CoalOre::class;
parent::$list[self::WOOD] = Wood::class;
parent::$list[self::LEAVES] = Leaves::class;
parent::$list[self::SPONGE] = Sponge::class;
parent::$list[self::GLASS] = Glass::class;
parent::$list[self::LAPIS_ORE] = LapisOre::class;
parent::$list[self::LAPIS_BLOCK] = Lapis::class;
parent::$list[self::SANDSTONE] = Sandstone::class;
parent::$list[self::BED_BLOCK] = Bed::class;
parent::$list[self::COBWEB] = Cobweb::class;
parent::$list[self::TALL_GRASS] = TallGrass::class;
parent::$list[self::DEAD_BUSH] = DeadBush::class;
parent::$list[self::WOOL] = Wool::class;
parent::$list[self::DANDELION] = Dandelion::class;
parent::$list[self::RED_FLOWER] = Flower::class;
parent::$list[self::BROWN_MUSHROOM] = BrownMushroom::class;
parent::$list[self::RED_MUSHROOM] = RedMushroom::class;
parent::$list[self::GOLD_BLOCK] = Gold::class;
parent::$list[self::IRON_BLOCK] = Iron::class;
parent::$list[self::DOUBLE_SLAB] = DoubleSlab::class;
parent::$list[self::SLAB] = Slab::class;
parent::$list[self::BRICKS_BLOCK] = Bricks::class;
parent::$list[self::TNT] = TNT::class;
parent::$list[self::BOOKSHELF] = Bookshelf::class;
parent::$list[self::MOSS_STONE] = MossStone::class;
parent::$list[self::OBSIDIAN] = Obsidian::class;
parent::$list[self::TORCH] = Torch::class;
parent::$list[self::FIRE] = Fire::class;
parent::$list[self::MONSTER_SPAWNER] = MonsterSpawner::class;
parent::$list[self::WOOD_STAIRS] = WoodStairs::class;
parent::$list[self::CHEST] = Chest::class;
parent::$list[self::DIAMOND_ORE] = DiamondOre::class;
parent::$list[self::DIAMOND_BLOCK] = Diamond::class;
parent::$list[self::WORKBENCH] = Workbench::class;
parent::$list[self::WHEAT_BLOCK] = Wheat::class;
parent::$list[self::FARMLAND] = Farmland::class;
parent::$list[self::FURNACE] = Furnace::class;
parent::$list[self::BURNING_FURNACE] = BurningFurnace::class;
parent::$list[self::SIGN_POST] = SignPost::class;
parent::$list[self::WOOD_DOOR_BLOCK] = WoodDoor::class;
parent::$list[self::LADDER] = Ladder::class;
parent::$list[self::COBBLESTONE_STAIRS] = CobblestoneStairs::class;
parent::$list[self::WALL_SIGN] = WallSign::class;
parent::$list[self::IRON_DOOR_BLOCK] = IronDoor::class;
parent::$list[self::REDSTONE_ORE] = RedstoneOre::class;
parent::$list[self::GLOWING_REDSTONE_ORE] = GlowingRedstoneOre::class;
parent::$list[self::SNOW_LAYER] = SnowLayer::class;
parent::$list[self::ICE] = Ice::class;
parent::$list[self::SNOW_BLOCK] = Snow::class;
parent::$list[self::CACTUS] = Cactus::class;
parent::$list[self::CLAY_BLOCK] = Clay::class;
parent::$list[self::SUGARCANE_BLOCK] = Sugarcane::class;
parent::$list[self::FENCE] = Fence::class;
parent::$list[self::PUMPKIN] = Pumpkin::class;
parent::$list[self::NETHERRACK] = Netherrack::class;
parent::$list[self::SOUL_SAND] = SoulSand::class;
parent::$list[self::GLOWSTONE_BLOCK] = Glowstone::class;
parent::$list[self::LIT_PUMPKIN] = LitPumpkin::class;
parent::$list[self::CAKE_BLOCK] = Cake::class;
parent::$list[self::TRAPDOOR] = Trapdoor::class;
parent::$list[self::STONE_BRICKS] = StoneBricks::class;
parent::$list[self::IRON_BARS] = IronBars::class;
parent::$list[self::GLASS_PANE] = GlassPane::class;
parent::$list[self::MELON_BLOCK] = Melon::class;
parent::$list[self::PUMPKIN_STEM] = PumpkinStem::class;
parent::$list[self::MELON_STEM] = MelonStem::class;
parent::$list[self::VINE] = Vine::class;
parent::$list[self::FENCE_GATE] = FenceGate::class;
parent::$list[self::BRICK_STAIRS] = BrickStairs::class;
parent::$list[self::STONE_BRICK_STAIRS] = StoneBrickStairs::class;
parent::$list[self::MYCELIUM] = Mycelium::class;
parent::$list[self::WATER_LILY] = WaterLily::class;
parent::$list[self::NETHER_BRICKS] = NetherBrick::class;
parent::$list[self::NETHER_BRICK_FENCE] = NetherBrickFence::class;
//.........这里部分代码省略.........