mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Add EOF newlines where missing (bulk) (#1836)
This should solve issues with people making GitHub PRs and having the web editor messing things up. GitHub Web Editor sucks :(
This commit is contained in:
parent
0ee78d2416
commit
4f8e4f0522
@ -257,4 +257,4 @@ class CrashDump{
|
||||
fwrite($this->fp, $str);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -89,4 +89,4 @@ class ThreadManager extends \Volatile{
|
||||
|
||||
return $erroredThreads;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,4 +82,4 @@ class Air extends Transparent{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -115,4 +115,4 @@ class Anvil extends Fallable{
|
||||
ItemFactory::get($this->getItemId(), $this->getDamage() & 0x0c)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class Bedrock extends Solid{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class Beetroot extends Crops{
|
||||
public function getPickedItem() : Item{
|
||||
return ItemFactory::get(Item::BEETROOT_SEEDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -417,4 +417,4 @@ class BlockFactory{
|
||||
$b = self::$list[$id];
|
||||
return $b !== null and !($b instanceof UnknownBlock);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -36,4 +36,4 @@ interface BlockToolType{
|
||||
public const TYPE_AXE = 1 << 3;
|
||||
public const TYPE_SHEARS = 1 << 4;
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -61,4 +61,4 @@ class BoneBlock extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0x03;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class Bookshelf extends Solid{
|
||||
return 300;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class BrewingStand extends Transparent{
|
||||
}
|
||||
|
||||
//TODO
|
||||
}
|
||||
}
|
||||
|
@ -53,4 +53,4 @@ class BrickStairs extends Stair{
|
||||
return "Brick Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class Bricks extends Solid{
|
||||
public function getName() : string{
|
||||
return "Bricks";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ class BrownMushroom extends RedMushroom{
|
||||
public function getLightLevel() : int{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,4 +38,4 @@ class BrownMushroomBlock extends RedMushroomBlock{
|
||||
Item::get(Item::BROWN_MUSHROOM, 0, mt_rand(0, 2))
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -94,4 +94,4 @@ class BurningFurnace extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ abstract class Button extends Flowable{
|
||||
//TODO
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -132,4 +132,4 @@ class Cactus extends Transparent{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -85,4 +85,4 @@ class Carpet extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class Carrot extends Crops{
|
||||
public function getPickedItem() : Item{
|
||||
return ItemFactory::get(Item::CARROT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -143,4 +143,4 @@ class Chest extends Transparent{
|
||||
public function getFuelTime() : int{
|
||||
return 300;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class Clay extends Solid{
|
||||
ItemFactory::get(Item::CLAY_BALL, 0, 4)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class Coal extends Solid{
|
||||
public function getFuelTime() : int{
|
||||
return 16000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class CoalOre extends Solid{
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Cobblestone extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class CobblestoneStairs extends Stair{
|
||||
return "Cobblestone Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -68,4 +68,4 @@ class Cobweb extends Flowable{
|
||||
public function diffusesSkyLight() : bool{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class Concrete extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -74,4 +74,4 @@ class ConcretePowder extends Fallable{
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -58,4 +58,4 @@ class CraftingTable extends Solid{
|
||||
public function getFuelTime() : int{
|
||||
return 300;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -95,4 +95,4 @@ abstract class Crops extends Flowable{
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class Dandelion extends Flowable{
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -69,4 +69,4 @@ class DeadBush extends Flowable{
|
||||
|
||||
return parent::getDrops($item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Diamond extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_IRON;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class DiamondOre extends Solid{
|
||||
ItemFactory::get(Item::DIAMOND)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -63,4 +63,4 @@ class Dirt extends Solid{
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -286,4 +286,4 @@ abstract class Door extends Transparent{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -132,4 +132,4 @@ class DoublePlant extends Flowable{
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ abstract class DoubleSlab extends Solid{
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class DoubleStoneSlab extends DoubleSlab{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ class DoubleStoneSlab2 extends DoubleStoneSlab{
|
||||
return self::STONE_SLAB2;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -38,4 +38,4 @@ class DoubleWoodenSlab extends DoubleSlab{
|
||||
public function getToolType() : int{
|
||||
return BlockToolType::TYPE_AXE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Emerald extends Solid{
|
||||
public function getName() : string{
|
||||
return "Emerald Block";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class EmeraldOre extends Solid{
|
||||
ItemFactory::get(Item::EMERALD)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,4 +76,4 @@ class EnchantingTable extends Transparent{
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,4 +65,4 @@ class EndPortalFrame extends Solid{
|
||||
$this->z + 1
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -101,4 +101,4 @@ class EndRod extends Flowable{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class EndStone extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class EndStoneBricks extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -111,4 +111,4 @@ class EnderChest extends Chest{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ abstract class Fallable extends Solid{
|
||||
public function tickFalling() : ?Block{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,4 +112,4 @@ class Farmland extends Transparent{
|
||||
ItemFactory::get(Item::DIRT)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -114,4 +114,4 @@ class Fire extends Flowable{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -42,4 +42,4 @@ abstract class Flowable extends Transparent{
|
||||
protected function recalculateBoundingBox() : ?AxisAlignedBB{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -82,4 +82,4 @@ class Flower extends Flowable{
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -110,4 +110,4 @@ class FlowerPot extends Flowable{
|
||||
return $items;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -35,4 +35,4 @@ class Furnace extends BurningFurnace{
|
||||
public function getLightLevel() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class Glass extends Transparent{
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -44,4 +44,4 @@ class GlassPane extends Thin{
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,4 +60,4 @@ class GlazedTerracotta extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class GlowingObsidian extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_DIAMOND;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ class GlowingRedstoneOre extends RedstoneOre{
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,4 +55,4 @@ class Glowstone extends Transparent{
|
||||
ItemFactory::get(Item::GLOWSTONE_DUST, 0, mt_rand(2, 4))
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Gold extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_IRON;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class GoldOre extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_IRON;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -74,4 +74,4 @@ class GrassPath extends Transparent{
|
||||
ItemFactory::get(Item::DIRT)
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -56,4 +56,4 @@ class Gravel extends Fallable{
|
||||
return parent::getDropsForCompatibleTool($item);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class HardenedClay extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 1.25;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -54,4 +54,4 @@ class HayBale extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0x03;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -77,4 +77,4 @@ class Ice extends Transparent{
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Iron extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class IronDoor extends Door{
|
||||
public function getHardness() : float{
|
||||
return 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class IronOre extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -112,4 +112,4 @@ class ItemFrame extends Flowable{
|
||||
|
||||
return $drops;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -127,4 +127,4 @@ class Ladder extends Transparent{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Lapis extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class LapisOre extends Solid{
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -195,4 +195,4 @@ class Leaves extends Transparent{
|
||||
public function canDropApples() : bool{
|
||||
return $this->meta === self::OAK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,4 +46,4 @@ class Leaves2 extends Leaves{
|
||||
public function canDropApples() : bool{
|
||||
return $this->meta === self::DARK_OAK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -438,4 +438,4 @@ abstract class Liquid extends Transparent{
|
||||
protected function canFlowInto(Block $block) : bool{
|
||||
return $block->canBeFlowedInto() and !($block instanceof Liquid and $block->meta === 0); //TODO: I think this should only be liquids of the same type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ class LitPumpkin extends Pumpkin{
|
||||
public function getName() : string{
|
||||
return "Jack o'Lantern";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -66,4 +66,4 @@ class Magma extends Solid{
|
||||
$entity->attack($ev);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -51,4 +51,4 @@ class Melon extends Transparent{
|
||||
ItemFactory::get(Item::MELON_SLICE, 0, mt_rand(3, 7))
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -92,4 +92,4 @@ class MelonStem extends Crops{
|
||||
public function getPickedItem() : Item{
|
||||
return ItemFactory::get(Item::MELON_SEEDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -53,4 +53,4 @@ class MonsterSpawner extends Transparent{
|
||||
public function getDropsForCompatibleTool(Item $item) : array{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ class MossyCobblestone extends Cobblestone{
|
||||
public function getName() : string{
|
||||
return "Moss Stone";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,4 +38,4 @@ class NetherBrick extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -49,4 +49,4 @@ class NetherBrickStairs extends Stair{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -57,4 +57,4 @@ class NetherQuartzOre extends Solid{
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -62,4 +62,4 @@ class NetherReactor extends Solid{
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -38,4 +38,4 @@ class NetherWartBlock extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -90,4 +90,4 @@ class NetherWartPlant extends Flowable{
|
||||
ItemFactory::get($this->getItemId(), 0, ($this->getDamage() === 3 ? mt_rand(2, 4) : 1))
|
||||
];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -48,4 +48,4 @@ class Netherrack extends Solid{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -52,4 +52,4 @@ class Obsidian extends Solid{
|
||||
public function getBlastResistance() : float{
|
||||
return 6000;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class PackedIce extends Solid{
|
||||
return BlockToolType::TYPE_PICKAXE;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -42,4 +42,4 @@ class Podzol extends Solid{
|
||||
public function getHardness() : float{
|
||||
return 2.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,4 +47,4 @@ class Potato extends Crops{
|
||||
public function getPickedItem() : Item{
|
||||
return ItemFactory::get(Item::POTATO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,4 +61,4 @@ class Prismarine extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0x03;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -59,4 +59,4 @@ class Pumpkin extends Solid{
|
||||
public function getVariantBitmask() : int{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -92,4 +92,4 @@ class PumpkinStem extends Crops{
|
||||
public function getPickedItem() : Item{
|
||||
return ItemFactory::get(Item::PUMPKIN_SEEDS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user