mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Strip empty lines at the end of classes
This commit is contained in:
parent
b3ea9606c7
commit
05af87e1d4
@ -147,6 +147,4 @@ abstract class Achievement{
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -258,5 +258,4 @@ class CrashDump{
|
||||
public function add($str){
|
||||
fwrite($this->fp, $str);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -134,6 +134,4 @@ class OfflinePlayer implements IPlayer, Metadatable{
|
||||
public function removeMetadata(string $metadataKey, Plugin $owningPlugin){
|
||||
$this->server->getPlayerMetadata()->removeMetadata($this, $metadataKey, $owningPlugin);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -81,5 +81,4 @@ class Air extends Transparent{
|
||||
public function getBlastResistance() : float{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class Bedrock extends Solid{
|
||||
public function isBreakable(Item $item) : bool{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -52,5 +52,4 @@ class BrickStairs extends Stair{
|
||||
public function getName() : string{
|
||||
return "Brick Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class CobblestoneStairs extends Stair{
|
||||
public function getName() : string{
|
||||
return "Cobblestone Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -90,5 +90,4 @@ class CobblestoneWall extends Transparent{
|
||||
public function canConnect(Block $block){
|
||||
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,5 +30,4 @@ class DoubleStoneSlab2 extends DoubleStoneSlab{
|
||||
public function getSlabId() : int{
|
||||
return self::STONE_SLAB2;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -106,5 +106,4 @@ class EnderChest extends Chest{
|
||||
public function getFuelTime() : int{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -105,5 +105,4 @@ abstract class Fence extends Transparent{
|
||||
public function canConnect(Block $block){
|
||||
return $block instanceof static or $block instanceof FenceGate or ($block->isSolid() and !$block->isTransparent());
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -55,5 +55,4 @@ class Gravel extends Fallable{
|
||||
|
||||
return parent::getDropsForCompatibleTool($item);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -121,5 +121,4 @@ class Lava extends Liquid{
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class NetherBrickStairs extends Stair{
|
||||
public function getToolHarvestLevel() : int{
|
||||
return TieredTool::TIER_WOODEN;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -61,5 +61,4 @@ class NetherReactor extends Solid{
|
||||
ItemFactory::get(Item::DIAMOND, 0, 3)
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class PackedIce extends Solid{
|
||||
public function getToolType() : int{
|
||||
return BlockToolType::TYPE_PICKAXE;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class QuartzStairs extends Stair{
|
||||
public function getName() : string{
|
||||
return "Quartz Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -50,5 +50,4 @@ class RedMushroomBlock extends Solid{
|
||||
Item::get(Item::RED_MUSHROOM, 0, mt_rand(0, 2))
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,5 +30,4 @@ class RedSandstoneStairs extends SandstoneStairs{
|
||||
public function getName() : string{
|
||||
return "Red " . parent::getName();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class Sand extends Fallable{
|
||||
|
||||
return "Sand";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class SandstoneStairs extends Stair{
|
||||
public function getName() : string{
|
||||
return "Sandstone Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,5 +51,4 @@ class SeaLantern extends Transparent{
|
||||
ItemFactory::get(Item::PRISMARINE_CRYSTALS, 0, 3)
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,5 +56,4 @@ class Snow extends Solid{
|
||||
ItemFactory::get(Item::SNOWBALL, 0, 4)
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -56,5 +56,4 @@ class SoulSand extends Solid{
|
||||
$this->z + 1
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -39,5 +39,4 @@ class Sponge extends Solid{
|
||||
public function getName() : string{
|
||||
return "Sponge";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,5 +32,4 @@ class StainedGlass extends Glass{
|
||||
public function getName() : string{
|
||||
return ColorBlockMetaHelper::getColorFromMeta($this->meta) . " Stained Glass";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,5 +32,4 @@ class StainedGlassPane extends GlassPane{
|
||||
public function getName() : string{
|
||||
return ColorBlockMetaHelper::getColorFromMeta($this->meta) . " Stained Glass Pane";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -30,5 +30,4 @@ class StillLava extends Lava{
|
||||
public function getName() : string{
|
||||
return "Still Lava";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -76,5 +76,4 @@ class Stone extends Solid{
|
||||
|
||||
return parent::getDropsForCompatibleTool($item);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class StoneBrickStairs extends Stair{
|
||||
public function getName() : string{
|
||||
return "Stone Brick Stairs";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -145,5 +145,4 @@ class ConsoleCommandSender implements CommandSender{
|
||||
}
|
||||
$this->lineHeight = $height;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -154,5 +154,4 @@ class FormattedCommandAlias extends Command{
|
||||
private static function inRange(int $i, int $j, int $k) : bool{
|
||||
return $i >= $j and $i <= $k;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -47,6 +47,4 @@ class RemoteConsoleCommandSender extends ConsoleCommandSender{
|
||||
public function getName() : string{
|
||||
return "Rcon";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -345,6 +345,4 @@ class SimpleCommandMap implements CommandMap{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -99,5 +99,4 @@ class HelpCommand extends VanillaCommand{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -2122,5 +2122,4 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
public function __toString(){
|
||||
return (new \ReflectionClass($this))->getShortName() . "(" . $this->getId() . ")";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -99,5 +99,4 @@ class Skin{
|
||||
$this->geometryData = (string) json_encode(json_decode($this->geometryData));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -44,5 +44,4 @@ class BlockGrowEvent extends BlockEvent implements Cancellable{
|
||||
public function getNewState() : Block{
|
||||
return $this->newState;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -43,5 +43,4 @@ class BlockSpreadEvent extends BlockFormEvent{
|
||||
public function getSource() : Block{
|
||||
return $this->source;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -55,5 +55,4 @@ class EntityBlockChangeEvent extends EntityEvent implements Cancellable{
|
||||
public function getTo() : Block{
|
||||
return $this->to;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class EntityCombustByBlockEvent extends EntityCombustEvent{
|
||||
public function getCombuster() : Block{
|
||||
return $this->combuster;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,5 +45,4 @@ class EntityCombustByEntityEvent extends EntityCombustEvent{
|
||||
public function getCombuster() : Entity{
|
||||
return $this->combuster;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,5 +49,4 @@ class EntityCombustEvent extends EntityEvent implements Cancellable{
|
||||
public function setDuration(int $duration){
|
||||
$this->duration = $duration;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -51,6 +51,4 @@ class EntityDamageByBlockEvent extends EntityDamageEvent{
|
||||
public function getDamager() : Block{
|
||||
return $this->damager;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -53,6 +53,4 @@ class EntityDamageByChildEntityEvent extends EntityDamageByEntityEvent{
|
||||
public function getChild(){
|
||||
return $this->getEntity()->getLevel()->getServer()->findEntity($this->childEntityEid, $this->getEntity()->getLevel());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -59,5 +59,4 @@ class EntityDeathEvent extends EntityEvent{
|
||||
public function setDrops(array $drops){
|
||||
$this->drops = $drops;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -86,5 +86,4 @@ class EntityDespawnEvent extends EntityEvent{
|
||||
public function isItem() : bool{
|
||||
return $this->entity instanceof ItemEntity;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -65,5 +65,4 @@ class EntityEffectAddEvent extends EntityEffectEvent{
|
||||
public function getOldEffect(){
|
||||
return $this->oldEffect;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -33,5 +33,4 @@ class EntityEffectRemoveEvent extends EntityEffectEvent{
|
||||
}
|
||||
parent::setCancelled($value);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -90,5 +90,4 @@ class EntityExplodeEvent extends EntityEvent implements Cancellable{
|
||||
public function setYield(float $yield){
|
||||
$this->yield = $yield;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -75,6 +75,4 @@ class EntityInventoryChangeEvent extends EntityEvent implements Cancellable{
|
||||
public function getOldItem() : Item{
|
||||
return $this->oldItem;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -42,6 +42,4 @@ class EntityMotionEvent extends EntityEvent implements Cancellable{
|
||||
public function getVector() : Vector3{
|
||||
return $this->mot;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -71,5 +71,4 @@ class EntityRegainHealthEvent extends EntityEvent implements Cancellable{
|
||||
public function getRegainReason() : int{
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -100,6 +100,4 @@ class EntityShootBowEvent extends EntityEvent implements Cancellable{
|
||||
public function setForce(float $force){
|
||||
$this->force = $force;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -94,5 +94,4 @@ class EntitySpawnEvent extends EntityEvent{
|
||||
public function isItem() : bool{
|
||||
return $this->entity instanceof ItemEntity;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,6 +59,4 @@ class EntityTeleportEvent extends EntityEvent implements Cancellable{
|
||||
public function setTo(Position $to){
|
||||
$this->to = $to;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -69,5 +69,4 @@ class ExplosionPrimeEvent extends EntityEvent implements Cancellable{
|
||||
public function setBlockBreaking(bool $affectsBlocks){
|
||||
$this->blockBreaking = $affectsBlocks;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,5 +42,4 @@ class ItemDespawnEvent extends EntityEvent implements Cancellable{
|
||||
public function getEntity(){
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,5 +41,4 @@ class ItemSpawnEvent extends EntityEvent{
|
||||
public function getEntity(){
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,5 +41,4 @@ class ProjectileLaunchEvent extends EntityEvent implements Cancellable{
|
||||
public function getEntity(){
|
||||
return $this->entity;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,5 +45,4 @@ class InventoryCloseEvent extends InventoryEvent{
|
||||
public function getPlayer() : Player{
|
||||
return $this->who;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class InventoryOpenEvent extends InventoryEvent implements Cancellable{
|
||||
public function getPlayer() : Player{
|
||||
return $this->who;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class InventoryPickupArrowEvent extends InventoryEvent implements Cancellable{
|
||||
public function getArrow() : Arrow{
|
||||
return $this->arrow;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -46,5 +46,4 @@ class InventoryPickupItemEvent extends InventoryEvent implements Cancellable{
|
||||
public function getItem() : ItemEntity{
|
||||
return $this->item;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class InventoryTransactionEvent extends Event implements Cancellable{
|
||||
public function getTransaction() : InventoryTransaction{
|
||||
return $this->transaction;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -48,5 +48,4 @@ class PlayerAnimationEvent extends PlayerEvent implements Cancellable{
|
||||
public function getAnimationType() : int{
|
||||
return $this->animationType;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -42,5 +42,4 @@ class PlayerBedEnterEvent extends PlayerEvent implements Cancellable{
|
||||
public function getBed() : Block{
|
||||
return $this->bed;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,5 +41,4 @@ class PlayerBedLeaveEvent extends PlayerEvent{
|
||||
public function getBed() : Block{
|
||||
return $this->bed;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -72,5 +72,4 @@ class PlayerChangeSkinEvent extends PlayerEvent implements Cancellable{
|
||||
|
||||
$this->newSkin = $skin;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -68,5 +68,4 @@ class PlayerCommandPreprocessEvent extends PlayerEvent implements Cancellable{
|
||||
public function setPlayer(Player $player){
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -124,5 +124,4 @@ class PlayerCreationEvent extends Event{
|
||||
|
||||
$this->playerClass = $class;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -81,5 +81,4 @@ class PlayerDeathEvent extends EntityDeathEvent{
|
||||
public function setKeepInventory(bool $keepInventory){
|
||||
$this->keepInventory = $keepInventory;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,5 +49,4 @@ class PlayerDropItemEvent extends PlayerEvent implements Cancellable{
|
||||
public function getItem() : Item{
|
||||
return $this->drop;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -41,5 +41,4 @@ class PlayerGameModeChangeEvent extends PlayerEvent implements Cancellable{
|
||||
public function getNewGamemode() : int{
|
||||
return $this->gamemode;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,5 +49,4 @@ class PlayerItemConsumeEvent extends PlayerEvent implements Cancellable{
|
||||
public function getItem() : Item{
|
||||
return clone $this->item;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,5 +57,4 @@ class PlayerJoinEvent extends PlayerEvent{
|
||||
public function getJoinMessage(){
|
||||
return $this->joinMessage;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -38,5 +38,4 @@ class PlayerJumpEvent extends PlayerEvent{
|
||||
public function __construct(Player $player){
|
||||
$this->player = $player;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -67,5 +67,4 @@ class PlayerKickEvent extends PlayerEvent implements Cancellable{
|
||||
public function getQuitMessage(){
|
||||
return $this->quitMessage;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -55,5 +55,4 @@ class PlayerLoginEvent extends PlayerEvent implements Cancellable{
|
||||
public function getKickMessage() : string{
|
||||
return $this->kickMessage;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -55,5 +55,4 @@ class PlayerPreLoginEvent extends PlayerEvent implements Cancellable{
|
||||
public function getKickMessage() : string{
|
||||
return $this->kickMessage;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,5 +45,4 @@ class PlayerToggleFlightEvent extends PlayerEvent implements Cancellable{
|
||||
public function isFlying() : bool{
|
||||
return $this->isFlying;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,5 +45,4 @@ class PlayerToggleSneakEvent extends PlayerEvent implements Cancellable{
|
||||
public function isSneaking() : bool{
|
||||
return $this->isSneaking;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -45,5 +45,4 @@ class PlayerToggleSprintEvent extends PlayerEvent implements Cancellable{
|
||||
public function isSprinting() : bool{
|
||||
return $this->isSprinting;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -89,5 +89,4 @@ class LowMemoryEvent extends ServerEvent{
|
||||
public function getMemoryFreed() : int{
|
||||
return $this->getMemory() - ($this->isGlobal() ? Utils::getMemoryUsage(true)[1] : Utils::getMemoryUsage(true)[0]);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -278,5 +278,4 @@ class QueryRegenerateEvent extends ServerEvent{
|
||||
public function getShortQuery() : string{
|
||||
return $this->serverName . "\x00" . $this->gametype . "\x00" . $this->map . "\x00" . $this->numPlayers . "\x00" . $this->maxPlayers . "\x00" . Binary::writeLShort($this->port) . $this->ip . "\x00";
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -37,5 +37,4 @@ class RemoteServerCommandEvent extends ServerCommandEvent{
|
||||
public function __construct(CommandSender $sender, string $command){
|
||||
parent::__construct($sender, $command);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -70,5 +70,4 @@ class ServerCommandEvent extends ServerEvent implements Cancellable{
|
||||
public function setCommand(string $command){
|
||||
$this->command = $command;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -291,5 +291,4 @@ class CraftingManager{
|
||||
public function registerRecipe(Recipe $recipe) : void{
|
||||
$recipe->registerToCraftingManager($this);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -65,5 +65,4 @@ class EnderChestInventory extends ChestInventory{
|
||||
public function getHolder(){
|
||||
return $this->holder;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -40,5 +40,4 @@ class MultiRecipe{
|
||||
public function __construct(UUID $uuid){
|
||||
$this->uuid = $uuid;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -81,5 +81,4 @@ class CreativeInventoryAction extends InventoryAction{
|
||||
public function onExecuteFail(Player $source) : void{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ class Arrow extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::ARROW, $meta, "Arrow");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -32,5 +32,4 @@ class BlazeRod extends Item{
|
||||
public function getFuelTime() : int{
|
||||
return 2400;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ class Book extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::BOOK, $meta, "Book");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ class Clock extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::CLOCK, $meta, "Clock");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -35,5 +35,4 @@ class Coal extends Item{
|
||||
public function getFuelTime() : int{
|
||||
return 1600;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,5 +27,4 @@ class Compass extends Item{
|
||||
public function __construct(int $meta = 0){
|
||||
parent::__construct(self::COMPASS, $meta, "Compass");
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -965,5 +965,4 @@ class Item implements ItemIds, \JsonSerializable{
|
||||
public function __clone(){
|
||||
$this->cachedNBT = null;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -54,5 +54,4 @@ class ItemBlock extends Item{
|
||||
public function getFuelTime() : int{
|
||||
return $this->getBlock()->getFuelTime();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -49,5 +49,4 @@ class RottenFlesh extends Food{
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
|
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