From 0fd7d30f2a9027c2bd9df3215759c6d91d110acc Mon Sep 17 00:00:00 2001 From: Luck Date: Tue, 23 Mar 2021 00:52:44 +0000 Subject: Refactor and tidy up, more consistent code style --- .../src/main/java/me/lucko/spark/sponge/SpongeCommandSender.java | 2 ++ .../src/main/java/me/lucko/spark/sponge/SpongePlatformInfo.java | 1 + .../src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java | 5 ++++- spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeTickHook.java | 5 +++-- 4 files changed, 10 insertions(+), 3 deletions(-) (limited to 'spark-sponge/src/main/java/me/lucko') diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeCommandSender.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeCommandSender.java index 03766d2..f4636b7 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeCommandSender.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeCommandSender.java @@ -21,9 +21,11 @@ package me.lucko.spark.sponge; import me.lucko.spark.common.command.sender.AbstractCommandSender; + import net.kyori.adventure.audience.Audience; import net.kyori.adventure.platform.spongeapi.SpongeAudiences; import net.kyori.adventure.text.Component; + import org.spongepowered.api.command.CommandSource; import org.spongepowered.api.entity.living.player.Player; diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongePlatformInfo.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongePlatformInfo.java index 6cad3cb..969a2ee 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongePlatformInfo.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongePlatformInfo.java @@ -21,6 +21,7 @@ package me.lucko.spark.sponge; import me.lucko.spark.common.platform.AbstractPlatformInfo; + import org.spongepowered.api.Game; import org.spongepowered.api.Platform; diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java index 7478dee..9437207 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeSparkPlugin.java @@ -21,12 +21,15 @@ package me.lucko.spark.sponge; import com.google.inject.Inject; + import me.lucko.spark.common.SparkPlatform; import me.lucko.spark.common.SparkPlugin; import me.lucko.spark.common.platform.PlatformInfo; import me.lucko.spark.common.sampler.ThreadDumper; -import me.lucko.spark.common.sampler.tick.TickHook; +import me.lucko.spark.common.tick.TickHook; + import net.kyori.adventure.platform.spongeapi.SpongeAudiences; + import org.spongepowered.api.Game; import org.spongepowered.api.command.CommandCallable; import org.spongepowered.api.command.CommandResult; diff --git a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeTickHook.java b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeTickHook.java index 2fdc459..b6903de 100644 --- a/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeTickHook.java +++ b/spark-sponge/src/main/java/me/lucko/spark/sponge/SpongeTickHook.java @@ -20,8 +20,9 @@ package me.lucko.spark.sponge; -import me.lucko.spark.common.sampler.tick.AbstractTickHook; -import me.lucko.spark.common.sampler.tick.TickHook; +import me.lucko.spark.common.tick.AbstractTickHook; +import me.lucko.spark.common.tick.TickHook; + import org.spongepowered.api.scheduler.Task; public class SpongeTickHook extends AbstractTickHook implements TickHook, Runnable { -- cgit