From 456d9a722a3b8c488cc21796587bc17dbb405b32 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 10 Mar 2020 12:36:19 +0000 Subject: [PATCH] reduce some doc comments to single line --- src/pocketmine/entity/object/ExperienceOrb.php | 8 ++------ .../transaction/action/CreativeInventoryAction.php | 8 ++------ .../mcpe/protocol/AvailableCommandsPacket.php | 4 +--- .../network/mcpe/protocol/ProtocolInfo.php | 12 +++--------- 4 files changed, 8 insertions(+), 24 deletions(-) diff --git a/src/pocketmine/entity/object/ExperienceOrb.php b/src/pocketmine/entity/object/ExperienceOrb.php index 3a70e17d9..aaea3653d 100644 --- a/src/pocketmine/entity/object/ExperienceOrb.php +++ b/src/pocketmine/entity/object/ExperienceOrb.php @@ -36,14 +36,10 @@ class ExperienceOrb extends Entity{ public const TAG_VALUE_PC = "Value"; //short public const TAG_VALUE_PE = "experience value"; //int (WTF?) - /** - * Max distance an orb will follow a player across. - */ + /** Max distance an orb will follow a player across. */ public const MAX_TARGET_DISTANCE = 8.0; - /** - * Split sizes used for dropping experience orbs. - */ + /** Split sizes used for dropping experience orbs. */ public const ORB_SPLIT_SIZES = [2477, 1237, 617, 307, 149, 73, 37, 17, 7, 3, 1]; //This is indexed biggest to smallest so that we can return as soon as we found the biggest value. /** diff --git a/src/pocketmine/inventory/transaction/action/CreativeInventoryAction.php b/src/pocketmine/inventory/transaction/action/CreativeInventoryAction.php index 91cb1d7a8..7e5b94e0f 100644 --- a/src/pocketmine/inventory/transaction/action/CreativeInventoryAction.php +++ b/src/pocketmine/inventory/transaction/action/CreativeInventoryAction.php @@ -28,13 +28,9 @@ use pocketmine\Player; class CreativeInventoryAction extends InventoryAction{ - /** - * Player put an item into the creative window to destroy it. - */ + /** Player put an item into the creative window to destroy it. */ public const TYPE_DELETE_ITEM = 0; - /** - * Player took an item from the creative window. - */ + /** Player took an item from the creative window. */ public const TYPE_CREATE_ITEM = 1; /** @var int */ diff --git a/src/pocketmine/network/mcpe/protocol/AvailableCommandsPacket.php b/src/pocketmine/network/mcpe/protocol/AvailableCommandsPacket.php index eac4833d0..3ca5484ca 100644 --- a/src/pocketmine/network/mcpe/protocol/AvailableCommandsPacket.php +++ b/src/pocketmine/network/mcpe/protocol/AvailableCommandsPacket.php @@ -75,9 +75,7 @@ class AvailableCommandsPacket extends DataPacket{ */ public const ARG_FLAG_ENUM = 0x200000; - /** - * This is used for /xp L. It can only be applied to integer parameters. - */ + /** This is used for /xp L. It can only be applied to integer parameters. */ public const ARG_FLAG_POSTFIX = 0x1000000; public const HARDCODED_ENUM_NAMES = [ diff --git a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php index 0161fa03d..8d08df6c3 100644 --- a/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php +++ b/src/pocketmine/network/mcpe/protocol/ProtocolInfo.php @@ -36,17 +36,11 @@ interface ProtocolInfo{ * This file is generated automatically, do not edit it manually. */ - /** - * Actual Minecraft: PE protocol version - */ + /** Actual Minecraft: PE protocol version */ public const CURRENT_PROTOCOL = 389; - /** - * Current Minecraft PE version reported by the server. This is usually the earliest currently supported version. - */ + /** Current Minecraft PE version reported by the server. This is usually the earliest currently supported version. */ public const MINECRAFT_VERSION = 'v1.14.0'; - /** - * Version number sent to clients in ping responses. - */ + /** Version number sent to clients in ping responses. */ public const MINECRAFT_VERSION_NETWORK = '1.14.0'; public const LOGIN_PACKET = 0x01;