From e9ae9842f06f767802e9df5ad4a75b39127c81f3 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 23 Apr 2019 14:33:57 +1000 Subject: [PATCH] Apply and enforce import ordering rules By: md_5 --- paper-api/checkstyle.xml | 15 +++++++++++- paper-api/src/main/java/org/bukkit/Art.java | 6 ++--- .../src/main/java/org/bukkit/BanEntry.java | 3 +-- .../src/main/java/org/bukkit/BanList.java | 5 ++-- .../src/main/java/org/bukkit/Bukkit.java | 13 ++++------- .../src/main/java/org/bukkit/ChatColor.java | 4 +--- .../src/main/java/org/bukkit/CoalType.java | 3 +-- paper-api/src/main/java/org/bukkit/Color.java | 4 +--- .../src/main/java/org/bukkit/CropState.java | 3 +-- .../src/main/java/org/bukkit/Difficulty.java | 3 +-- .../src/main/java/org/bukkit/DyeColor.java | 3 +-- .../src/main/java/org/bukkit/Effect.java | 4 +--- .../main/java/org/bukkit/EntityEffect.java | 3 +-- .../main/java/org/bukkit/FireworkEffect.java | 12 ++++------ .../src/main/java/org/bukkit/GameMode.java | 6 ++--- .../src/main/java/org/bukkit/GameRule.java | 5 ++-- .../main/java/org/bukkit/GrassSpecies.java | 3 +-- .../src/main/java/org/bukkit/Instrument.java | 3 +-- .../src/main/java/org/bukkit/Location.java | 1 - .../src/main/java/org/bukkit/Material.java | 2 +- paper-api/src/main/java/org/bukkit/Note.java | 6 ++--- .../main/java/org/bukkit/OfflinePlayer.java | 1 - .../main/java/org/bukkit/SandstoneType.java | 3 +-- .../src/main/java/org/bukkit/Server.java | 13 ++++------- .../main/java/org/bukkit/StructureType.java | 7 +++--- paper-api/src/main/java/org/bukkit/Tag.java | 3 +-- .../src/main/java/org/bukkit/TreeSpecies.java | 3 +-- .../src/main/java/org/bukkit/Warning.java | 3 +-- paper-api/src/main/java/org/bukkit/World.java | 12 +++++++--- .../src/main/java/org/bukkit/WorldType.java | 3 +-- .../advancement/AdvancementProgress.java | 5 ++-- .../bukkit/attribute/AttributeInstance.java | 3 +-- .../main/java/org/bukkit/block/Banner.java | 3 +-- .../src/main/java/org/bukkit/block/Block.java | 1 - .../org/bukkit/block/PistonMoveReaction.java | 3 +-- .../org/bukkit/block/banner/PatternType.java | 7 +++--- .../main/java/org/bukkit/block/data/Rail.java | 3 +-- .../main/java/org/bukkit/boss/BossBar.java | 4 +--- .../main/java/org/bukkit/command/Command.java | 4 +--- .../bukkit/command/FormattedCommandAlias.java | 1 - .../org/bukkit/command/PluginCommand.java | 1 - .../command/PluginCommandYamlParser.java | 1 - .../org/bukkit/command/SimpleCommandMap.java | 8 +++++-- .../java/org/bukkit/command/TabCompleter.java | 3 +-- .../command/defaults/BukkitCommand.java | 1 - .../bukkit/command/defaults/HelpCommand.java | 4 +--- .../command/defaults/PluginsCommand.java | 1 - .../command/defaults/ReloadCommand.java | 1 - .../command/defaults/TimingsCommand.java | 4 +--- .../command/defaults/VersionCommand.java | 23 ++++++++----------- .../bukkit/configuration/Configuration.java | 3 +-- .../configuration/ConfigurationSection.java | 5 ++-- .../configuration/MemoryConfiguration.java | 1 - .../bukkit/configuration/MemorySection.java | 2 -- .../configuration/file/FileConfiguration.java | 7 ++---- .../file/FileConfigurationOptions.java | 3 ++- .../configuration/file/YamlConfiguration.java | 1 - .../configuration/file/YamlConstructor.java | 6 ++--- .../configuration/file/YamlRepresenter.java | 2 -- .../ConfigurationSerializable.java | 3 +-- .../ConfigurationSerialization.java | 3 +-- .../DelegateDeserialization.java | 3 +-- .../serialization/SerializableAs.java | 3 +-- .../bukkit/conversations/Conversation.java | 7 +++--- .../ConversationAbandonedEvent.java | 3 +-- .../ConversationAbandonedListener.java | 3 +-- .../conversations/ConversationContext.java | 3 +-- .../conversations/ConversationFactory.java | 9 ++++---- .../bukkit/conversations/FixedSetPrompt.java | 6 ++--- .../org/bukkit/conversations/RegexPrompt.java | 4 +--- .../org/bukkit/enchantments/Enchantment.java | 1 - .../java/org/bukkit/entity/AnimalTamer.java | 3 +-- .../main/java/org/bukkit/entity/Animals.java | 3 +-- .../bukkit/entity/ComplexLivingEntity.java | 3 +-- .../main/java/org/bukkit/entity/Entity.java | 13 +++++------ .../java/org/bukkit/entity/EntityType.java | 17 +++++++------- .../java/org/bukkit/entity/HumanEntity.java | 4 ++-- .../java/org/bukkit/entity/LivingEntity.java | 1 - .../main/java/org/bukkit/entity/Player.java | 1 - .../java/org/bukkit/entity/ThrownPotion.java | 1 - .../java/org/bukkit/entity/TippedArrow.java | 1 - .../java/org/bukkit/event/HandlerList.java | 9 +++++--- .../event/block/BlockCanBuildEvent.java | 2 +- .../bukkit/event/block/BlockExplodeEvent.java | 3 +-- .../event/block/BlockFertilizeEvent.java | 1 - .../event/block/BlockMultiPlaceEvent.java | 3 +-- .../bukkit/event/block/BlockPhysicsEvent.java | 2 +- .../event/block/BlockPistonExtendEvent.java | 1 - .../bukkit/event/block/SpongeAbsorbEvent.java | 4 ++-- .../event/enchantment/EnchantItemEvent.java | 1 - .../entity/AreaEffectCloudApplyEvent.java | 1 - .../entity/EntityDamageByBlockEvent.java | 3 +-- .../entity/EntityDamageByEntityEvent.java | 3 +-- .../event/entity/EntityDamageEvent.java | 8 +++---- .../event/entity/EntityExplodeEvent.java | 4 +--- .../event/entity/EntityPortalEnterEvent.java | 2 +- .../bukkit/event/entity/HorseJumpEvent.java | 2 +- .../bukkit/event/entity/ItemSpawnEvent.java | 1 - .../bukkit/event/entity/PlayerDeathEvent.java | 1 - .../event/entity/PotionSplashEvent.java | 1 - .../event/inventory/InventoryClickEvent.java | 8 +++---- .../event/inventory/InventoryDragEvent.java | 4 +--- .../event/inventory/InventoryEvent.java | 3 +-- .../inventory/InventoryInteractEvent.java | 4 ++-- .../event/inventory/InventoryOpenEvent.java | 2 +- .../event/player/AsyncPlayerChatEvent.java | 1 - .../player/AsyncPlayerPreLoginEvent.java | 1 - .../PlayerArmorStandManipulateEvent.java | 4 ++-- .../bukkit/event/player/PlayerChatEvent.java | 1 - .../player/PlayerChatTabCompleteEvent.java | 1 - .../player/PlayerCommandPreprocessEvent.java | 1 - .../bukkit/event/player/PlayerFishEvent.java | 4 ++-- .../event/player/PlayerInteractEvent.java | 6 ++--- .../bukkit/event/player/PlayerLoginEvent.java | 1 - .../event/player/PlayerPreLoginEvent.java | 1 - .../event/server/ServerListPingEvent.java | 1 - .../bukkit/event/world/PortalCreateEvent.java | 11 ++++----- .../bukkit/event/world/SpawnChangeEvent.java | 2 +- .../bukkit/help/GenericCommandHelpTopic.java | 2 +- .../main/java/org/bukkit/help/HelpMap.java | 5 ++-- .../org/bukkit/help/HelpTopicComparator.java | 3 +-- .../java/org/bukkit/help/IndexHelpTopic.java | 3 +-- .../java/org/bukkit/inventory/Inventory.java | 1 - .../java/org/bukkit/inventory/ItemStack.java | 1 - .../java/org/bukkit/inventory/Merchant.java | 1 - .../org/bukkit/inventory/MerchantRecipe.java | 3 +-- .../org/bukkit/inventory/ShapedRecipe.java | 2 -- .../org/bukkit/inventory/ShapelessRecipe.java | 2 -- .../org/bukkit/inventory/meta/BookMeta.java | 1 - .../meta/EnchantmentStorageMeta.java | 1 - .../bukkit/inventory/meta/FireworkMeta.java | 1 - .../org/bukkit/inventory/meta/ItemMeta.java | 3 +-- .../org/bukkit/inventory/meta/PotionMeta.java | 5 ++-- .../main/java/org/bukkit/loot/LootTable.java | 5 ++-- .../main/java/org/bukkit/map/MapCanvas.java | 3 +-- .../org/bukkit/map/MapCursorCollection.java | 5 ++-- .../main/java/org/bukkit/map/MapPalette.java | 5 ++-- .../main/java/org/bukkit/material/Button.java | 2 +- .../main/java/org/bukkit/material/Ladder.java | 2 +- .../main/java/org/bukkit/material/Lever.java | 2 +- .../org/bukkit/material/MaterialData.java | 2 +- .../java/org/bukkit/material/MonsterEggs.java | 1 - .../java/org/bukkit/material/Mushroom.java | 1 - .../main/java/org/bukkit/material/Sign.java | 2 +- .../java/org/bukkit/material/SmoothBrick.java | 1 - .../main/java/org/bukkit/material/Step.java | 1 - .../org/bukkit/material/TexturedMaterial.java | 1 - .../main/java/org/bukkit/material/Torch.java | 2 +- .../main/java/org/bukkit/material/Vine.java | 1 - .../material/types/MushroomBlockTexture.java | 7 ++---- .../bukkit/metadata/LazyMetadataValue.java | 1 - .../org/bukkit/metadata/MetadataStore.java | 3 +-- .../bukkit/metadata/MetadataStoreBase.java | 9 ++++++-- .../bukkit/metadata/MetadataValueAdapter.java | 1 - .../java/org/bukkit/metadata/Metadatable.java | 3 +-- .../org/bukkit/permissions/Permission.java | 1 - .../bukkit/permissions/PermissionDefault.java | 5 ++-- .../main/java/org/bukkit/plugin/Plugin.java | 1 - .../bukkit/plugin/PluginDescriptionFile.java | 10 ++++---- .../java/org/bukkit/plugin/PluginLoader.java | 1 - .../java/org/bukkit/plugin/PluginLogger.java | 3 +-- .../java/org/bukkit/plugin/PluginManager.java | 1 - .../org/bukkit/plugin/RegisteredListener.java | 6 ++++- .../org/bukkit/plugin/ServicesManager.java | 5 ++-- .../bukkit/plugin/SimplePluginManager.java | 4 +--- .../bukkit/plugin/SimpleServicesManager.java | 14 +++++------ .../org/bukkit/plugin/java/JavaPlugin.java | 4 +--- .../bukkit/plugin/java/JavaPluginLoader.java | 1 - .../bukkit/plugin/java/PluginClassLoader.java | 1 - .../main/java/org/bukkit/potion/Potion.java | 1 - .../java/org/bukkit/potion/PotionBrewer.java | 3 +-- .../java/org/bukkit/potion/PotionEffect.java | 4 +--- .../org/bukkit/potion/PotionEffectType.java | 1 - .../org/bukkit/scheduler/BukkitScheduler.java | 7 +++--- .../org/bukkit/scoreboard/Scoreboard.java | 1 - .../bukkit/scoreboard/ScoreboardManager.java | 3 +-- .../main/java/org/bukkit/scoreboard/Team.java | 1 - .../java/org/bukkit/util/BlockIterator.java | 8 +++---- .../java/org/bukkit/util/ChatPaginator.java | 7 +++--- .../main/java/org/bukkit/util/FileUtil.java | 5 ++-- .../java/org/bukkit/util/RayTraceResult.java | 1 - .../util/io/BukkitObjectInputStream.java | 1 - .../util/io/BukkitObjectOutputStream.java | 1 - .../main/java/org/bukkit/util/io/Wrapper.java | 4 +--- .../src/test/java/org/bukkit/ArtTest.java | 6 ++--- .../java/org/bukkit/BukkitMirrorTest.java | 7 ++---- .../test/java/org/bukkit/ChatColorTest.java | 6 ++--- .../java/org/bukkit/ChatPaginatorTest.java | 6 ++--- .../test/java/org/bukkit/CoalTypeTest.java | 5 ++-- .../src/test/java/org/bukkit/ColorTest.java | 1 - .../test/java/org/bukkit/CropStateTest.java | 5 ++-- .../test/java/org/bukkit/DifficultyTest.java | 5 ++-- .../test/java/org/bukkit/DyeColorTest.java | 4 +--- .../src/test/java/org/bukkit/EffectTest.java | 5 ++-- .../java/org/bukkit/EntityEffectTest.java | 5 ++-- .../test/java/org/bukkit/GameModeTest.java | 5 ++-- .../java/org/bukkit/GrassSpeciesTest.java | 5 ++-- .../test/java/org/bukkit/InstrumentTest.java | 5 ++-- .../test/java/org/bukkit/LocationTest.java | 5 +--- .../test/java/org/bukkit/MaterialTest.java | 1 - .../src/test/java/org/bukkit/NoteTest.java | 17 ++++---------- .../src/test/java/org/bukkit/TestServer.java | 4 +--- .../test/java/org/bukkit/TreeSpeciesTest.java | 5 ++-- .../test/java/org/bukkit/WorldTypeTest.java | 5 ++-- .../ConfigurationSectionTest.java | 4 ++-- .../configuration/ConfigurationTest.java | 4 ++-- .../file/FileConfigurationTest.java | 2 +- .../file/YamlConfigurationTest.java | 2 +- .../ConversationContextTest.java | 3 +-- .../conversations/ConversationTest.java | 2 +- .../bukkit/conversations/FakeConversable.java | 3 +-- .../conversations/ValidatingPromptTest.java | 3 +-- .../event/PlayerChatTabCompleteEventTest.java | 8 +++---- .../bukkit/materials/MaterialDataTest.java | 7 +++--- .../metadata/FixedMetadataValueTest.java | 4 +--- .../metadata/LazyMetadataValueTest.java | 6 ++--- .../metadata/MetadataConversionTest.java | 3 +-- .../bukkit/metadata/MetadataStoreTest.java | 6 +---- .../metadata/MetadataValueAdapterTest.java | 3 +-- .../org/bukkit/plugin/PluginManagerTest.java | 2 -- .../java/org/bukkit/plugin/TestPlugin.java | 1 - .../plugin/TimedRegisteredListenerTest.java | 1 - .../messaging/StandardMessengerTest.java | 8 +++---- .../plugin/messaging/TestMessageListener.java | 2 +- .../bukkit/plugin/messaging/TestPlayer.java | 1 - .../java/org/bukkit/util/BoundingBoxTest.java | 2 -- .../bukkit/util/StringUtilStartsWithTest.java | 5 +--- .../java/org/bukkit/util/StringUtilTest.java | 5 +--- .../test/java/org/bukkit/util/VectorTest.java | 2 +- .../util/io/BukkitObjectStreamTest.java | 5 +--- 230 files changed, 321 insertions(+), 548 deletions(-) diff --git a/paper-api/checkstyle.xml b/paper-api/checkstyle.xml index 8372bb7140..bd5e885c83 100644 --- a/paper-api/checkstyle.xml +++ b/paper-api/checkstyle.xml @@ -19,8 +19,21 @@ - + + + + + + + + + + + + + + diff --git a/paper-api/src/main/java/org/bukkit/Art.java b/paper-api/src/main/java/org/bukkit/Art.java index c65487389c..e7563acf43 100644 --- a/paper-api/src/main/java/org/bukkit/Art.java +++ b/paper-api/src/main/java/org/bukkit/Art.java @@ -1,10 +1,8 @@ package org.bukkit; -import java.util.HashMap; - -import org.apache.commons.lang.Validate; - import com.google.common.collect.Maps; +import java.util.HashMap; +import org.apache.commons.lang.Validate; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/BanEntry.java b/paper-api/src/main/java/org/bukkit/BanEntry.java index 30c8b0a0c6..2cf11ca4f6 100644 --- a/paper-api/src/main/java/org/bukkit/BanEntry.java +++ b/paper-api/src/main/java/org/bukkit/BanEntry.java @@ -1,10 +1,9 @@ package org.bukkit; +import java.util.Date; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Date; - /** * A single entry from a ban list. This may represent either a player ban or * an IP ban. diff --git a/paper-api/src/main/java/org/bukkit/BanList.java b/paper-api/src/main/java/org/bukkit/BanList.java index f506b644ad..96ef22fe87 100644 --- a/paper-api/src/main/java/org/bukkit/BanList.java +++ b/paper-api/src/main/java/org/bukkit/BanList.java @@ -1,10 +1,9 @@ package org.bukkit; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Date; import java.util.Set; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * A ban list, containing bans of some {@link Type}. diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index b47cc31d80..17d2a6ecef 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -1,5 +1,6 @@ package org.bukkit; +import com.google.common.collect.ImmutableList; import java.awt.image.BufferedImage; import java.io.File; import java.io.Serializable; @@ -12,8 +13,8 @@ import java.util.Set; import java.util.UUID; import java.util.function.Consumer; import java.util.logging.Logger; - import org.bukkit.Warning.WarningState; +import org.bukkit.advancement.Advancement; import org.bukkit.block.data.BlockData; import org.bukkit.boss.BarColor; import org.bukkit.boss.BarFlag; @@ -28,12 +29,15 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.inventory.InventoryType; import org.bukkit.event.server.ServerListPingEvent; +import org.bukkit.generator.ChunkGenerator; import org.bukkit.help.HelpMap; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; +import org.bukkit.inventory.ItemFactory; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.Merchant; import org.bukkit.inventory.Recipe; +import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.loot.LootTable; import org.bukkit.map.MapView; import org.bukkit.permissions.Permissible; @@ -43,13 +47,6 @@ import org.bukkit.plugin.messaging.Messenger; import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.scoreboard.ScoreboardManager; import org.bukkit.util.CachedServerIcon; - -import com.google.common.collect.ImmutableList; -import org.bukkit.advancement.Advancement; -import org.bukkit.generator.ChunkGenerator; - -import org.bukkit.inventory.ItemFactory; -import org.bukkit.inventory.meta.ItemMeta; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/ChatColor.java b/paper-api/src/main/java/org/bukkit/ChatColor.java index b8f4fcabf5..e155215665 100644 --- a/paper-api/src/main/java/org/bukkit/ChatColor.java +++ b/paper-api/src/main/java/org/bukkit/ChatColor.java @@ -1,11 +1,9 @@ package org.bukkit; +import com.google.common.collect.Maps; import java.util.Map; import java.util.regex.Pattern; - import org.apache.commons.lang.Validate; - -import com.google.common.collect.Maps; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/CoalType.java b/paper-api/src/main/java/org/bukkit/CoalType.java index c9fcc5dd48..c07499dbdd 100644 --- a/paper-api/src/main/java/org/bukkit/CoalType.java +++ b/paper-api/src/main/java/org/bukkit/CoalType.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/Color.java b/paper-api/src/main/java/org/bukkit/Color.java index fbad459059..e7aa3d1b9e 100644 --- a/paper-api/src/main/java/org/bukkit/Color.java +++ b/paper-api/src/main/java/org/bukkit/Color.java @@ -1,12 +1,10 @@ package org.bukkit; +import com.google.common.collect.ImmutableMap; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.configuration.serialization.SerializableAs; - -import com.google.common.collect.ImmutableMap; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/CropState.java b/paper-api/src/main/java/org/bukkit/CropState.java index 8a9a36cf40..fb4832fb79 100644 --- a/paper-api/src/main/java/org/bukkit/CropState.java +++ b/paper-api/src/main/java/org/bukkit/CropState.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/Difficulty.java b/paper-api/src/main/java/org/bukkit/Difficulty.java index 9568207796..3f6cbefc2b 100644 --- a/paper-api/src/main/java/org/bukkit/Difficulty.java +++ b/paper-api/src/main/java/org/bukkit/Difficulty.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/DyeColor.java b/paper-api/src/main/java/org/bukkit/DyeColor.java index d00c8f9135..bd213cabdd 100644 --- a/paper-api/src/main/java/org/bukkit/DyeColor.java +++ b/paper-api/src/main/java/org/bukkit/DyeColor.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.ImmutableMap; +import java.util.Map; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/Effect.java b/paper-api/src/main/java/org/bukkit/Effect.java index e476de6589..87911e08b7 100644 --- a/paper-api/src/main/java/org/bukkit/Effect.java +++ b/paper-api/src/main/java/org/bukkit/Effect.java @@ -1,9 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; - +import java.util.Map; import org.bukkit.block.BlockFace; import org.bukkit.potion.Potion; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/EntityEffect.java b/paper-api/src/main/java/org/bukkit/EntityEffect.java index c201a54b1b..4cec72688a 100644 --- a/paper-api/src/main/java/org/bukkit/EntityEffect.java +++ b/paper-api/src/main/java/org/bukkit/EntityEffect.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.bukkit.entity.Ageable; import org.bukkit.entity.ArmorStand; import org.bukkit.entity.Entity; diff --git a/paper-api/src/main/java/org/bukkit/FireworkEffect.java b/paper-api/src/main/java/org/bukkit/FireworkEffect.java index 524dc99894..31e14b0ce3 100644 --- a/paper-api/src/main/java/org/bukkit/FireworkEffect.java +++ b/paper-api/src/main/java/org/bukkit/FireworkEffect.java @@ -1,14 +1,12 @@ package org.bukkit; -import java.util.List; -import java.util.Map; - -import org.apache.commons.lang.Validate; -import org.bukkit.configuration.serialization.ConfigurationSerializable; -import org.bukkit.configuration.serialization.SerializableAs; - import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; +import java.util.List; +import java.util.Map; +import org.apache.commons.lang.Validate; +import org.bukkit.configuration.serialization.ConfigurationSerializable; +import org.bukkit.configuration.serialization.SerializableAs; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/GameMode.java b/paper-api/src/main/java/org/bukkit/GameMode.java index 168c4dc8eb..938c3217f9 100644 --- a/paper-api/src/main/java/org/bukkit/GameMode.java +++ b/paper-api/src/main/java/org/bukkit/GameMode.java @@ -1,10 +1,8 @@ package org.bukkit; -import java.util.Map; - -import org.bukkit.entity.HumanEntity; - import com.google.common.collect.Maps; +import java.util.Map; +import org.bukkit.entity.HumanEntity; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/GameRule.java b/paper-api/src/main/java/org/bukkit/GameRule.java index da49c26c51..60a00324ca 100644 --- a/paper-api/src/main/java/org/bukkit/GameRule.java +++ b/paper-api/src/main/java/org/bukkit/GameRule.java @@ -1,11 +1,10 @@ package org.bukkit; import com.google.common.base.Preconditions; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.HashMap; import java.util.Map; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * GameRules dictate certain behavior within Minecraft itself diff --git a/paper-api/src/main/java/org/bukkit/GrassSpecies.java b/paper-api/src/main/java/org/bukkit/GrassSpecies.java index c178847e4e..f9c9ae463a 100644 --- a/paper-api/src/main/java/org/bukkit/GrassSpecies.java +++ b/paper-api/src/main/java/org/bukkit/GrassSpecies.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/Instrument.java b/paper-api/src/main/java/org/bukkit/Instrument.java index 2a6dd05c1a..92194803bc 100644 --- a/paper-api/src/main/java/org/bukkit/Instrument.java +++ b/paper-api/src/main/java/org/bukkit/Instrument.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; public enum Instrument { diff --git a/paper-api/src/main/java/org/bukkit/Location.java b/paper-api/src/main/java/org/bukkit/Location.java index 19b23e8ec9..39e57fe1dd 100644 --- a/paper-api/src/main/java/org/bukkit/Location.java +++ b/paper-api/src/main/java/org/bukkit/Location.java @@ -2,7 +2,6 @@ package org.bukkit; import java.util.HashMap; import java.util.Map; - import org.bukkit.block.Block; import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.util.NumberConversions; diff --git a/paper-api/src/main/java/org/bukkit/Material.java b/paper-api/src/main/java/org/bukkit/Material.java index bafc41ecf2..bb694bfb2b 100644 --- a/paper-api/src/main/java/org/bukkit/Material.java +++ b/paper-api/src/main/java/org/bukkit/Material.java @@ -16,9 +16,9 @@ import org.bukkit.block.data.Lightable; import org.bukkit.block.data.MultipleFacing; import org.bukkit.block.data.Orientable; import org.bukkit.block.data.Powerable; +import org.bukkit.block.data.Rail; import org.bukkit.block.data.Rotatable; import org.bukkit.block.data.Snowable; -import org.bukkit.block.data.Rail; import org.bukkit.block.data.Waterlogged; import org.bukkit.block.data.type.Bamboo; import org.bukkit.block.data.type.Bed; diff --git a/paper-api/src/main/java/org/bukkit/Note.java b/paper-api/src/main/java/org/bukkit/Note.java index 6aa02542bf..b1c86aefb6 100644 --- a/paper-api/src/main/java/org/bukkit/Note.java +++ b/paper-api/src/main/java/org/bukkit/Note.java @@ -1,10 +1,8 @@ package org.bukkit; -import java.util.Map; - -import org.apache.commons.lang.Validate; - import com.google.common.collect.Maps; +import java.util.Map; +import org.apache.commons.lang.Validate; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java index cf8a2cb8a8..11eedda633 100644 --- a/paper-api/src/main/java/org/bukkit/OfflinePlayer.java +++ b/paper-api/src/main/java/org/bukkit/OfflinePlayer.java @@ -1,7 +1,6 @@ package org.bukkit; import java.util.UUID; - import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.entity.AnimalTamer; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/SandstoneType.java b/paper-api/src/main/java/org/bukkit/SandstoneType.java index 8f859ac10a..6277451c3c 100644 --- a/paper-api/src/main/java/org/bukkit/SandstoneType.java +++ b/paper-api/src/main/java/org/bukkit/SandstoneType.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index c7e64545cf..1b48b8ee21 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -1,5 +1,6 @@ package org.bukkit; +import com.google.common.collect.ImmutableList; import java.awt.image.BufferedImage; import java.io.File; import java.io.Serializable; @@ -12,8 +13,8 @@ import java.util.Set; import java.util.UUID; import java.util.function.Consumer; import java.util.logging.Logger; - import org.bukkit.Warning.WarningState; +import org.bukkit.advancement.Advancement; import org.bukkit.block.data.BlockData; import org.bukkit.boss.BarColor; import org.bukkit.boss.BarFlag; @@ -28,12 +29,15 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.inventory.InventoryType; import org.bukkit.event.server.ServerListPingEvent; +import org.bukkit.generator.ChunkGenerator; import org.bukkit.help.HelpMap; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; +import org.bukkit.inventory.ItemFactory; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.Merchant; import org.bukkit.inventory.Recipe; +import org.bukkit.inventory.meta.ItemMeta; import org.bukkit.loot.LootTable; import org.bukkit.map.MapView; import org.bukkit.permissions.Permissible; @@ -44,13 +48,6 @@ import org.bukkit.plugin.messaging.PluginMessageRecipient; import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.scoreboard.ScoreboardManager; import org.bukkit.util.CachedServerIcon; - -import com.google.common.collect.ImmutableList; -import org.bukkit.advancement.Advancement; -import org.bukkit.generator.ChunkGenerator; - -import org.bukkit.inventory.ItemFactory; -import org.bukkit.inventory.meta.ItemMeta; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/StructureType.java b/paper-api/src/main/java/org/bukkit/StructureType.java index 5c2e69772e..e062c90ead 100644 --- a/paper-api/src/main/java/org/bukkit/StructureType.java +++ b/paper-api/src/main/java/org/bukkit/StructureType.java @@ -2,15 +2,14 @@ package org.bukkit; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; import org.apache.commons.lang.Validate; import org.bukkit.map.MapCursor; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - /** * This class handles the creation and storage of all structure types for * Bukkit. Structure Types are the different kinds of structures that can be diff --git a/paper-api/src/main/java/org/bukkit/Tag.java b/paper-api/src/main/java/org/bukkit/Tag.java index cb8daefb8e..1d9021b0b0 100644 --- a/paper-api/src/main/java/org/bukkit/Tag.java +++ b/paper-api/src/main/java/org/bukkit/Tag.java @@ -1,8 +1,7 @@ package org.bukkit; -import org.jetbrains.annotations.NotNull; - import java.util.Set; +import org.jetbrains.annotations.NotNull; /** * Represents a tag that may be defined by the server or a resource pack to diff --git a/paper-api/src/main/java/org/bukkit/TreeSpecies.java b/paper-api/src/main/java/org/bukkit/TreeSpecies.java index d3a15d1983..2b177f98a7 100644 --- a/paper-api/src/main/java/org/bukkit/TreeSpecies.java +++ b/paper-api/src/main/java/org/bukkit/TreeSpecies.java @@ -1,8 +1,7 @@ package org.bukkit; -import java.util.Map; - import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/Warning.java b/paper-api/src/main/java/org/bukkit/Warning.java index f86f25a0da..91c9cb8fa3 100644 --- a/paper-api/src/main/java/org/bukkit/Warning.java +++ b/paper-api/src/main/java/org/bukkit/Warning.java @@ -1,12 +1,11 @@ package org.bukkit; +import com.google.common.collect.ImmutableMap; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.util.Map; - -import com.google.common.collect.ImmutableMap; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 28cc16199d..5ac1be9dfe 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -1,19 +1,25 @@ package org.bukkit; import java.io.File; -import org.bukkit.generator.ChunkGenerator; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.function.Predicate; - import org.bukkit.block.Biome; import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; -import org.bukkit.entity.*; +import org.bukkit.entity.Arrow; +import org.bukkit.entity.Entity; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.FallingBlock; +import org.bukkit.entity.Item; +import org.bukkit.entity.LightningStrike; +import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; import org.bukkit.generator.BlockPopulator; +import org.bukkit.generator.ChunkGenerator; import org.bukkit.inventory.ItemStack; import org.bukkit.material.MaterialData; import org.bukkit.metadata.Metadatable; diff --git a/paper-api/src/main/java/org/bukkit/WorldType.java b/paper-api/src/main/java/org/bukkit/WorldType.java index 8052a49c79..f98b13e717 100644 --- a/paper-api/src/main/java/org/bukkit/WorldType.java +++ b/paper-api/src/main/java/org/bukkit/WorldType.java @@ -1,11 +1,10 @@ package org.bukkit; import com.google.common.collect.Maps; +import java.util.Map; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Map; - /** * Represents various types of worlds that may exist */ diff --git a/paper-api/src/main/java/org/bukkit/advancement/AdvancementProgress.java b/paper-api/src/main/java/org/bukkit/advancement/AdvancementProgress.java index 00823dc9b8..f9bc179da0 100644 --- a/paper-api/src/main/java/org/bukkit/advancement/AdvancementProgress.java +++ b/paper-api/src/main/java/org/bukkit/advancement/AdvancementProgress.java @@ -1,10 +1,9 @@ package org.bukkit.advancement; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Collection; import java.util.Date; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * The individual status of an advancement for a player. This class is not diff --git a/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java b/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java index 18bafb04e6..f08ee26cc4 100644 --- a/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java +++ b/paper-api/src/main/java/org/bukkit/attribute/AttributeInstance.java @@ -1,8 +1,7 @@ package org.bukkit.attribute; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; +import org.jetbrains.annotations.NotNull; /** * Represents a mutable instance of an attribute and its associated modifiers diff --git a/paper-api/src/main/java/org/bukkit/block/Banner.java b/paper-api/src/main/java/org/bukkit/block/Banner.java index befa9da6f7..92fe953ade 100644 --- a/paper-api/src/main/java/org/bukkit/block/Banner.java +++ b/paper-api/src/main/java/org/bukkit/block/Banner.java @@ -1,11 +1,10 @@ package org.bukkit.block; +import java.util.List; import org.bukkit.DyeColor; import org.bukkit.block.banner.Pattern; import org.jetbrains.annotations.NotNull; -import java.util.List; - /** * Represents a captured state of a banner. */ diff --git a/paper-api/src/main/java/org/bukkit/block/Block.java b/paper-api/src/main/java/org/bukkit/block/Block.java index 323767d621..ab6750c7a5 100644 --- a/paper-api/src/main/java/org/bukkit/block/Block.java +++ b/paper-api/src/main/java/org/bukkit/block/Block.java @@ -1,7 +1,6 @@ package org.bukkit.block; import java.util.Collection; - import org.bukkit.Chunk; import org.bukkit.FluidCollisionMode; import org.bukkit.Location; diff --git a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java index 02df886824..b90f5dc345 100644 --- a/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java +++ b/paper-api/src/main/java/org/bukkit/block/PistonMoveReaction.java @@ -1,9 +1,8 @@ package org.bukkit.block; -import org.jetbrains.annotations.Nullable; - import java.util.HashMap; import java.util.Map; +import org.jetbrains.annotations.Nullable; /** * Represents how a block or entity will react when interacting with a piston diff --git a/paper-api/src/main/java/org/bukkit/block/banner/PatternType.java b/paper-api/src/main/java/org/bukkit/block/banner/PatternType.java index 95f55a4468..c9eb4d59d0 100644 --- a/paper-api/src/main/java/org/bukkit/block/banner/PatternType.java +++ b/paper-api/src/main/java/org/bukkit/block/banner/PatternType.java @@ -1,11 +1,10 @@ package org.bukkit.block.banner; -import org.jetbrains.annotations.Contract; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.HashMap; import java.util.Map; +import org.jetbrains.annotations.Contract; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; public enum PatternType { BASE("b"), diff --git a/paper-api/src/main/java/org/bukkit/block/data/Rail.java b/paper-api/src/main/java/org/bukkit/block/data/Rail.java index e8300a7414..b899388001 100644 --- a/paper-api/src/main/java/org/bukkit/block/data/Rail.java +++ b/paper-api/src/main/java/org/bukkit/block/data/Rail.java @@ -1,8 +1,7 @@ package org.bukkit.block.data; -import org.jetbrains.annotations.NotNull; - import java.util.Set; +import org.jetbrains.annotations.NotNull; /** * 'shape' represents the current layout of a minecart rail. diff --git a/paper-api/src/main/java/org/bukkit/boss/BossBar.java b/paper-api/src/main/java/org/bukkit/boss/BossBar.java index acaf8ff0b0..70274f2e2a 100644 --- a/paper-api/src/main/java/org/bukkit/boss/BossBar.java +++ b/paper-api/src/main/java/org/bukkit/boss/BossBar.java @@ -1,12 +1,10 @@ package org.bukkit.boss; +import java.util.List; import org.bukkit.entity.Player; -import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.List; - public interface BossBar { /** diff --git a/paper-api/src/main/java/org/bukkit/command/Command.java b/paper-api/src/main/java/org/bukkit/command/Command.java index b55c514dcb..03d801a9e0 100644 --- a/paper-api/src/main/java/org/bukkit/command/Command.java +++ b/paper-api/src/main/java/org/bukkit/command/Command.java @@ -1,10 +1,10 @@ package org.bukkit.command; +import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -16,8 +16,6 @@ import org.bukkit.entity.minecart.CommandMinecart; import org.bukkit.permissions.Permissible; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.util.StringUtil; - -import com.google.common.collect.ImmutableList; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/command/FormattedCommandAlias.java b/paper-api/src/main/java/org/bukkit/command/FormattedCommandAlias.java index 2035880ee3..d6c8938b1e 100644 --- a/paper-api/src/main/java/org/bukkit/command/FormattedCommandAlias.java +++ b/paper-api/src/main/java/org/bukkit/command/FormattedCommandAlias.java @@ -1,7 +1,6 @@ package org.bukkit.command; import java.util.ArrayList; - import org.bukkit.Bukkit; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/command/PluginCommand.java b/paper-api/src/main/java/org/bukkit/command/PluginCommand.java index 92c23424e2..30597d30ff 100644 --- a/paper-api/src/main/java/org/bukkit/command/PluginCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/PluginCommand.java @@ -1,7 +1,6 @@ package org.bukkit.command; import java.util.List; - import org.apache.commons.lang.Validate; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/command/PluginCommandYamlParser.java b/paper-api/src/main/java/org/bukkit/command/PluginCommandYamlParser.java index 92b3f79973..a542c4bb3c 100644 --- a/paper-api/src/main/java/org/bukkit/command/PluginCommandYamlParser.java +++ b/paper-api/src/main/java/org/bukkit/command/PluginCommandYamlParser.java @@ -4,7 +4,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; - import org.bukkit.Bukkit; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java index aa44e79eb3..906734ec1a 100644 --- a/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java +++ b/paper-api/src/main/java/org/bukkit/command/SimpleCommandMap.java @@ -8,11 +8,15 @@ import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.Location; import org.bukkit.Server; -import org.bukkit.command.defaults.*; +import org.bukkit.command.defaults.BukkitCommand; +import org.bukkit.command.defaults.HelpCommand; +import org.bukkit.command.defaults.PluginsCommand; +import org.bukkit.command.defaults.ReloadCommand; +import org.bukkit.command.defaults.TimingsCommand; +import org.bukkit.command.defaults.VersionCommand; import org.bukkit.entity.Player; import org.bukkit.util.StringUtil; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/command/TabCompleter.java b/paper-api/src/main/java/org/bukkit/command/TabCompleter.java index 80127fda31..e9cf71f5ce 100644 --- a/paper-api/src/main/java/org/bukkit/command/TabCompleter.java +++ b/paper-api/src/main/java/org/bukkit/command/TabCompleter.java @@ -1,10 +1,9 @@ package org.bukkit.command; +import java.util.List; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.List; - /** * Represents a class which can suggest tab completions for commands. */ diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/BukkitCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/BukkitCommand.java index 1d8249da2d..cb032d038f 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/BukkitCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/BukkitCommand.java @@ -1,7 +1,6 @@ package org.bukkit.command.defaults; import java.util.List; - import org.bukkit.command.Command; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/HelpCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/HelpCommand.java index 391283bd4f..3ec11eb291 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/HelpCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/HelpCommand.java @@ -1,5 +1,6 @@ package org.bukkit.command.defaults; +import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; @@ -7,7 +8,6 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; - import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.Validate; @@ -21,8 +21,6 @@ import org.bukkit.help.HelpTopic; import org.bukkit.help.HelpTopicComparator; import org.bukkit.help.IndexHelpTopic; import org.bukkit.util.ChatPaginator; - -import com.google.common.collect.ImmutableList; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/PluginsCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/PluginsCommand.java index 6f95bf3ca6..11fbd0e0c9 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/PluginsCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/PluginsCommand.java @@ -3,7 +3,6 @@ package org.bukkit.command.defaults; import java.util.Arrays; import java.util.Collections; import java.util.List; - import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java index 1104c60372..50cc311be7 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/ReloadCommand.java @@ -3,7 +3,6 @@ package org.bukkit.command.defaults; import java.util.Arrays; import java.util.Collections; import java.util.List; - import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command; diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/TimingsCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/TimingsCommand.java index c4f1979a13..db27723e32 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/TimingsCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/TimingsCommand.java @@ -1,11 +1,11 @@ package org.bukkit.command.defaults; +import com.google.common.collect.ImmutableList; import java.io.File; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; - import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -16,8 +16,6 @@ import org.bukkit.plugin.Plugin; import org.bukkit.plugin.RegisteredListener; import org.bukkit.plugin.TimedRegisteredListener; import org.bukkit.util.StringUtil; - -import com.google.common.collect.ImmutableList; import org.jetbrains.annotations.NotNull; public class TimingsCommand extends BukkitCommand { diff --git a/paper-api/src/main/java/org/bukkit/command/defaults/VersionCommand.java b/paper-api/src/main/java/org/bukkit/command/defaults/VersionCommand.java index b8126985d9..cbce524442 100644 --- a/paper-api/src/main/java/org/bukkit/command/defaults/VersionCommand.java +++ b/paper-api/src/main/java/org/bukkit/command/defaults/VersionCommand.java @@ -1,18 +1,6 @@ package org.bukkit.command.defaults; import com.google.common.base.Charsets; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; - -import org.apache.commons.lang.Validate; -import org.bukkit.Bukkit; -import org.bukkit.ChatColor; -import org.bukkit.command.CommandSender; -import org.bukkit.plugin.Plugin; -import org.bukkit.plugin.PluginDescriptionFile; -import org.bukkit.util.StringUtil; - import com.google.common.collect.ImmutableList; import com.google.common.io.Resources; import com.google.gson.Gson; @@ -22,10 +10,19 @@ import java.io.BufferedReader; import java.io.IOException; import java.net.URL; import java.net.URLEncoder; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashSet; +import java.util.List; import java.util.Set; import java.util.concurrent.locks.ReentrantLock; - +import org.apache.commons.lang.Validate; +import org.bukkit.Bukkit; +import org.bukkit.ChatColor; +import org.bukkit.command.CommandSender; +import org.bukkit.plugin.Plugin; +import org.bukkit.plugin.PluginDescriptionFile; +import org.bukkit.util.StringUtil; import org.jetbrains.annotations.NotNull; public class VersionCommand extends BukkitCommand { diff --git a/paper-api/src/main/java/org/bukkit/configuration/Configuration.java b/paper-api/src/main/java/org/bukkit/configuration/Configuration.java index 7f7e3ff717..cfa63e8fb7 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/Configuration.java +++ b/paper-api/src/main/java/org/bukkit/configuration/Configuration.java @@ -1,10 +1,9 @@ package org.bukkit.configuration; +import java.util.Map; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Map; - /** * Represents a source of configurable options and settings */ diff --git a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java index e83de68ac6..bab2106d24 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java +++ b/paper-api/src/main/java/org/bukkit/configuration/ConfigurationSection.java @@ -1,14 +1,13 @@ package org.bukkit.configuration; +import java.util.List; import java.util.Map; import java.util.Set; -import java.util.List; - import org.bukkit.Color; import org.bukkit.OfflinePlayer; import org.bukkit.configuration.serialization.ConfigurationSerializable; -import org.bukkit.util.Vector; import org.bukkit.inventory.ItemStack; +import org.bukkit.util.Vector; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java index e03108b123..df1e076dc0 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java +++ b/paper-api/src/main/java/org/bukkit/configuration/MemoryConfiguration.java @@ -1,7 +1,6 @@ package org.bukkit.configuration; import java.util.Map; - import org.apache.commons.lang.Validate; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java b/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java index 37bb1c67a7..6fdd75e7b3 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java +++ b/paper-api/src/main/java/org/bukkit/configuration/MemorySection.java @@ -1,14 +1,12 @@ package org.bukkit.configuration; import static org.bukkit.util.NumberConversions.*; - import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.Color; import org.bukkit.OfflinePlayer; diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java index 82746d71f7..581889ffa2 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfiguration.java @@ -2,10 +2,6 @@ package org.bukkit.configuration.file; import com.google.common.base.Charsets; import com.google.common.io.Files; - -import org.apache.commons.lang.Validate; -import org.bukkit.configuration.InvalidConfigurationException; - import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; @@ -16,8 +12,9 @@ import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; - +import org.apache.commons.lang.Validate; import org.bukkit.configuration.Configuration; +import org.bukkit.configuration.InvalidConfigurationException; import org.bukkit.configuration.MemoryConfiguration; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java index 4919f6c939..eaa0afacec 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/FileConfigurationOptions.java @@ -1,6 +1,7 @@ package org.bukkit.configuration.file; -import org.bukkit.configuration.*; +import org.bukkit.configuration.MemoryConfiguration; +import org.bukkit.configuration.MemoryConfigurationOptions; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java index 441e7ff981..dc8cb19371 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConfiguration.java @@ -6,7 +6,6 @@ import java.io.IOException; import java.io.Reader; import java.util.Map; import java.util.logging.Level; - import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.configuration.Configuration; diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConstructor.java b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConstructor.java index 397b58c534..c8466a29a2 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/YamlConstructor.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/YamlConstructor.java @@ -2,16 +2,14 @@ package org.bukkit.configuration.file; import java.util.LinkedHashMap; import java.util.Map; - +import org.bukkit.configuration.serialization.ConfigurationSerialization; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.constructor.SafeConstructor; import org.yaml.snakeyaml.error.YAMLException; +import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.nodes.Tag; -import org.bukkit.configuration.serialization.ConfigurationSerialization; - public class YamlConstructor extends SafeConstructor { public YamlConstructor() { diff --git a/paper-api/src/main/java/org/bukkit/configuration/file/YamlRepresenter.java b/paper-api/src/main/java/org/bukkit/configuration/file/YamlRepresenter.java index 63cb35555c..f03da36223 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/file/YamlRepresenter.java +++ b/paper-api/src/main/java/org/bukkit/configuration/file/YamlRepresenter.java @@ -2,11 +2,9 @@ package org.bukkit.configuration.file; import java.util.LinkedHashMap; import java.util.Map; - import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.configuration.serialization.ConfigurationSerialization; - import org.jetbrains.annotations.NotNull; import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.representer.Representer; diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java index a666db15e5..177944d4e8 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java +++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerializable.java @@ -1,8 +1,7 @@ package org.bukkit.configuration.serialization; -import org.jetbrains.annotations.NotNull; - import java.util.Map; +import org.jetbrains.annotations.NotNull; /** * Represents an object that may be serialized. diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java index 76d9b9662d..8c9b4f6967 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java +++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/ConfigurationSerialization.java @@ -8,7 +8,6 @@ import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logger; - import org.apache.commons.lang.Validate; import org.bukkit.Color; import org.bukkit.FireworkEffect; @@ -18,8 +17,8 @@ import org.bukkit.block.banner.Pattern; import org.bukkit.configuration.Configuration; import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; -import org.bukkit.util.BoundingBox; import org.bukkit.util.BlockVector; +import org.bukkit.util.BoundingBox; import org.bukkit.util.Vector; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java index 2fa5d2dfef..1383961161 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java +++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/DelegateDeserialization.java @@ -1,11 +1,10 @@ package org.bukkit.configuration.serialization; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.jetbrains.annotations.NotNull; /** * Applies to a {@link ConfigurationSerializable} that will delegate all diff --git a/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java b/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java index 9f4e795049..725685ed34 100644 --- a/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java +++ b/paper-api/src/main/java/org/bukkit/configuration/serialization/SerializableAs.java @@ -1,11 +1,10 @@ package org.bukkit.configuration.serialization; -import org.jetbrains.annotations.NotNull; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.jetbrains.annotations.NotNull; /** * Represents an "alias" that a {@link ConfigurationSerializable} may be diff --git a/paper-api/src/main/java/org/bukkit/conversations/Conversation.java b/paper-api/src/main/java/org/bukkit/conversations/Conversation.java index cb77dbd3c4..bf2407c838 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/Conversation.java +++ b/paper-api/src/main/java/org/bukkit/conversations/Conversation.java @@ -1,13 +1,12 @@ package org.bukkit.conversations; -import org.bukkit.plugin.Plugin; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.bukkit.plugin.Plugin; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * The Conversation class is responsible for tracking the current state of a diff --git a/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedEvent.java b/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedEvent.java index 5c634789db..0d67fe0c00 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedEvent.java +++ b/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedEvent.java @@ -1,10 +1,9 @@ package org.bukkit.conversations; +import java.util.EventObject; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.EventObject; - /** * ConversationAbandonedEvent contains information about an abandoned * conversation. diff --git a/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedListener.java b/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedListener.java index 48585ce53d..451121e7df 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedListener.java +++ b/paper-api/src/main/java/org/bukkit/conversations/ConversationAbandonedListener.java @@ -1,8 +1,7 @@ package org.bukkit.conversations; -import org.jetbrains.annotations.NotNull; - import java.util.EventListener; +import org.jetbrains.annotations.NotNull; /** */ diff --git a/paper-api/src/main/java/org/bukkit/conversations/ConversationContext.java b/paper-api/src/main/java/org/bukkit/conversations/ConversationContext.java index b192b03be4..5bc0d36fe2 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/ConversationContext.java +++ b/paper-api/src/main/java/org/bukkit/conversations/ConversationContext.java @@ -1,11 +1,10 @@ package org.bukkit.conversations; +import java.util.Map; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Map; - /** * A ConversationContext provides continuity between nodes in the prompt graph * by giving the developer access to the subject of the conversation and a diff --git a/paper-api/src/main/java/org/bukkit/conversations/ConversationFactory.java b/paper-api/src/main/java/org/bukkit/conversations/ConversationFactory.java index efaaa7d94d..ec8129def4 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/ConversationFactory.java +++ b/paper-api/src/main/java/org/bukkit/conversations/ConversationFactory.java @@ -1,14 +1,13 @@ package org.bukkit.conversations; -import org.bukkit.entity.Player; -import org.bukkit.plugin.Plugin; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; +import org.bukkit.entity.Player; +import org.bukkit.plugin.Plugin; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * A ConversationFactory is responsible for creating a {@link Conversation} diff --git a/paper-api/src/main/java/org/bukkit/conversations/FixedSetPrompt.java b/paper-api/src/main/java/org/bukkit/conversations/FixedSetPrompt.java index bd3a8b400a..9bf3336fae 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/FixedSetPrompt.java +++ b/paper-api/src/main/java/org/bukkit/conversations/FixedSetPrompt.java @@ -1,11 +1,9 @@ package org.bukkit.conversations; -import org.apache.commons.lang.StringUtils; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Arrays; import java.util.List; +import org.apache.commons.lang.StringUtils; +import org.jetbrains.annotations.NotNull; /** * FixedSetPrompt is the base class for any prompt that requires a fixed set diff --git a/paper-api/src/main/java/org/bukkit/conversations/RegexPrompt.java b/paper-api/src/main/java/org/bukkit/conversations/RegexPrompt.java index a081c19aef..6b3f1e4591 100644 --- a/paper-api/src/main/java/org/bukkit/conversations/RegexPrompt.java +++ b/paper-api/src/main/java/org/bukkit/conversations/RegexPrompt.java @@ -1,9 +1,7 @@ package org.bukkit.conversations; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.regex.Pattern; +import org.jetbrains.annotations.NotNull; /** * RegexPrompt is the base class for any prompt that requires an input diff --git a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java index f871cfcec7..d1885f178f 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/Enchantment.java @@ -2,7 +2,6 @@ package org.bukkit.enchantments; import java.util.HashMap; import java.util.Map; - import org.bukkit.Keyed; import org.bukkit.NamespacedKey; import org.bukkit.inventory.ItemStack; diff --git a/paper-api/src/main/java/org/bukkit/entity/AnimalTamer.java b/paper-api/src/main/java/org/bukkit/entity/AnimalTamer.java index 9f1eed9ba5..2e17b2d4f7 100644 --- a/paper-api/src/main/java/org/bukkit/entity/AnimalTamer.java +++ b/paper-api/src/main/java/org/bukkit/entity/AnimalTamer.java @@ -1,10 +1,9 @@ package org.bukkit.entity; +import java.util.UUID; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.UUID; - public interface AnimalTamer { /** diff --git a/paper-api/src/main/java/org/bukkit/entity/Animals.java b/paper-api/src/main/java/org/bukkit/entity/Animals.java index 3d4f8c3d46..1047481e41 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Animals.java +++ b/paper-api/src/main/java/org/bukkit/entity/Animals.java @@ -1,8 +1,7 @@ package org.bukkit.entity; -import org.jetbrains.annotations.Nullable; - import java.util.UUID; +import org.jetbrains.annotations.Nullable; /** * Represents an Animal. diff --git a/paper-api/src/main/java/org/bukkit/entity/ComplexLivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/ComplexLivingEntity.java index 038bcb6dc7..2151e3bac0 100644 --- a/paper-api/src/main/java/org/bukkit/entity/ComplexLivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/ComplexLivingEntity.java @@ -1,8 +1,7 @@ package org.bukkit.entity; -import org.jetbrains.annotations.NotNull; - import java.util.Set; +import org.jetbrains.annotations.NotNull; /** * Represents a complex living entity - one that is made up of various smaller diff --git a/paper-api/src/main/java/org/bukkit/entity/Entity.java b/paper-api/src/main/java/org/bukkit/entity/Entity.java index a1e74cb09b..7fdcedf329 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Entity.java +++ b/paper-api/src/main/java/org/bukkit/entity/Entity.java @@ -1,23 +1,22 @@ package org.bukkit.entity; +import java.util.List; +import java.util.Set; +import java.util.UUID; import org.bukkit.EntityEffect; import org.bukkit.Location; import org.bukkit.Nameable; import org.bukkit.Server; import org.bukkit.World; import org.bukkit.block.BlockFace; +import org.bukkit.block.PistonMoveReaction; +import org.bukkit.command.CommandSender; import org.bukkit.event.entity.EntityDamageEvent; +import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.bukkit.material.Directional; import org.bukkit.metadata.Metadatable; import org.bukkit.util.BoundingBox; import org.bukkit.util.Vector; - -import java.util.List; -import java.util.Set; -import java.util.UUID; -import org.bukkit.block.PistonMoveReaction; -import org.bukkit.command.CommandSender; -import org.bukkit.event.player.PlayerTeleportEvent.TeleportCause; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/entity/EntityType.java b/paper-api/src/main/java/org/bukkit/entity/EntityType.java index 3873503032..86a185a330 100644 --- a/paper-api/src/main/java/org/bukkit/entity/EntityType.java +++ b/paper-api/src/main/java/org/bukkit/entity/EntityType.java @@ -3,19 +3,18 @@ package org.bukkit.entity; import com.google.common.base.Preconditions; import java.util.HashMap; import java.util.Map; - import org.bukkit.Keyed; -import org.bukkit.entity.minecart.CommandMinecart; -import org.bukkit.entity.minecart.HopperMinecart; -import org.bukkit.entity.minecart.SpawnerMinecart; -import org.bukkit.entity.minecart.RideableMinecart; -import org.bukkit.entity.minecart.ExplosiveMinecart; -import org.bukkit.entity.minecart.PoweredMinecart; -import org.bukkit.entity.minecart.StorageMinecart; -import org.bukkit.inventory.ItemStack; import org.bukkit.Location; import org.bukkit.NamespacedKey; import org.bukkit.World; +import org.bukkit.entity.minecart.CommandMinecart; +import org.bukkit.entity.minecart.ExplosiveMinecart; +import org.bukkit.entity.minecart.HopperMinecart; +import org.bukkit.entity.minecart.PoweredMinecart; +import org.bukkit.entity.minecart.RideableMinecart; +import org.bukkit.entity.minecart.SpawnerMinecart; +import org.bukkit.entity.minecart.StorageMinecart; +import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffectType; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java index f76bc85c40..9cb5c3be56 100644 --- a/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/HumanEntity.java @@ -5,12 +5,12 @@ import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.NamespacedKey; -import org.bukkit.inventory.MainHand; -import org.bukkit.inventory.Merchant; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; +import org.bukkit.inventory.MainHand; +import org.bukkit.inventory.Merchant; import org.bukkit.inventory.PlayerInventory; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java index af8ea5ca07..5427c99a26 100644 --- a/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java +++ b/paper-api/src/main/java/org/bukkit/entity/LivingEntity.java @@ -3,7 +3,6 @@ package org.bukkit.entity; import java.util.Collection; import java.util.List; import java.util.Set; - import org.bukkit.FluidCollisionMode; import org.bukkit.Location; import org.bukkit.Material; diff --git a/paper-api/src/main/java/org/bukkit/entity/Player.java b/paper-api/src/main/java/org/bukkit/entity/Player.java index e77eb822c5..ab9045e2e7 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Player.java +++ b/paper-api/src/main/java/org/bukkit/entity/Player.java @@ -1,7 +1,6 @@ package org.bukkit.entity; import java.net.InetSocketAddress; - import org.bukkit.Achievement; import org.bukkit.Effect; import org.bukkit.GameMode; diff --git a/paper-api/src/main/java/org/bukkit/entity/ThrownPotion.java b/paper-api/src/main/java/org/bukkit/entity/ThrownPotion.java index 02218457ae..10a3c297bd 100644 --- a/paper-api/src/main/java/org/bukkit/entity/ThrownPotion.java +++ b/paper-api/src/main/java/org/bukkit/entity/ThrownPotion.java @@ -1,7 +1,6 @@ package org.bukkit.entity; import java.util.Collection; - import org.bukkit.inventory.ItemStack; import org.bukkit.potion.PotionEffect; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java b/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java index d53b40d34d..61846e8b7a 100644 --- a/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java +++ b/paper-api/src/main/java/org/bukkit/entity/TippedArrow.java @@ -1,7 +1,6 @@ package org.bukkit.entity; import java.util.List; - import org.bukkit.Color; import org.bukkit.potion.PotionData; import org.bukkit.potion.PotionEffect; diff --git a/paper-api/src/main/java/org/bukkit/event/HandlerList.java b/paper-api/src/main/java/org/bukkit/event/HandlerList.java index e73e8d4c34..ed78cca71f 100644 --- a/paper-api/src/main/java/org/bukkit/event/HandlerList.java +++ b/paper-api/src/main/java/org/bukkit/event/HandlerList.java @@ -1,12 +1,15 @@ package org.bukkit.event; +import java.util.ArrayList; +import java.util.Collection; +import java.util.EnumMap; +import java.util.List; +import java.util.ListIterator; +import java.util.Map.Entry; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.RegisteredListener; import org.jetbrains.annotations.NotNull; -import java.util.*; -import java.util.Map.Entry; - /** * A list of event handlers, stored per-event. Based on lahwran's fevents. */ diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java index 3c9903c045..977eb8d39e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockCanBuildEvent.java @@ -1,7 +1,7 @@ package org.bukkit.event.block; -import org.bukkit.block.Block; import org.bukkit.Material; +import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java index 635d4bc0e2..2b9816d327 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockExplodeEvent.java @@ -1,12 +1,11 @@ package org.bukkit.event.block; +import java.util.List; import org.bukkit.block.Block; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; -import java.util.List; - /** * Called when a block explodes */ diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockFertilizeEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockFertilizeEvent.java index 1d12e68ccd..695309b4b7 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockFertilizeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockFertilizeEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.block; import java.util.List; - import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java index e4f7ca66d2..fe2ec79dd6 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockMultiPlaceEvent.java @@ -1,14 +1,13 @@ package org.bukkit.event.block; import com.google.common.collect.ImmutableList; +import java.util.List; import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; -import java.util.List; - /** * Fired when a single block placement action of a player triggers the * creation of multiple blocks(e.g. placing a bed block). The block returned diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java index 026ca7f1cf..aabbcbb0b1 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java @@ -1,7 +1,7 @@ package org.bukkit.event.block; -import org.bukkit.block.Block; import org.bukkit.Material; +import org.bukkit.block.Block; import org.bukkit.block.data.BlockData; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java index 51bca6515c..40ddc36497 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockPistonExtendEvent.java @@ -3,7 +3,6 @@ package org.bukkit.event.block; import java.util.ArrayList; import java.util.Collections; import java.util.List; - import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.event.HandlerList; diff --git a/paper-api/src/main/java/org/bukkit/event/block/SpongeAbsorbEvent.java b/paper-api/src/main/java/org/bukkit/event/block/SpongeAbsorbEvent.java index ab98bba61a..7029cfcd00 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/SpongeAbsorbEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/SpongeAbsorbEvent.java @@ -1,11 +1,11 @@ package org.bukkit.event.block; +import java.util.List; +import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.BlockState; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -import java.util.List; -import org.bukkit.Material; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java b/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java index ac1b1cb9a0..59d46b52a0 100644 --- a/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/enchantment/EnchantItemEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.enchantment; import java.util.HashMap; import java.util.Map; - import org.bukkit.block.Block; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java index 618db8ed31..a37febd0d4 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/AreaEffectCloudApplyEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.entity; import java.util.List; - import org.bukkit.entity.AreaEffectCloud; import org.bukkit.entity.LivingEntity; import org.bukkit.event.Cancellable; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java index 4c519eba84..461727dc7f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByBlockEvent.java @@ -1,8 +1,7 @@ package org.bukkit.event.entity; -import java.util.Map; - import com.google.common.base.Function; +import java.util.Map; import org.bukkit.block.Block; import org.bukkit.entity.Entity; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java index b6e8669626..869bad7405 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageByEntityEvent.java @@ -1,8 +1,7 @@ package org.bukkit.event.entity; -import java.util.Map; - import com.google.common.base.Function; +import java.util.Map; import org.bukkit.entity.Entity; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java index 477ecfbc84..b5d8a34c6f 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java @@ -1,18 +1,16 @@ package org.bukkit.event.entity; +import com.google.common.base.Function; +import com.google.common.base.Functions; +import com.google.common.collect.ImmutableMap; import java.util.EnumMap; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.Material; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; - -import com.google.common.base.Function; -import com.google.common.base.Functions; -import com.google.common.collect.ImmutableMap; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java index 21eb09293f..a483f385c7 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityExplodeEvent.java @@ -1,14 +1,12 @@ package org.bukkit.event.entity; +import java.util.List; import org.bukkit.Location; import org.bukkit.block.Block; import org.bukkit.entity.Entity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - -import java.util.List; /** * Called when an entity explodes diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java index e949072bad..6818e9f0ba 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityPortalEnterEvent.java @@ -1,7 +1,7 @@ package org.bukkit.event.entity; -import org.bukkit.entity.Entity; import org.bukkit.Location; +import org.bukkit.entity.Entity; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/HorseJumpEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/HorseJumpEvent.java index 74588fc8f7..d38cc3cb09 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/HorseJumpEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/HorseJumpEvent.java @@ -1,8 +1,8 @@ package org.bukkit.event.entity; +import org.bukkit.entity.AbstractHorse; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; -import org.bukkit.entity.AbstractHorse; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java index 657589da85..faf98bb59a 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/ItemSpawnEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.entity; import org.bukkit.Location; -import org.bukkit.UndefinedNullability; import org.bukkit.entity.Item; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java index 5b0ef1eb16..f0dda632d4 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.entity; import java.util.List; - import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java index 45d224ec9b..17b49300e5 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/PotionSplashEvent.java @@ -3,7 +3,6 @@ package org.bukkit.event.entity; import java.util.ArrayList; import java.util.Collection; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.entity.LivingEntity; import org.bukkit.entity.ThrownPotion; diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java index f8dde282c8..02766d933f 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java @@ -1,15 +1,15 @@ package org.bukkit.event.inventory; -import org.bukkit.inventory.Inventory; -import org.bukkit.inventory.InventoryView; +import org.bukkit.Location; import org.bukkit.entity.HumanEntity; import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.bukkit.event.inventory.InventoryType.SlotType; -import org.bukkit.Location; +import org.bukkit.inventory.Inventory; +import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; -import org.bukkit.scheduler.BukkitScheduler; import org.bukkit.plugin.Plugin; +import org.bukkit.scheduler.BukkitScheduler; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryDragEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryDragEvent.java index 67409477ca..856e945c51 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryDragEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryDragEvent.java @@ -1,9 +1,9 @@ package org.bukkit.event.inventory; +import com.google.common.collect.ImmutableSet; import java.util.Collections; import java.util.Map; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.Location; import org.bukkit.entity.HumanEntity; @@ -14,8 +14,6 @@ import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.ItemStack; import org.bukkit.plugin.Plugin; import org.bukkit.scheduler.BukkitScheduler; - -import com.google.common.collect.ImmutableSet; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryEvent.java index cc534420d7..5d3fe64ab9 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryEvent.java @@ -2,10 +2,9 @@ package org.bukkit.event.inventory; import java.util.List; - -import org.bukkit.event.HandlerList; import org.bukkit.entity.HumanEntity; import org.bukkit.event.Event; +import org.bukkit.event.HandlerList; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryView; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java index 3b1d14365b..b75b184df2 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryInteractEvent.java @@ -64,8 +64,8 @@ public abstract class InventoryInteractEvent extends InventoryEvent implements C } /** - * Proxy method to {@link #setResult(Event.Result)} for the Cancellable - * interface. {@link #setResult(Event.Result)} is preferred, as it allows + * Proxy method to {@link #setResult(org.bukkit.event.Event.Result)} for the Cancellable + * interface. {@link #setResult(org.bukkit.event.Event.Result)} is preferred, as it allows * you to specify the Result beyond Result.DENY and Result.ALLOW. *

* {@inheritDoc} diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryOpenEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryOpenEvent.java index 331a1bd73e..946e346042 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/InventoryOpenEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/inventory/InventoryOpenEvent.java @@ -1,9 +1,9 @@ package org.bukkit.event.inventory; -import org.bukkit.inventory.InventoryView; import org.bukkit.entity.HumanEntity; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; +import org.bukkit.inventory.InventoryView; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerChatEvent.java b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerChatEvent.java index cc3049e82d..dadd20d9a9 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerChatEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerChatEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.player; import java.util.IllegalFormatException; import java.util.Set; - import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; diff --git a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java index a090973636..c8384da69a 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/AsyncPlayerPreLoginEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.player; import java.net.InetAddress; import java.util.UUID; - import org.bukkit.event.Event; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java index 7f12156b5e..4dfd97eece 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerArmorStandManipulateEvent.java @@ -1,9 +1,9 @@ package org.bukkit.event.player; -import org.bukkit.inventory.EquipmentSlot; -import org.bukkit.entity.Player; import org.bukkit.entity.ArmorStand; +import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; +import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java index fec303c9c8..da2e54f699 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.player; import java.util.HashSet; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.Warning; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatTabCompleteEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatTabCompleteEvent.java index c3ac379284..0b99c7fb22 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerChatTabCompleteEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerChatTabCompleteEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.player; import java.util.Collection; - import org.apache.commons.lang.Validate; import org.bukkit.Warning; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java index 66c930da05..2efc885bc4 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerCommandPreprocessEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.player; import java.util.HashSet; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java index 732d4579cc..3ee819ee2e 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerFishEvent.java @@ -1,9 +1,9 @@ package org.bukkit.event.player; -import org.bukkit.entity.Player; -import org.bukkit.event.Cancellable; import org.bukkit.entity.Entity; import org.bukkit.entity.FishHook; +import org.bukkit.entity.Player; +import org.bukkit.event.Cancellable; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java index 3563aac37b..0320c015fe 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerInteractEvent.java @@ -1,15 +1,15 @@ package org.bukkit.event.player; +import org.bukkit.Material; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; -import org.bukkit.event.HandlerList; -import org.bukkit.inventory.ItemStack; -import org.bukkit.Material; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; import org.bukkit.event.block.Action; import org.bukkit.event.block.BlockCanBuildEvent; import org.bukkit.inventory.EquipmentSlot; +import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java index dccffa03cc..498f0be826 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerLoginEvent.java @@ -1,7 +1,6 @@ package org.bukkit.event.player; import java.net.InetAddress; - import org.bukkit.entity.Player; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java b/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java index a23a06a4b4..63a9632020 100644 --- a/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/player/PlayerPreLoginEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.player; import java.net.InetAddress; import java.util.UUID; - import org.bukkit.Warning; import org.bukkit.event.Event; import org.bukkit.event.HandlerList; diff --git a/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java index de940f6e9a..7a2a58bac8 100644 --- a/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/server/ServerListPingEvent.java @@ -2,7 +2,6 @@ package org.bukkit.event.server; import java.net.InetAddress; import java.util.Iterator; - import org.apache.commons.lang.Validate; import org.bukkit.UndefinedNullability; import org.bukkit.entity.Player; diff --git a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index 7142726625..6e6ee66a51 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -1,13 +1,12 @@ package org.bukkit.event.world; -import org.bukkit.block.Block; -import org.bukkit.World; -import org.bukkit.event.Cancellable; -import org.bukkit.event.HandlerList; -import org.jetbrains.annotations.NotNull; - import java.util.ArrayList; import java.util.Collection; +import org.bukkit.World; +import org.bukkit.block.Block; +import org.bukkit.event.Cancellable; +import org.bukkit.event.HandlerList; +import org.jetbrains.annotations.NotNull; /** * Called when a portal is created diff --git a/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java b/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java index 4c49c7619a..9ce93d0093 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/SpawnChangeEvent.java @@ -1,7 +1,7 @@ package org.bukkit.event.world; -import org.bukkit.World; import org.bukkit.Location; +import org.bukkit.World; import org.bukkit.event.HandlerList; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/help/GenericCommandHelpTopic.java b/paper-api/src/main/java/org/bukkit/help/GenericCommandHelpTopic.java index b05f570a8e..3e103efd90 100644 --- a/paper-api/src/main/java/org/bukkit/help/GenericCommandHelpTopic.java +++ b/paper-api/src/main/java/org/bukkit/help/GenericCommandHelpTopic.java @@ -1,9 +1,9 @@ package org.bukkit.help; +import org.apache.commons.lang.StringUtils; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; -import org.apache.commons.lang.StringUtils; import org.bukkit.command.ConsoleCommandSender; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/help/HelpMap.java b/paper-api/src/main/java/org/bukkit/help/HelpMap.java index 7a8795f80d..48997b5c8e 100644 --- a/paper-api/src/main/java/org/bukkit/help/HelpMap.java +++ b/paper-api/src/main/java/org/bukkit/help/HelpMap.java @@ -1,10 +1,9 @@ package org.bukkit.help; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Collection; import java.util.List; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * The HelpMap tracks all help topics registered in a Bukkit server. When the diff --git a/paper-api/src/main/java/org/bukkit/help/HelpTopicComparator.java b/paper-api/src/main/java/org/bukkit/help/HelpTopicComparator.java index dee86aefb6..2ec9333351 100644 --- a/paper-api/src/main/java/org/bukkit/help/HelpTopicComparator.java +++ b/paper-api/src/main/java/org/bukkit/help/HelpTopicComparator.java @@ -1,8 +1,7 @@ package org.bukkit.help; -import org.jetbrains.annotations.NotNull; - import java.util.Comparator; +import org.jetbrains.annotations.NotNull; /** * Used to impose a custom total ordering on help topics. diff --git a/paper-api/src/main/java/org/bukkit/help/IndexHelpTopic.java b/paper-api/src/main/java/org/bukkit/help/IndexHelpTopic.java index 2914c9f8a7..150c4272cc 100644 --- a/paper-api/src/main/java/org/bukkit/help/IndexHelpTopic.java +++ b/paper-api/src/main/java/org/bukkit/help/IndexHelpTopic.java @@ -1,5 +1,6 @@ package org.bukkit.help; +import java.util.Collection; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender; @@ -8,8 +9,6 @@ import org.bukkit.util.ChatPaginator; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.Collection; - /** * This help topic generates a list of other help topics. This class is useful * for adding your own index help topics. To enforce a particular order, use a diff --git a/paper-api/src/main/java/org/bukkit/inventory/Inventory.java b/paper-api/src/main/java/org/bukkit/inventory/Inventory.java index f9a8aff098..5a38d8f13b 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/Inventory.java +++ b/paper-api/src/main/java/org/bukkit/inventory/Inventory.java @@ -3,7 +3,6 @@ package org.bukkit.inventory; import java.util.HashMap; import java.util.List; import java.util.ListIterator; - import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.HumanEntity; diff --git a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java index 8628e655a4..35066cea66 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ItemStack.java @@ -3,7 +3,6 @@ package org.bukkit.inventory; import com.google.common.collect.ImmutableMap; import java.util.LinkedHashMap; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.Material; diff --git a/paper-api/src/main/java/org/bukkit/inventory/Merchant.java b/paper-api/src/main/java/org/bukkit/inventory/Merchant.java index 668e919584..ab2b595831 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/Merchant.java +++ b/paper-api/src/main/java/org/bukkit/inventory/Merchant.java @@ -1,7 +1,6 @@ package org.bukkit.inventory; import java.util.List; - import org.bukkit.entity.HumanEntity; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/inventory/MerchantRecipe.java b/paper-api/src/main/java/org/bukkit/inventory/MerchantRecipe.java index 149e63b3a6..1fb4a1c537 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/MerchantRecipe.java +++ b/paper-api/src/main/java/org/bukkit/inventory/MerchantRecipe.java @@ -1,10 +1,9 @@ package org.bukkit.inventory; import com.google.common.base.Preconditions; -import org.jetbrains.annotations.NotNull; - import java.util.ArrayList; import java.util.List; +import org.jetbrains.annotations.NotNull; /** * Represents a merchant's trade. diff --git a/paper-api/src/main/java/org/bukkit/inventory/ShapedRecipe.java b/paper-api/src/main/java/org/bukkit/inventory/ShapedRecipe.java index 77e6ccf5ea..83c72eda9d 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ShapedRecipe.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ShapedRecipe.java @@ -4,9 +4,7 @@ import com.google.common.base.Preconditions; import java.util.Collections; import java.util.HashMap; import java.util.Map; - import org.apache.commons.lang.Validate; - import org.bukkit.Keyed; import org.bukkit.Material; import org.bukkit.NamespacedKey; diff --git a/paper-api/src/main/java/org/bukkit/inventory/ShapelessRecipe.java b/paper-api/src/main/java/org/bukkit/inventory/ShapelessRecipe.java index a8d5f330bd..ef28e75da7 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/ShapelessRecipe.java +++ b/paper-api/src/main/java/org/bukkit/inventory/ShapelessRecipe.java @@ -5,10 +5,8 @@ import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; - import org.apache.commons.lang.Validate; import org.bukkit.Keyed; - import org.bukkit.Material; import org.bukkit.NamespacedKey; import org.bukkit.material.MaterialData; diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/BookMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/BookMeta.java index cb655ae856..9775dca7ef 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/BookMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/BookMeta.java @@ -1,7 +1,6 @@ package org.bukkit.inventory.meta; import java.util.List; - import org.bukkit.Material; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/EnchantmentStorageMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/EnchantmentStorageMeta.java index c44a227e02..19347a31db 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/EnchantmentStorageMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/EnchantmentStorageMeta.java @@ -1,7 +1,6 @@ package org.bukkit.inventory.meta; import java.util.Map; - import org.bukkit.Material; import org.bukkit.enchantments.Enchantment; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java index f1fe2b0747..bd7cd4b348 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/FireworkMeta.java @@ -1,7 +1,6 @@ package org.bukkit.inventory.meta; import java.util.List; - import org.bukkit.FireworkEffect; import org.bukkit.Material; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/ItemMeta.java index d1cd8dfde6..c103599f5a 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/ItemMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/ItemMeta.java @@ -1,11 +1,10 @@ package org.bukkit.inventory.meta; +import com.google.common.collect.Multimap; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; - -import com.google.common.collect.Multimap; import org.bukkit.attribute.Attribute; import org.bukkit.attribute.AttributeModifier; import org.bukkit.configuration.serialization.ConfigurationSerializable; diff --git a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java index f26ec165f6..1056849dc3 100644 --- a/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java +++ b/paper-api/src/main/java/org/bukkit/inventory/meta/PotionMeta.java @@ -1,14 +1,13 @@ package org.bukkit.inventory.meta; +import java.util.List; import org.bukkit.Color; +import org.bukkit.potion.PotionData; import org.bukkit.potion.PotionEffect; import org.bukkit.potion.PotionEffectType; -import org.bukkit.potion.PotionData; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; -import java.util.List; - /** * Represents a potion or item that can have custom effects. */ diff --git a/paper-api/src/main/java/org/bukkit/loot/LootTable.java b/paper-api/src/main/java/org/bukkit/loot/LootTable.java index b391b55de8..73aa119b6e 100644 --- a/paper-api/src/main/java/org/bukkit/loot/LootTable.java +++ b/paper-api/src/main/java/org/bukkit/loot/LootTable.java @@ -1,13 +1,12 @@ package org.bukkit.loot; +import java.util.Collection; +import java.util.Random; import org.bukkit.Keyed; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.ItemStack; import org.jetbrains.annotations.NotNull; -import java.util.Collection; -import java.util.Random; - /** * LootTables are technical files that represent what items should be in * naturally generated containers, what items should be dropped when killing a diff --git a/paper-api/src/main/java/org/bukkit/map/MapCanvas.java b/paper-api/src/main/java/org/bukkit/map/MapCanvas.java index f04b01088e..cc1714019d 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapCanvas.java +++ b/paper-api/src/main/java/org/bukkit/map/MapCanvas.java @@ -1,8 +1,7 @@ package org.bukkit.map; -import org.jetbrains.annotations.NotNull; - import java.awt.Image; +import org.jetbrains.annotations.NotNull; /** * Represents a canvas for drawing to a map. Each canvas is associated with a diff --git a/paper-api/src/main/java/org/bukkit/map/MapCursorCollection.java b/paper-api/src/main/java/org/bukkit/map/MapCursorCollection.java index be0683ba61..4dba721aef 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapCursorCollection.java +++ b/paper-api/src/main/java/org/bukkit/map/MapCursorCollection.java @@ -1,10 +1,9 @@ package org.bukkit.map; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.ArrayList; import java.util.List; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Represents all the map cursors on a {@link MapCanvas}. Like MapCanvas, a diff --git a/paper-api/src/main/java/org/bukkit/map/MapPalette.java b/paper-api/src/main/java/org/bukkit/map/MapPalette.java index afe727e24e..8c3016d47b 100644 --- a/paper-api/src/main/java/org/bukkit/map/MapPalette.java +++ b/paper-api/src/main/java/org/bukkit/map/MapPalette.java @@ -1,12 +1,11 @@ package org.bukkit.map; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.awt.Color; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Represents the palette that map items use. diff --git a/paper-api/src/main/java/org/bukkit/material/Button.java b/paper-api/src/main/java/org/bukkit/material/Button.java index 62c499a10e..f705977af3 100644 --- a/paper-api/src/main/java/org/bukkit/material/Button.java +++ b/paper-api/src/main/java/org/bukkit/material/Button.java @@ -1,7 +1,7 @@ package org.bukkit.material; -import org.bukkit.block.BlockFace; import org.bukkit.Material; +import org.bukkit.block.BlockFace; /** * Represents a button diff --git a/paper-api/src/main/java/org/bukkit/material/Ladder.java b/paper-api/src/main/java/org/bukkit/material/Ladder.java index b4f9db90f3..54447bbb5a 100644 --- a/paper-api/src/main/java/org/bukkit/material/Ladder.java +++ b/paper-api/src/main/java/org/bukkit/material/Ladder.java @@ -1,7 +1,7 @@ package org.bukkit.material; -import org.bukkit.block.BlockFace; import org.bukkit.Material; +import org.bukkit.block.BlockFace; /** * Represents Ladder data diff --git a/paper-api/src/main/java/org/bukkit/material/Lever.java b/paper-api/src/main/java/org/bukkit/material/Lever.java index 5bc8353320..8e68da3c9b 100644 --- a/paper-api/src/main/java/org/bukkit/material/Lever.java +++ b/paper-api/src/main/java/org/bukkit/material/Lever.java @@ -1,7 +1,7 @@ package org.bukkit.material; -import org.bukkit.block.BlockFace; import org.bukkit.Material; +import org.bukkit.block.BlockFace; /** * Represents a lever diff --git a/paper-api/src/main/java/org/bukkit/material/MaterialData.java b/paper-api/src/main/java/org/bukkit/material/MaterialData.java index 9f6a0ca664..a6483e0841 100644 --- a/paper-api/src/main/java/org/bukkit/material/MaterialData.java +++ b/paper-api/src/main/java/org/bukkit/material/MaterialData.java @@ -1,8 +1,8 @@ package org.bukkit.material; -import org.bukkit.inventory.ItemStack; import org.bukkit.Material; import org.bukkit.block.data.BlockData; +import org.bukkit.inventory.ItemStack; /** * Handles specific metadata for certain items or blocks diff --git a/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java b/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java index 3e483fdf18..a6205344d3 100644 --- a/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java +++ b/paper-api/src/main/java/org/bukkit/material/MonsterEggs.java @@ -2,7 +2,6 @@ package org.bukkit.material; import java.util.ArrayList; import java.util.List; - import org.bukkit.Material; /** diff --git a/paper-api/src/main/java/org/bukkit/material/Mushroom.java b/paper-api/src/main/java/org/bukkit/material/Mushroom.java index cbc7d9bf44..b291422cf3 100644 --- a/paper-api/src/main/java/org/bukkit/material/Mushroom.java +++ b/paper-api/src/main/java/org/bukkit/material/Mushroom.java @@ -2,7 +2,6 @@ package org.bukkit.material; import java.util.EnumSet; import java.util.Set; - import org.apache.commons.lang.Validate; import org.bukkit.Material; import org.bukkit.block.BlockFace; diff --git a/paper-api/src/main/java/org/bukkit/material/Sign.java b/paper-api/src/main/java/org/bukkit/material/Sign.java index d33b8ed214..51a6b82505 100644 --- a/paper-api/src/main/java/org/bukkit/material/Sign.java +++ b/paper-api/src/main/java/org/bukkit/material/Sign.java @@ -1,7 +1,7 @@ package org.bukkit.material; -import org.bukkit.block.BlockFace; import org.bukkit.Material; +import org.bukkit.block.BlockFace; /** * MaterialData for signs diff --git a/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java b/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java index 3e4a8525ab..ebe328e6f0 100644 --- a/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java +++ b/paper-api/src/main/java/org/bukkit/material/SmoothBrick.java @@ -2,7 +2,6 @@ package org.bukkit.material; import java.util.ArrayList; import java.util.List; - import org.bukkit.Material; /** diff --git a/paper-api/src/main/java/org/bukkit/material/Step.java b/paper-api/src/main/java/org/bukkit/material/Step.java index 8c255ba060..904fd53476 100644 --- a/paper-api/src/main/java/org/bukkit/material/Step.java +++ b/paper-api/src/main/java/org/bukkit/material/Step.java @@ -2,7 +2,6 @@ package org.bukkit.material; import java.util.ArrayList; import java.util.List; - import org.bukkit.Material; /** diff --git a/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java b/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java index ea3433ac89..e48f002f08 100644 --- a/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java +++ b/paper-api/src/main/java/org/bukkit/material/TexturedMaterial.java @@ -1,7 +1,6 @@ package org.bukkit.material; import java.util.List; - import org.bukkit.Material; /** diff --git a/paper-api/src/main/java/org/bukkit/material/Torch.java b/paper-api/src/main/java/org/bukkit/material/Torch.java index 0c34004d14..1177846705 100644 --- a/paper-api/src/main/java/org/bukkit/material/Torch.java +++ b/paper-api/src/main/java/org/bukkit/material/Torch.java @@ -1,7 +1,7 @@ package org.bukkit.material; -import org.bukkit.block.BlockFace; import org.bukkit.Material; +import org.bukkit.block.BlockFace; /** * MaterialData for torches diff --git a/paper-api/src/main/java/org/bukkit/material/Vine.java b/paper-api/src/main/java/org/bukkit/material/Vine.java index abfc211c98..e0c222f64a 100644 --- a/paper-api/src/main/java/org/bukkit/material/Vine.java +++ b/paper-api/src/main/java/org/bukkit/material/Vine.java @@ -2,7 +2,6 @@ package org.bukkit.material; import java.util.Arrays; import java.util.EnumSet; - import org.bukkit.Material; import org.bukkit.block.BlockFace; diff --git a/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java b/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java index f7e85d3183..0ea9c6b242 100644 --- a/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java +++ b/paper-api/src/main/java/org/bukkit/material/types/MushroomBlockTexture.java @@ -1,11 +1,8 @@ package org.bukkit.material.types; -import java.util.Map; - -import org.bukkit.block.BlockFace; - import com.google.common.collect.Maps; -import org.jetbrains.annotations.NotNull; +import java.util.Map; +import org.bukkit.block.BlockFace; import org.jetbrains.annotations.Nullable; /** diff --git a/paper-api/src/main/java/org/bukkit/metadata/LazyMetadataValue.java b/paper-api/src/main/java/org/bukkit/metadata/LazyMetadataValue.java index eeb98c4c18..398399298e 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/LazyMetadataValue.java +++ b/paper-api/src/main/java/org/bukkit/metadata/LazyMetadataValue.java @@ -2,7 +2,6 @@ package org.bukkit.metadata; import java.lang.ref.SoftReference; import java.util.concurrent.Callable; - import org.apache.commons.lang.Validate; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/metadata/MetadataStore.java b/paper-api/src/main/java/org/bukkit/metadata/MetadataStore.java index 1ebba41f4a..29f86fa938 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/MetadataStore.java +++ b/paper-api/src/main/java/org/bukkit/metadata/MetadataStore.java @@ -1,10 +1,9 @@ package org.bukkit.metadata; +import java.util.List; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; -import java.util.List; - public interface MetadataStore { /** * Adds a metadata value to an object. diff --git a/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java b/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java index 9dbc32d866..027953499e 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java +++ b/paper-api/src/main/java/org/bukkit/metadata/MetadataStoreBase.java @@ -1,11 +1,16 @@ package org.bukkit.metadata; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.WeakHashMap; import org.apache.commons.lang.Validate; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; -import java.util.*; - public abstract class MetadataStoreBase { private Map> metadataMap = new HashMap>(); diff --git a/paper-api/src/main/java/org/bukkit/metadata/MetadataValueAdapter.java b/paper-api/src/main/java/org/bukkit/metadata/MetadataValueAdapter.java index f88299103b..02b7e0dc50 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/MetadataValueAdapter.java +++ b/paper-api/src/main/java/org/bukkit/metadata/MetadataValueAdapter.java @@ -1,7 +1,6 @@ package org.bukkit.metadata; import java.lang.ref.WeakReference; - import org.apache.commons.lang.Validate; import org.bukkit.plugin.Plugin; import org.bukkit.util.NumberConversions; diff --git a/paper-api/src/main/java/org/bukkit/metadata/Metadatable.java b/paper-api/src/main/java/org/bukkit/metadata/Metadatable.java index 891e516083..b35f41a15f 100644 --- a/paper-api/src/main/java/org/bukkit/metadata/Metadatable.java +++ b/paper-api/src/main/java/org/bukkit/metadata/Metadatable.java @@ -1,10 +1,9 @@ package org.bukkit.metadata; +import java.util.List; import org.bukkit.plugin.Plugin; import org.jetbrains.annotations.NotNull; -import java.util.List; - /** * This interface is implemented by all objects that can provide metadata * about themselves. diff --git a/paper-api/src/main/java/org/bukkit/permissions/Permission.java b/paper-api/src/main/java/org/bukkit/permissions/Permission.java index 09eb28cceb..91d45b9657 100644 --- a/paper-api/src/main/java/org/bukkit/permissions/Permission.java +++ b/paper-api/src/main/java/org/bukkit/permissions/Permission.java @@ -6,7 +6,6 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.logging.Level; - import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.plugin.PluginManager; diff --git a/paper-api/src/main/java/org/bukkit/permissions/PermissionDefault.java b/paper-api/src/main/java/org/bukkit/permissions/PermissionDefault.java index 3380f2f20f..449df7c798 100644 --- a/paper-api/src/main/java/org/bukkit/permissions/PermissionDefault.java +++ b/paper-api/src/main/java/org/bukkit/permissions/PermissionDefault.java @@ -1,10 +1,9 @@ package org.bukkit.permissions; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.HashMap; import java.util.Map; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Represents the possible default values for permissions diff --git a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java index 076ec041f8..febfec6efa 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/Plugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/Plugin.java @@ -3,7 +3,6 @@ package org.bukkit.plugin; import java.io.File; import java.io.InputStream; import java.util.logging.Logger; - import org.bukkit.Server; import org.bukkit.command.TabExecutor; import org.bukkit.configuration.file.FileConfiguration; diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java index 6d3e9cc165..cb31a6d5ad 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginDescriptionFile.java @@ -1,5 +1,8 @@ package org.bukkit.plugin; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; import java.io.InputStream; import java.io.Reader; import java.io.Writer; @@ -9,16 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; import java.util.regex.Pattern; - import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.command.PluginCommand; import org.bukkit.command.TabCompleter; -import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.permissions.Permissible; import org.bukkit.permissions.Permission; import org.bukkit.permissions.PermissionDefault; +import org.bukkit.plugin.java.JavaPlugin; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.yaml.snakeyaml.Yaml; @@ -27,10 +29,6 @@ import org.yaml.snakeyaml.constructor.SafeConstructor; import org.yaml.snakeyaml.nodes.Node; import org.yaml.snakeyaml.nodes.Tag; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; - /** * This type is the runtime-container for the information in the plugin.yml. * All plugins must have a respective plugin.yml. For plugins written in java diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java index da7839aa92..a88733f1cd 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginLoader.java @@ -4,7 +4,6 @@ import java.io.File; import java.util.Map; import java.util.Set; import java.util.regex.Pattern; - import org.bukkit.event.Event; import org.bukkit.event.Listener; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginLogger.java b/paper-api/src/main/java/org/bukkit/plugin/PluginLogger.java index 533f0b6f81..0182370014 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginLogger.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginLogger.java @@ -1,10 +1,9 @@ package org.bukkit.plugin; -import org.jetbrains.annotations.NotNull; - import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; +import org.jetbrains.annotations.NotNull; /** * The PluginLogger class is a modified {@link Logger} that prepends all diff --git a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java index a468467b45..41e26451fe 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/PluginManager.java @@ -2,7 +2,6 @@ package org.bukkit.plugin; import java.io.File; import java.util.Set; - import org.bukkit.event.Event; import org.bukkit.event.EventPriority; import org.bukkit.event.Listener; diff --git a/paper-api/src/main/java/org/bukkit/plugin/RegisteredListener.java b/paper-api/src/main/java/org/bukkit/plugin/RegisteredListener.java index a3b3a056b9..419aec56b0 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/RegisteredListener.java +++ b/paper-api/src/main/java/org/bukkit/plugin/RegisteredListener.java @@ -1,6 +1,10 @@ package org.bukkit.plugin; -import org.bukkit.event.*; +import org.bukkit.event.Cancellable; +import org.bukkit.event.Event; +import org.bukkit.event.EventException; +import org.bukkit.event.EventPriority; +import org.bukkit.event.Listener; import org.jetbrains.annotations.NotNull; /** diff --git a/paper-api/src/main/java/org/bukkit/plugin/ServicesManager.java b/paper-api/src/main/java/org/bukkit/plugin/ServicesManager.java index 185b644b12..9e2f00572a 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/ServicesManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/ServicesManager.java @@ -1,10 +1,9 @@ package org.bukkit.plugin; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Collection; import java.util.List; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * Manages services and service providers. Services are an interface diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java index 657d969280..0c4119ae43 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/SimplePluginManager.java @@ -1,5 +1,6 @@ package org.bukkit.plugin; +import com.google.common.collect.ImmutableSet; import java.io.File; import java.lang.reflect.Constructor; import java.lang.reflect.Method; @@ -18,7 +19,6 @@ import java.util.WeakHashMap; import java.util.logging.Level; import java.util.regex.Matcher; import java.util.regex.Pattern; - import org.apache.commons.lang.Validate; import org.bukkit.Server; import org.bukkit.command.Command; @@ -32,8 +32,6 @@ import org.bukkit.permissions.Permissible; import org.bukkit.permissions.Permission; import org.bukkit.permissions.PermissionDefault; import org.bukkit.util.FileUtil; - -import com.google.common.collect.ImmutableSet; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/plugin/SimpleServicesManager.java b/paper-api/src/main/java/org/bukkit/plugin/SimpleServicesManager.java index 6514d4ef1e..6f0a63fb09 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/SimpleServicesManager.java +++ b/paper-api/src/main/java/org/bukkit/plugin/SimpleServicesManager.java @@ -1,22 +1,20 @@ package org.bukkit.plugin; -import org.bukkit.Bukkit; -import org.bukkit.event.server.ServiceRegisterEvent; -import org.bukkit.event.server.ServiceUnregisterEvent; - import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; -import java.util.Map; import java.util.List; +import java.util.Map; import java.util.NoSuchElementException; import java.util.Set; +import org.bukkit.Bukkit; +import org.bukkit.event.server.ServiceRegisterEvent; +import org.bukkit.event.server.ServiceUnregisterEvent; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * A simple services manager. diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index 7c9348996c..2231900549 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java @@ -1,5 +1,6 @@ package org.bukkit.plugin.java; +import com.google.common.base.Charsets; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; @@ -12,7 +13,6 @@ import java.net.URLConnection; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; - import org.apache.commons.lang.Validate; import org.bukkit.Server; import org.bukkit.command.Command; @@ -25,8 +25,6 @@ import org.bukkit.plugin.PluginBase; import org.bukkit.plugin.PluginDescriptionFile; import org.bukkit.plugin.PluginLoader; import org.bukkit.plugin.PluginLogger; - -import com.google.common.base.Charsets; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java index 7b6aefa450..43eee27d8b 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java @@ -18,7 +18,6 @@ import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.logging.Level; import java.util.regex.Pattern; - import org.apache.commons.lang.Validate; import org.bukkit.Server; import org.bukkit.Warning; diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java index 541d8ee6b5..0ffc1dfdbb 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/PluginClassLoader.java @@ -15,7 +15,6 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.jar.JarEntry; import java.util.jar.JarFile; import java.util.jar.Manifest; - import org.apache.commons.lang.Validate; import org.bukkit.plugin.InvalidPluginException; import org.bukkit.plugin.PluginDescriptionFile; diff --git a/paper-api/src/main/java/org/bukkit/potion/Potion.java b/paper-api/src/main/java/org/bukkit/potion/Potion.java index 63b7c70cee..57d893a40f 100644 --- a/paper-api/src/main/java/org/bukkit/potion/Potion.java +++ b/paper-api/src/main/java/org/bukkit/potion/Potion.java @@ -1,7 +1,6 @@ package org.bukkit.potion; import java.util.Collection; - import org.apache.commons.lang.Validate; import org.bukkit.Material; import org.bukkit.entity.LivingEntity; diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java b/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java index 9f913e1ee3..91ddadbbfd 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionBrewer.java @@ -1,8 +1,7 @@ package org.bukkit.potion; -import org.jetbrains.annotations.NotNull; - import java.util.Collection; +import org.jetbrains.annotations.NotNull; /** * Represents a brewer that can create {@link PotionEffect}s. diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionEffect.java b/paper-api/src/main/java/org/bukkit/potion/PotionEffect.java index d57450c95e..a0529fbeae 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionEffect.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionEffect.java @@ -1,15 +1,13 @@ package org.bukkit.potion; +import com.google.common.collect.ImmutableMap; import java.util.Map; import java.util.NoSuchElementException; - import org.apache.commons.lang.Validate; import org.bukkit.Color; import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.configuration.serialization.SerializableAs; import org.bukkit.entity.LivingEntity; - -import com.google.common.collect.ImmutableMap; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java index 941eeab90e..b5790aaac6 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionEffectType.java @@ -3,7 +3,6 @@ package org.bukkit.potion; import java.util.Arrays; import java.util.HashMap; import java.util.Map; - import org.apache.commons.lang.Validate; import org.bukkit.Color; import org.jetbrains.annotations.NotNull; diff --git a/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java b/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java index acbd23687d..ac140fc2c6 100644 --- a/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java +++ b/paper-api/src/main/java/org/bukkit/scheduler/BukkitScheduler.java @@ -1,12 +1,11 @@ package org.bukkit.scheduler; -import org.bukkit.plugin.Plugin; -import org.jetbrains.annotations.NotNull; - +import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.Future; -import java.util.List; import java.util.function.Consumer; +import org.bukkit.plugin.Plugin; +import org.jetbrains.annotations.NotNull; public interface BukkitScheduler { diff --git a/paper-api/src/main/java/org/bukkit/scoreboard/Scoreboard.java b/paper-api/src/main/java/org/bukkit/scoreboard/Scoreboard.java index fa35d7d597..aeab2425e3 100644 --- a/paper-api/src/main/java/org/bukkit/scoreboard/Scoreboard.java +++ b/paper-api/src/main/java/org/bukkit/scoreboard/Scoreboard.java @@ -1,7 +1,6 @@ package org.bukkit.scoreboard; import java.util.Set; - import org.bukkit.OfflinePlayer; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; diff --git a/paper-api/src/main/java/org/bukkit/scoreboard/ScoreboardManager.java b/paper-api/src/main/java/org/bukkit/scoreboard/ScoreboardManager.java index 255977c2fb..3c0740797a 100644 --- a/paper-api/src/main/java/org/bukkit/scoreboard/ScoreboardManager.java +++ b/paper-api/src/main/java/org/bukkit/scoreboard/ScoreboardManager.java @@ -1,8 +1,7 @@ package org.bukkit.scoreboard; -import org.jetbrains.annotations.NotNull; - import java.lang.ref.WeakReference; +import org.jetbrains.annotations.NotNull; /** * Manager of Scoreboards diff --git a/paper-api/src/main/java/org/bukkit/scoreboard/Team.java b/paper-api/src/main/java/org/bukkit/scoreboard/Team.java index f75dbe846b..dc20daae9a 100644 --- a/paper-api/src/main/java/org/bukkit/scoreboard/Team.java +++ b/paper-api/src/main/java/org/bukkit/scoreboard/Team.java @@ -1,7 +1,6 @@ package org.bukkit.scoreboard; import java.util.Set; - import org.bukkit.ChatColor; import org.bukkit.OfflinePlayer; import org.bukkit.potion.PotionEffectType; diff --git a/paper-api/src/main/java/org/bukkit/util/BlockIterator.java b/paper-api/src/main/java/org/bukkit/util/BlockIterator.java index 8e6887ae7d..bd82faf8e6 100644 --- a/paper-api/src/main/java/org/bukkit/util/BlockIterator.java +++ b/paper-api/src/main/java/org/bukkit/util/BlockIterator.java @@ -1,17 +1,15 @@ package org.bukkit.util; import static org.bukkit.util.NumberConversions.*; - -import org.bukkit.World; +import java.util.Iterator; +import java.util.NoSuchElementException; import org.bukkit.Location; +import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import org.bukkit.entity.LivingEntity; import org.jetbrains.annotations.NotNull; -import java.util.Iterator; -import java.util.NoSuchElementException; - /** * This class performs ray tracing and iterates along blocks on a line */ diff --git a/paper-api/src/main/java/org/bukkit/util/ChatPaginator.java b/paper-api/src/main/java/org/bukkit/util/ChatPaginator.java index 04358f17e9..1f51021181 100644 --- a/paper-api/src/main/java/org/bukkit/util/ChatPaginator.java +++ b/paper-api/src/main/java/org/bukkit/util/ChatPaginator.java @@ -1,12 +1,11 @@ package org.bukkit.util; -import org.bukkit.ChatColor; -import org.jetbrains.annotations.NotNull; -import org.jetbrains.annotations.Nullable; - import java.util.Arrays; import java.util.LinkedList; import java.util.List; +import org.bukkit.ChatColor; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; /** * The ChatPaginator takes a raw string of arbitrary length and breaks it down diff --git a/paper-api/src/main/java/org/bukkit/util/FileUtil.java b/paper-api/src/main/java/org/bukkit/util/FileUtil.java index af75ce2e7c..6e2352a308 100644 --- a/paper-api/src/main/java/org/bukkit/util/FileUtil.java +++ b/paper-api/src/main/java/org/bukkit/util/FileUtil.java @@ -1,12 +1,11 @@ package org.bukkit.util; -import org.jetbrains.annotations.NotNull; - -import java.nio.channels.FileChannel; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; +import java.nio.channels.FileChannel; +import org.jetbrains.annotations.NotNull; /** * Class containing file utilities diff --git a/paper-api/src/main/java/org/bukkit/util/RayTraceResult.java b/paper-api/src/main/java/org/bukkit/util/RayTraceResult.java index 0546301917..19c52a2a62 100644 --- a/paper-api/src/main/java/org/bukkit/util/RayTraceResult.java +++ b/paper-api/src/main/java/org/bukkit/util/RayTraceResult.java @@ -1,7 +1,6 @@ package org.bukkit.util; import java.util.Objects; - import org.apache.commons.lang.Validate; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; diff --git a/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectInputStream.java b/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectInputStream.java index 13725531fe..d05aaaa46c 100644 --- a/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectInputStream.java +++ b/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectInputStream.java @@ -3,7 +3,6 @@ package org.bukkit.util.io; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; - import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.configuration.serialization.ConfigurationSerialization; diff --git a/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectOutputStream.java b/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectOutputStream.java index 8452850251..0b073f26d2 100644 --- a/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectOutputStream.java +++ b/paper-api/src/main/java/org/bukkit/util/io/BukkitObjectOutputStream.java @@ -4,7 +4,6 @@ import java.io.IOException; import java.io.ObjectOutputStream; import java.io.OutputStream; import java.io.Serializable; - import org.bukkit.configuration.serialization.ConfigurationSerializable; /** diff --git a/paper-api/src/main/java/org/bukkit/util/io/Wrapper.java b/paper-api/src/main/java/org/bukkit/util/io/Wrapper.java index 1961370e55..c3496dc8ba 100644 --- a/paper-api/src/main/java/org/bukkit/util/io/Wrapper.java +++ b/paper-api/src/main/java/org/bukkit/util/io/Wrapper.java @@ -1,12 +1,10 @@ package org.bukkit.util.io; +import com.google.common.collect.ImmutableMap; import java.io.Serializable; import java.util.Map; - import org.bukkit.configuration.serialization.ConfigurationSerializable; import org.bukkit.configuration.serialization.ConfigurationSerialization; - -import com.google.common.collect.ImmutableMap; import org.jetbrains.annotations.NotNull; final class Wrapper & Serializable> implements Serializable { diff --git a/paper-api/src/test/java/org/bukkit/ArtTest.java b/paper-api/src/test/java/org/bukkit/ArtTest.java index 29fe34ad40..2e9249a6d4 100644 --- a/paper-api/src/test/java/org/bukkit/ArtTest.java +++ b/paper-api/src/test/java/org/bukkit/ArtTest.java @@ -1,9 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.Matchers.greaterThan; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class ArtTest { diff --git a/paper-api/src/test/java/org/bukkit/BukkitMirrorTest.java b/paper-api/src/test/java/org/bukkit/BukkitMirrorTest.java index 9d7b9eb65c..6ea9c3ca92 100644 --- a/paper-api/src/test/java/org/bukkit/BukkitMirrorTest.java +++ b/paper-api/src/test/java/org/bukkit/BukkitMirrorTest.java @@ -2,12 +2,12 @@ package org.bukkit; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - +import com.google.common.base.Function; +import com.google.common.collect.Lists; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Arrays; import java.util.List; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -15,9 +15,6 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; -import com.google.common.base.Function; -import com.google.common.collect.Lists; - @RunWith(Parameterized.class) public class BukkitMirrorTest { diff --git a/paper-api/src/test/java/org/bukkit/ChatColorTest.java b/paper-api/src/test/java/org/bukkit/ChatColorTest.java index 523399a997..2a8c8c7298 100644 --- a/paper-api/src/test/java/org/bukkit/ChatColorTest.java +++ b/paper-api/src/test/java/org/bukkit/ChatColorTest.java @@ -1,9 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.nullValue; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class ChatColorTest { diff --git a/paper-api/src/test/java/org/bukkit/ChatPaginatorTest.java b/paper-api/src/test/java/org/bukkit/ChatPaginatorTest.java index a644b150a0..d38e64f099 100644 --- a/paper-api/src/test/java/org/bukkit/ChatPaginatorTest.java +++ b/paper-api/src/test/java/org/bukkit/ChatPaginatorTest.java @@ -1,12 +1,10 @@ package org.bukkit; +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.bukkit.util.ChatPaginator; import org.junit.Test; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.nullValue; -import static org.junit.Assert.assertThat; - public class ChatPaginatorTest { @Test public void testWordWrap1() { diff --git a/paper-api/src/test/java/org/bukkit/CoalTypeTest.java b/paper-api/src/test/java/org/bukkit/CoalTypeTest.java index 7eb11ceaf7..b90f10c4ef 100644 --- a/paper-api/src/test/java/org/bukkit/CoalTypeTest.java +++ b/paper-api/src/test/java/org/bukkit/CoalTypeTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class CoalTypeTest { diff --git a/paper-api/src/test/java/org/bukkit/ColorTest.java b/paper-api/src/test/java/org/bukkit/ColorTest.java index 8d9557af14..78fc76e9b2 100644 --- a/paper-api/src/test/java/org/bukkit/ColorTest.java +++ b/paper-api/src/test/java/org/bukkit/ColorTest.java @@ -2,7 +2,6 @@ package org.bukkit; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - import org.bukkit.configuration.file.YamlConfiguration; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/CropStateTest.java b/paper-api/src/test/java/org/bukkit/CropStateTest.java index f792a1c4dc..5cd9d6d2d7 100644 --- a/paper-api/src/test/java/org/bukkit/CropStateTest.java +++ b/paper-api/src/test/java/org/bukkit/CropStateTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class CropStateTest { diff --git a/paper-api/src/test/java/org/bukkit/DifficultyTest.java b/paper-api/src/test/java/org/bukkit/DifficultyTest.java index 293e283a22..d7fe8d39a4 100644 --- a/paper-api/src/test/java/org/bukkit/DifficultyTest.java +++ b/paper-api/src/test/java/org/bukkit/DifficultyTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class DifficultyTest { diff --git a/paper-api/src/test/java/org/bukkit/DyeColorTest.java b/paper-api/src/test/java/org/bukkit/DyeColorTest.java index c5aaecf575..38769c1dae 100644 --- a/paper-api/src/test/java/org/bukkit/DyeColorTest.java +++ b/paper-api/src/test/java/org/bukkit/DyeColorTest.java @@ -1,11 +1,9 @@ package org.bukkit; -import static org.junit.Assert.*; import static org.hamcrest.Matchers.*; - +import static org.junit.Assert.*; import java.util.ArrayList; import java.util.List; - import org.bukkit.material.Colorable; import org.bukkit.material.Dye; import org.bukkit.material.Wool; diff --git a/paper-api/src/test/java/org/bukkit/EffectTest.java b/paper-api/src/test/java/org/bukkit/EffectTest.java index 08aa71d3a4..54e621e86e 100644 --- a/paper-api/src/test/java/org/bukkit/EffectTest.java +++ b/paper-api/src/test/java/org/bukkit/EffectTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class EffectTest { diff --git a/paper-api/src/test/java/org/bukkit/EntityEffectTest.java b/paper-api/src/test/java/org/bukkit/EntityEffectTest.java index 0c92d5cdd8..a50dac4fe1 100644 --- a/paper-api/src/test/java/org/bukkit/EntityEffectTest.java +++ b/paper-api/src/test/java/org/bukkit/EntityEffectTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class EntityEffectTest { diff --git a/paper-api/src/test/java/org/bukkit/GameModeTest.java b/paper-api/src/test/java/org/bukkit/GameModeTest.java index f671faefea..1c53e8ed8b 100644 --- a/paper-api/src/test/java/org/bukkit/GameModeTest.java +++ b/paper-api/src/test/java/org/bukkit/GameModeTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class GameModeTest { diff --git a/paper-api/src/test/java/org/bukkit/GrassSpeciesTest.java b/paper-api/src/test/java/org/bukkit/GrassSpeciesTest.java index 9e332c71d8..39f1b899ea 100644 --- a/paper-api/src/test/java/org/bukkit/GrassSpeciesTest.java +++ b/paper-api/src/test/java/org/bukkit/GrassSpeciesTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class GrassSpeciesTest { diff --git a/paper-api/src/test/java/org/bukkit/InstrumentTest.java b/paper-api/src/test/java/org/bukkit/InstrumentTest.java index f1a05705f5..f6d261ae50 100644 --- a/paper-api/src/test/java/org/bukkit/InstrumentTest.java +++ b/paper-api/src/test/java/org/bukkit/InstrumentTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class InstrumentTest { diff --git a/paper-api/src/test/java/org/bukkit/LocationTest.java b/paper-api/src/test/java/org/bukkit/LocationTest.java index c288e411e0..f3191ef25c 100644 --- a/paper-api/src/test/java/org/bukkit/LocationTest.java +++ b/paper-api/src/test/java/org/bukkit/LocationTest.java @@ -2,10 +2,9 @@ package org.bukkit; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - +import com.google.common.collect.ImmutableList; import java.util.List; import java.util.Random; - import org.bukkit.util.Vector; import org.junit.Test; import org.junit.runner.RunWith; @@ -13,8 +12,6 @@ import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; -import com.google.common.collect.ImmutableList; - @RunWith(Parameterized.class) public class LocationTest { private static final double delta = 1.0 / 1000000; diff --git a/paper-api/src/test/java/org/bukkit/MaterialTest.java b/paper-api/src/test/java/org/bukkit/MaterialTest.java index 66f4603a22..6b0eaaadf9 100644 --- a/paper-api/src/test/java/org/bukkit/MaterialTest.java +++ b/paper-api/src/test/java/org/bukkit/MaterialTest.java @@ -2,7 +2,6 @@ package org.bukkit; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - import org.bukkit.material.MaterialData; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/NoteTest.java b/paper-api/src/test/java/org/bukkit/NoteTest.java index 4759041a72..3711db0971 100644 --- a/paper-api/src/test/java/org/bukkit/NoteTest.java +++ b/paper-api/src/test/java/org/bukkit/NoteTest.java @@ -1,19 +1,10 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.nullValue; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - -import java.util.Collection; - -import org.junit.Test; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import com.google.common.collect.Lists; +import java.util.Collection; +import org.junit.Test; public class NoteTest { @Test diff --git a/paper-api/src/test/java/org/bukkit/TestServer.java b/paper-api/src/test/java/org/bukkit/TestServer.java index 316f3e61b6..596384b1e0 100644 --- a/paper-api/src/test/java/org/bukkit/TestServer.java +++ b/paper-api/src/test/java/org/bukkit/TestServer.java @@ -1,17 +1,15 @@ package org.bukkit; +import com.google.common.collect.ImmutableMap; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.Map; import java.util.logging.Logger; - import org.bukkit.command.SimpleCommandMap; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.SimplePluginManager; -import com.google.common.collect.ImmutableMap; - public final class TestServer implements InvocationHandler { private static interface MethodHandler { Object handle(TestServer server, Object[] args); diff --git a/paper-api/src/test/java/org/bukkit/TreeSpeciesTest.java b/paper-api/src/test/java/org/bukkit/TreeSpeciesTest.java index 4a997306f3..51e956cc5e 100644 --- a/paper-api/src/test/java/org/bukkit/TreeSpeciesTest.java +++ b/paper-api/src/test/java/org/bukkit/TreeSpeciesTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class TreeSpeciesTest { diff --git a/paper-api/src/test/java/org/bukkit/WorldTypeTest.java b/paper-api/src/test/java/org/bukkit/WorldTypeTest.java index d31c20522c..3c5f7b8a70 100644 --- a/paper-api/src/test/java/org/bukkit/WorldTypeTest.java +++ b/paper-api/src/test/java/org/bukkit/WorldTypeTest.java @@ -1,8 +1,7 @@ package org.bukkit; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; import org.junit.Test; public class WorldTypeTest { diff --git a/paper-api/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java b/paper-api/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java index 434e6e0b8d..aab5c89ffa 100644 --- a/paper-api/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java +++ b/paper-api/src/test/java/org/bukkit/configuration/ConfigurationSectionTest.java @@ -1,15 +1,15 @@ package org.bukkit.configuration; -import org.bukkit.Material; +import static org.junit.Assert.*; import java.util.Arrays; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import org.bukkit.Material; import org.bukkit.inventory.ItemStack; import org.bukkit.util.Vector; import org.junit.Test; -import static org.junit.Assert.*; public abstract class ConfigurationSectionTest { public abstract ConfigurationSection getConfigurationSection(); diff --git a/paper-api/src/test/java/org/bukkit/configuration/ConfigurationTest.java b/paper-api/src/test/java/org/bukkit/configuration/ConfigurationTest.java index 8ffe873a4f..94eb854e94 100644 --- a/paper-api/src/test/java/org/bukkit/configuration/ConfigurationTest.java +++ b/paper-api/src/test/java/org/bukkit/configuration/ConfigurationTest.java @@ -1,14 +1,14 @@ package org.bukkit.configuration; -import java.util.LinkedHashMap; +import static org.junit.Assert.*; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; +import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import org.bukkit.util.Vector; import org.junit.Test; -import static org.junit.Assert.*; public abstract class ConfigurationTest { public abstract Configuration getConfig(); diff --git a/paper-api/src/test/java/org/bukkit/configuration/file/FileConfigurationTest.java b/paper-api/src/test/java/org/bukkit/configuration/file/FileConfigurationTest.java index ce0c2e5a4b..a996753b93 100644 --- a/paper-api/src/test/java/org/bukkit/configuration/file/FileConfigurationTest.java +++ b/paper-api/src/test/java/org/bukkit/configuration/file/FileConfigurationTest.java @@ -1,5 +1,6 @@ package org.bukkit.configuration.file; +import static org.junit.Assert.*; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; @@ -8,7 +9,6 @@ import org.bukkit.configuration.MemoryConfigurationTest; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import static org.junit.Assert.*; public abstract class FileConfigurationTest extends MemoryConfigurationTest { @Rule diff --git a/paper-api/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java b/paper-api/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java index aa83af320d..71ba36c0cd 100644 --- a/paper-api/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java +++ b/paper-api/src/test/java/org/bukkit/configuration/file/YamlConfigurationTest.java @@ -1,7 +1,7 @@ package org.bukkit.configuration.file; -import org.junit.Test; import static org.junit.Assert.*; +import org.junit.Test; public class YamlConfigurationTest extends FileConfigurationTest { diff --git a/paper-api/src/test/java/org/bukkit/conversations/ConversationContextTest.java b/paper-api/src/test/java/org/bukkit/conversations/ConversationContextTest.java index dfc462b51c..3780a47c1f 100644 --- a/paper-api/src/test/java/org/bukkit/conversations/ConversationContextTest.java +++ b/paper-api/src/test/java/org/bukkit/conversations/ConversationContextTest.java @@ -1,10 +1,9 @@ package org.bukkit.conversations; -import org.junit.Test; import static org.junit.Assert.*; - import java.util.HashMap; import java.util.Map; +import org.junit.Test; /** */ diff --git a/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java b/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java index 544f1f3c28..139dcfd691 100644 --- a/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java +++ b/paper-api/src/test/java/org/bukkit/conversations/ConversationTest.java @@ -1,8 +1,8 @@ package org.bukkit.conversations; +import static org.junit.Assert.*; import org.bukkit.plugin.TestPlugin; import org.junit.Test; -import static org.junit.Assert.*; /** */ diff --git a/paper-api/src/test/java/org/bukkit/conversations/FakeConversable.java b/paper-api/src/test/java/org/bukkit/conversations/FakeConversable.java index ca98133649..8d8f34800a 100644 --- a/paper-api/src/test/java/org/bukkit/conversations/FakeConversable.java +++ b/paper-api/src/test/java/org/bukkit/conversations/FakeConversable.java @@ -1,13 +1,12 @@ package org.bukkit.conversations; +import java.util.Set; import org.bukkit.Server; import org.bukkit.permissions.Permission; import org.bukkit.permissions.PermissionAttachment; import org.bukkit.permissions.PermissionAttachmentInfo; import org.bukkit.plugin.Plugin; -import java.util.Set; - /** */ public class FakeConversable implements Conversable { diff --git a/paper-api/src/test/java/org/bukkit/conversations/ValidatingPromptTest.java b/paper-api/src/test/java/org/bukkit/conversations/ValidatingPromptTest.java index 443b12183c..0af8afd808 100644 --- a/paper-api/src/test/java/org/bukkit/conversations/ValidatingPromptTest.java +++ b/paper-api/src/test/java/org/bukkit/conversations/ValidatingPromptTest.java @@ -1,8 +1,7 @@ package org.bukkit.conversations; -import org.junit.Test; - import static org.junit.Assert.*; +import org.junit.Test; /** */ diff --git a/paper-api/src/test/java/org/bukkit/event/PlayerChatTabCompleteEventTest.java b/paper-api/src/test/java/org/bukkit/event/PlayerChatTabCompleteEventTest.java index 619bf30b0f..dd5fb243b7 100644 --- a/paper-api/src/test/java/org/bukkit/event/PlayerChatTabCompleteEventTest.java +++ b/paper-api/src/test/java/org/bukkit/event/PlayerChatTabCompleteEventTest.java @@ -1,14 +1,12 @@ package org.bukkit.event; -import static org.hamcrest.CoreMatchers.is; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; +import com.google.common.collect.ImmutableList; import org.bukkit.event.player.PlayerChatTabCompleteEvent; import org.bukkit.plugin.messaging.TestPlayer; import org.junit.Test; -import com.google.common.collect.ImmutableList; - public class PlayerChatTabCompleteEventTest { @Test diff --git a/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java b/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java index cde2adc9de..1bb009307e 100644 --- a/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java +++ b/paper-api/src/test/java/org/bukkit/materials/MaterialDataTest.java @@ -1,15 +1,14 @@ package org.bukkit.materials; -import static org.hamcrest.Matchers.equalTo; -import static org.junit.Assert.assertThat; - +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; import org.bukkit.CropState; import org.bukkit.Material; import org.bukkit.NetherWartsState; import org.bukkit.TreeSpecies; import org.bukkit.block.BlockFace; -import org.bukkit.material.Crops; import org.bukkit.material.Comparator; +import org.bukkit.material.Crops; import org.bukkit.material.Diode; import org.bukkit.material.Door; import org.bukkit.material.Hopper; diff --git a/paper-api/src/test/java/org/bukkit/metadata/FixedMetadataValueTest.java b/paper-api/src/test/java/org/bukkit/metadata/FixedMetadataValueTest.java index 5583b274b3..e8cea99fd0 100644 --- a/paper-api/src/test/java/org/bukkit/metadata/FixedMetadataValueTest.java +++ b/paper-api/src/test/java/org/bukkit/metadata/FixedMetadataValueTest.java @@ -1,8 +1,6 @@ package org.bukkit.metadata; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertSame; - +import static org.junit.Assert.*; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.TestPlugin; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/metadata/LazyMetadataValueTest.java b/paper-api/src/test/java/org/bukkit/metadata/LazyMetadataValueTest.java index a3172db70e..2850a082b4 100644 --- a/paper-api/src/test/java/org/bukkit/metadata/LazyMetadataValueTest.java +++ b/paper-api/src/test/java/org/bukkit/metadata/LazyMetadataValueTest.java @@ -1,12 +1,10 @@ package org.bukkit.metadata; +import static org.junit.Assert.*; +import java.util.concurrent.Callable; import org.bukkit.plugin.TestPlugin; import org.junit.Test; -import java.util.concurrent.Callable; - -import static org.junit.Assert.*; - public class LazyMetadataValueTest { private LazyMetadataValue subject; private TestPlugin plugin = new TestPlugin("x"); diff --git a/paper-api/src/test/java/org/bukkit/metadata/MetadataConversionTest.java b/paper-api/src/test/java/org/bukkit/metadata/MetadataConversionTest.java index a595cc8d67..a9c10a2fd9 100644 --- a/paper-api/src/test/java/org/bukkit/metadata/MetadataConversionTest.java +++ b/paper-api/src/test/java/org/bukkit/metadata/MetadataConversionTest.java @@ -15,12 +15,11 @@ package org.bukkit.metadata; +import static org.junit.Assert.*; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.TestPlugin; import org.junit.Test; -import static org.junit.Assert.assertEquals; - /** */ public class MetadataConversionTest { diff --git a/paper-api/src/test/java/org/bukkit/metadata/MetadataStoreTest.java b/paper-api/src/test/java/org/bukkit/metadata/MetadataStoreTest.java index 86e4b3280f..ffb8455851 100644 --- a/paper-api/src/test/java/org/bukkit/metadata/MetadataStoreTest.java +++ b/paper-api/src/test/java/org/bukkit/metadata/MetadataStoreTest.java @@ -1,12 +1,8 @@ package org.bukkit.metadata; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - +import static org.junit.Assert.*; import java.util.List; import java.util.concurrent.Callable; - import org.bukkit.plugin.Plugin; import org.bukkit.plugin.TestPlugin; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/metadata/MetadataValueAdapterTest.java b/paper-api/src/test/java/org/bukkit/metadata/MetadataValueAdapterTest.java index 7d8a17fee5..d3026a4923 100644 --- a/paper-api/src/test/java/org/bukkit/metadata/MetadataValueAdapterTest.java +++ b/paper-api/src/test/java/org/bukkit/metadata/MetadataValueAdapterTest.java @@ -1,7 +1,6 @@ package org.bukkit.metadata; -import static org.junit.Assert.assertEquals; - +import static org.junit.Assert.*; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.TestPlugin; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/plugin/PluginManagerTest.java b/paper-api/src/test/java/org/bukkit/plugin/PluginManagerTest.java index 4fdb9b223e..5e986de826 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/PluginManagerTest.java +++ b/paper-api/src/test/java/org/bukkit/plugin/PluginManagerTest.java @@ -2,12 +2,10 @@ package org.bukkit.plugin; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - import org.bukkit.TestServer; import org.bukkit.event.Event; import org.bukkit.event.TestEvent; import org.bukkit.permissions.Permission; - import org.junit.After; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/plugin/TestPlugin.java b/paper-api/src/test/java/org/bukkit/plugin/TestPlugin.java index 452d361880..e6819e5868 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/TestPlugin.java +++ b/paper-api/src/test/java/org/bukkit/plugin/TestPlugin.java @@ -3,7 +3,6 @@ package org.bukkit.plugin; import java.io.File; import java.io.InputStream; import java.util.List; - import org.bukkit.Server; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; diff --git a/paper-api/src/test/java/org/bukkit/plugin/TimedRegisteredListenerTest.java b/paper-api/src/test/java/org/bukkit/plugin/TimedRegisteredListenerTest.java index b206b1f38c..f2758cd3d4 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/TimedRegisteredListenerTest.java +++ b/paper-api/src/test/java/org/bukkit/plugin/TimedRegisteredListenerTest.java @@ -2,7 +2,6 @@ package org.bukkit.plugin; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - import org.bukkit.event.Event; import org.bukkit.event.EventException; import org.bukkit.event.EventPriority; diff --git a/paper-api/src/test/java/org/bukkit/plugin/messaging/StandardMessengerTest.java b/paper-api/src/test/java/org/bukkit/plugin/messaging/StandardMessengerTest.java index c15fa0039e..dce3d619a6 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/messaging/StandardMessengerTest.java +++ b/paper-api/src/test/java/org/bukkit/plugin/messaging/StandardMessengerTest.java @@ -1,12 +1,12 @@ package org.bukkit.plugin.messaging; +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; +import java.util.Collection; import org.bukkit.entity.Player; import org.bukkit.plugin.TestPlugin; -import java.util.Collection; -import org.junit.Test; import org.junit.Assert; -import static org.junit.Assert.*; -import static org.hamcrest.CoreMatchers.*; +import org.junit.Test; public class StandardMessengerTest { public StandardMessenger getMessenger() { diff --git a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestMessageListener.java b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestMessageListener.java index 98860ec192..10370c3e8b 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestMessageListener.java +++ b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestMessageListener.java @@ -1,7 +1,7 @@ package org.bukkit.plugin.messaging; -import org.bukkit.entity.Player; import static org.junit.Assert.*; +import org.bukkit.entity.Player; public class TestMessageListener implements PluginMessageListener { private final String channel; diff --git a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java index 46daf210bd..c4ed33fc0b 100644 --- a/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java +++ b/paper-api/src/test/java/org/bukkit/plugin/messaging/TestPlayer.java @@ -5,7 +5,6 @@ import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.util.HashMap; - import org.bukkit.entity.Player; diff --git a/paper-api/src/test/java/org/bukkit/util/BoundingBoxTest.java b/paper-api/src/test/java/org/bukkit/util/BoundingBoxTest.java index 1332aa2652..2d50a9ed66 100644 --- a/paper-api/src/test/java/org/bukkit/util/BoundingBoxTest.java +++ b/paper-api/src/test/java/org/bukkit/util/BoundingBoxTest.java @@ -2,9 +2,7 @@ package org.bukkit.util; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - import java.util.Map; - import org.bukkit.Location; import org.bukkit.block.BlockFace; import org.junit.Test; diff --git a/paper-api/src/test/java/org/bukkit/util/StringUtilStartsWithTest.java b/paper-api/src/test/java/org/bukkit/util/StringUtilStartsWithTest.java index b85a2b21e1..5dc9bf8c6e 100644 --- a/paper-api/src/test/java/org/bukkit/util/StringUtilStartsWithTest.java +++ b/paper-api/src/test/java/org/bukkit/util/StringUtilStartsWithTest.java @@ -2,17 +2,14 @@ package org.bukkit.util; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - +import com.google.common.collect.ImmutableList; import java.util.List; - import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; -import com.google.common.collect.ImmutableList; - @RunWith(Parameterized.class) public class StringUtilStartsWithTest { diff --git a/paper-api/src/test/java/org/bukkit/util/StringUtilTest.java b/paper-api/src/test/java/org/bukkit/util/StringUtilTest.java index 9c8444c1c6..326d0b2f51 100644 --- a/paper-api/src/test/java/org/bukkit/util/StringUtilTest.java +++ b/paper-api/src/test/java/org/bukkit/util/StringUtilTest.java @@ -2,15 +2,12 @@ package org.bukkit.util; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - +import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Arrays; import java.util.List; - import org.junit.Test; -import com.google.common.collect.ImmutableList; - public class StringUtilTest { @Test(expected=NullPointerException.class) diff --git a/paper-api/src/test/java/org/bukkit/util/VectorTest.java b/paper-api/src/test/java/org/bukkit/util/VectorTest.java index 6170f28c66..05ddb8762d 100644 --- a/paper-api/src/test/java/org/bukkit/util/VectorTest.java +++ b/paper-api/src/test/java/org/bukkit/util/VectorTest.java @@ -1,8 +1,8 @@ package org.bukkit.util; +import static org.junit.Assert.*; import org.bukkit.block.BlockFace; import org.junit.Test; -import static org.junit.Assert.*; public class VectorTest { diff --git a/paper-api/src/test/java/org/bukkit/util/io/BukkitObjectStreamTest.java b/paper-api/src/test/java/org/bukkit/util/io/BukkitObjectStreamTest.java index d0af4a015f..1586056ece 100644 --- a/paper-api/src/test/java/org/bukkit/util/io/BukkitObjectStreamTest.java +++ b/paper-api/src/test/java/org/bukkit/util/io/BukkitObjectStreamTest.java @@ -2,14 +2,13 @@ package org.bukkit.util.io; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; - +import com.google.common.collect.ImmutableList; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.List; - import org.bukkit.Color; import org.bukkit.FireworkEffect; import org.bukkit.FireworkEffect.Type; @@ -23,8 +22,6 @@ import org.junit.runners.Parameterized.Parameter; import org.junit.runners.Parameterized.Parameters; import org.yaml.snakeyaml.external.biz.base64Coder.Base64Coder; -import com.google.common.collect.ImmutableList; - @RunWith(Parameterized.class) public class BukkitObjectStreamTest {