diff --git a/README.md b/README.md index 7f5f893..707ae09 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ server. ## Installation +**These directions won't work for the time being.** + The following command downloads and runs a script that will fetch the latest update manifest, and install all plugins available. It can also be used to update plugins to the latest version available. diff --git a/build.gradle.kts b/build.gradle.kts index 8ffa2cc..8c8def1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,11 +1,11 @@ -import cloud.kubelet.foundation.gradle.FoundationProjectPlugin -import cloud.kubelet.foundation.gradle.isFoundationPlugin import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar +import gay.pizza.foundation.gradle.FoundationProjectPlugin +import gay.pizza.foundation.gradle.isFoundationPlugin import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { java - id("cloud.kubelet.foundation.gradle") + id("gay.pizza.foundation.gradle") } allprojects { diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 0c03e83..f35cfeb 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -21,8 +21,8 @@ java.targetCompatibility = JavaVersion.VERSION_1_8 gradlePlugin { plugins { create("foundation") { - id = "cloud.kubelet.foundation.gradle" - implementationClass = "cloud.kubelet.foundation.gradle.FoundationGradlePlugin" + id = "gay.pizza.foundation.gradle" + implementationClass = "gay.pizza.foundation.gradle.FoundationGradlePlugin" } } } diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationExtension.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationExtension.kt similarity index 80% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationExtension.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationExtension.kt index d4de2c8..c2417af 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationExtension.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationExtension.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.provider.Property diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGlobals.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGlobals.kt similarity index 66% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGlobals.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGlobals.kt index a68d68d..bce4124 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGlobals.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGlobals.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import com.google.gson.Gson diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGradlePlugin.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGradlePlugin.kt similarity index 53% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGradlePlugin.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGradlePlugin.kt index fa75d06..df019ca 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationGradlePlugin.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationGradlePlugin.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.Plugin import org.gradle.api.Project @@ -6,8 +6,8 @@ import org.gradle.kotlin.dsl.create class FoundationGradlePlugin : Plugin { override fun apply(project: Project) { - project.extensions.create("foundation") - val setupPaperServer = project.tasks.create("setupPaperServer") + project.extensions.create("foundation") + val setupPaperServer = project.tasks.create("setupPaperServer") project.afterEvaluate { -> setupPaperServer.dependsOn(*project.subprojects .filter { it.name.startsWith("foundation-") } @@ -15,10 +15,10 @@ class FoundationGradlePlugin : Plugin { .toTypedArray() ) } - val runPaperServer = project.tasks.create("runPaperServer") + val runPaperServer = project.tasks.create("runPaperServer") runPaperServer.dependsOn(setupPaperServer) - val updateManifests = project.tasks.create("updateManifests") + val updateManifests = project.tasks.create("updateManifests") project.tasks.getByName("assemble").dependsOn(updateManifests) } } diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationProjectPlugin.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationProjectPlugin.kt similarity index 90% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationProjectPlugin.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationProjectPlugin.kt index 793c405..08b7ea7 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/FoundationProjectPlugin.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/FoundationProjectPlugin.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.Plugin import org.gradle.api.Project diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/PaperVersionClient.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/PaperVersionClient.kt similarity index 91% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/PaperVersionClient.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/PaperVersionClient.kt index 3461ecc..ae74d27 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/PaperVersionClient.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/PaperVersionClient.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import com.google.gson.Gson import java.net.URI @@ -8,7 +8,7 @@ import java.net.http.HttpResponse class PaperVersionClient( val client: HttpClient = HttpClient.newHttpClient(), - private val gson: Gson = FoundationGlobals.gson + private val gson: Gson = gay.pizza.foundation.gradle.FoundationGlobals.gson ) { private val apiBaseUrl = URI.create("https://papermc.io/api/v2/") diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/RunPaperServer.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/RunPaperServer.kt similarity index 85% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/RunPaperServer.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/RunPaperServer.kt index e7b9f4f..91ab7a4 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/RunPaperServer.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/RunPaperServer.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction @@ -13,7 +13,7 @@ open class RunPaperServer : DefaultTask() { @TaskAction fun runPaperServer() { - val foundation = project.extensions.getByType() + val foundation = project.extensions.getByType() val minecraftServerDirectory = project.file(foundation.minecraftServerPath.get()) val paperJarFile = minecraftServerDirectory.resolve("paper.jar") diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SetupPaperServer.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SetupPaperServer.kt similarity index 94% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SetupPaperServer.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SetupPaperServer.kt index 0ae70bc..9b09d72 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SetupPaperServer.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SetupPaperServer.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.DefaultTask import org.gradle.api.tasks.Input @@ -21,7 +21,7 @@ open class SetupPaperServer : DefaultTask() { @TaskAction fun downloadPaperTask() { - val foundation = project.extensions.getByType() + val foundation = project.extensions.getByType() val minecraftServerDirectory = project.file(foundation.minecraftServerPath.get()) if (!minecraftServerDirectory.exists()) { diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SmartDownloader.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SmartDownloader.kt similarity index 98% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SmartDownloader.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SmartDownloader.kt index 209b43c..1ebbb00 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/SmartDownloader.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/SmartDownloader.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import java.net.URI import java.nio.file.Files diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/UpdateManifestTask.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/UpdateManifestTask.kt similarity index 86% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/UpdateManifestTask.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/UpdateManifestTask.kt index 012332d..bfe0424 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/UpdateManifestTask.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/UpdateManifestTask.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.DefaultTask import org.gradle.api.tasks.TaskAction @@ -21,7 +21,7 @@ open class UpdateManifestTask : DefaultTask() { } else null }.toMap() - Files.writeString(updateFile, FoundationGlobals.gson.toJson(updateManifest)) + Files.writeString(updateFile, gay.pizza.foundation.gradle.FoundationGlobals.gson.toJson(updateManifest)) } private fun ensureManifestsDir(): Path { diff --git a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/extensions.kt b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/extensions.kt similarity index 93% rename from buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/extensions.kt rename to buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/extensions.kt index 890c523..42ce141 100644 --- a/buildSrc/src/main/kotlin/cloud/kubelet/foundation/gradle/extensions.kt +++ b/buildSrc/src/main/kotlin/gay/pizza/foundation/gradle/extensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gradle +package gay.pizza.foundation.gradle import org.gradle.api.Project import org.gradle.api.tasks.TaskOutputs diff --git a/foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/FoundationBifrostPlugin.kt b/foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/FoundationBifrostPlugin.kt similarity index 95% rename from foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/FoundationBifrostPlugin.kt rename to foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/FoundationBifrostPlugin.kt index a296418..acab528 100644 --- a/foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/FoundationBifrostPlugin.kt +++ b/foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/FoundationBifrostPlugin.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.bifrost +package gay.pizza.foundation.bifrost -import cloud.kubelet.foundation.bifrost.model.BifrostConfig -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.core.util.AdvancementTitleCache import com.charleskorn.kaml.Yaml +import gay.pizza.foundation.bifrost.model.BifrostConfig +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.core.util.AdvancementTitleCache import io.papermc.paper.event.player.AsyncChatEvent import net.dv8tion.jda.api.EmbedBuilder import net.dv8tion.jda.api.JDA diff --git a/foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/model/BifrostConfig.kt b/foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/model/BifrostConfig.kt similarity index 92% rename from foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/model/BifrostConfig.kt rename to foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/model/BifrostConfig.kt index 232c1de..de83e05 100644 --- a/foundation-bifrost/src/main/kotlin/cloud/kubelet/foundation/bifrost/model/BifrostConfig.kt +++ b/foundation-bifrost/src/main/kotlin/gay/pizza/foundation/bifrost/model/BifrostConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.bifrost.model +package gay.pizza.foundation.bifrost.model import kotlinx.serialization.Serializable diff --git a/foundation-bifrost/src/main/resources/plugin.yml b/foundation-bifrost/src/main/resources/plugin.yml index 6edcdab..d60396f 100644 --- a/foundation-bifrost/src/main/resources/plugin.yml +++ b/foundation-bifrost/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Foundation-Bifrost version: '${version}' -main: cloud.kubelet.foundation.bifrost.FoundationBifrostPlugin +main: gay.pizza.foundation.bifrost.FoundationBifrostPlugin api-version: 1.18 prefix: Foundation-Bifrost load: STARTUP diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/BukkitExtensions.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/BukkitExtensions.kt similarity index 95% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/BukkitExtensions.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/BukkitExtensions.kt index 547572c..1d49684 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/BukkitExtensions.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/BukkitExtensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core import org.bukkit.Material import org.bukkit.OfflinePlayer diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/CommonExtensions.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/CommonExtensions.kt similarity index 84% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/CommonExtensions.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/CommonExtensions.kt index c4d87ba..32d4556 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/CommonExtensions.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/CommonExtensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core fun > Collection.sortedBy(order: SortOrder, selector: (T) -> R?): List = if (order == SortOrder.Ascending) { diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/FoundationCorePlugin.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/FoundationCorePlugin.kt similarity index 59% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/FoundationCorePlugin.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/FoundationCorePlugin.kt index c2cbdbc..34d6baf 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/FoundationCorePlugin.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/FoundationCorePlugin.kt @@ -1,15 +1,15 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core -import cloud.kubelet.foundation.core.abstraction.FoundationPlugin -import cloud.kubelet.foundation.core.features.backup.BackupFeature -import cloud.kubelet.foundation.core.features.dev.DevFeature -import cloud.kubelet.foundation.core.features.gameplay.GameplayFeature -import cloud.kubelet.foundation.core.features.persist.PersistenceFeature -import cloud.kubelet.foundation.core.features.player.PlayerFeature -import cloud.kubelet.foundation.core.features.scheduler.SchedulerFeature -import cloud.kubelet.foundation.core.features.stats.StatsFeature -import cloud.kubelet.foundation.core.features.update.UpdateFeature -import cloud.kubelet.foundation.core.features.world.WorldFeature +import gay.pizza.foundation.core.abstraction.FoundationPlugin +import gay.pizza.foundation.core.features.backup.BackupFeature +import gay.pizza.foundation.core.features.dev.DevFeature +import gay.pizza.foundation.core.features.gameplay.GameplayFeature +import gay.pizza.foundation.core.features.persist.PersistenceFeature +import gay.pizza.foundation.core.features.player.PlayerFeature +import gay.pizza.foundation.core.features.scheduler.SchedulerFeature +import gay.pizza.foundation.core.features.stats.StatsFeature +import gay.pizza.foundation.core.features.update.UpdateFeature +import gay.pizza.foundation.core.features.world.WorldFeature import org.koin.dsl.module import java.nio.file.Path diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/SortOrder.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/SortOrder.kt similarity index 57% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/SortOrder.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/SortOrder.kt index 8be4619..1e64514 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/SortOrder.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/SortOrder.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core enum class SortOrder { Ascending, diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/TextColors.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/TextColors.kt similarity index 77% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/TextColors.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/TextColors.kt index 49d8c0c..4882d47 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/TextColors.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/TextColors.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core import net.kyori.adventure.text.format.TextColor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/Util.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/Util.kt similarity index 98% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/Util.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/Util.kt index ea4adfc..0f185ab 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/Util.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/Util.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core +package gay.pizza.foundation.core import net.kyori.adventure.text.Component import net.kyori.adventure.text.format.TextColor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/CoreFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/CoreFeature.kt similarity index 66% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/CoreFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/CoreFeature.kt index 391cea7..4944a02 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/CoreFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/CoreFeature.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.abstraction +package gay.pizza.foundation.core.abstraction interface CoreFeature { fun enable() diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/Feature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/Feature.kt similarity index 90% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/Feature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/Feature.kt index 6a7d82e..d99e31f 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/Feature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/Feature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.abstraction +package gay.pizza.foundation.core.abstraction -import cloud.kubelet.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.FoundationCorePlugin import org.bukkit.command.CommandExecutor import org.bukkit.command.TabCompleter import org.bukkit.event.Listener diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/FoundationPlugin.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/FoundationPlugin.kt similarity index 97% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/FoundationPlugin.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/FoundationPlugin.kt index 2343b90..7b0c881 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/abstraction/FoundationPlugin.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/abstraction/FoundationPlugin.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.abstraction +package gay.pizza.foundation.core.abstraction import org.bukkit.plugin.java.JavaPlugin import org.koin.core.KoinApplication diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupCommand.kt similarity index 97% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupCommand.kt index bb97467..d3cf5ee 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupCommand.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.core.features.backup +package gay.pizza.foundation.core.features.backup -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util import net.kyori.adventure.text.Component import net.kyori.adventure.text.format.TextColor import org.bukkit.Server diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupConfig.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupConfig.kt similarity index 90% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupConfig.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupConfig.kt index d143895..ee63ae5 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupConfig.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.backup +package gay.pizza.foundation.core.features.backup import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupFeature.kt similarity index 87% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupFeature.kt index ac1fa69..f3e5dfc 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/backup/BackupFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/backup/BackupFeature.kt @@ -1,11 +1,11 @@ -package cloud.kubelet.foundation.core.features.backup +package gay.pizza.foundation.core.features.backup -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.core.abstraction.Feature -import cloud.kubelet.foundation.core.features.scheduler.cancel -import cloud.kubelet.foundation.core.features.scheduler.cron import com.charleskorn.kaml.Yaml +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.features.scheduler.cancel +import gay.pizza.foundation.core.features.scheduler.cron import org.koin.core.component.inject import org.koin.dsl.module import software.amazon.awssdk.auth.credentials.AwsSessionCredentials diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevFeature.kt similarity index 70% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevFeature.kt index 5b0ddc1..a04bc9b 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevFeature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.dev +package gay.pizza.foundation.core.features.dev -import cloud.kubelet.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.abstraction.Feature class DevFeature : Feature() { private lateinit var devUpdateServer: DevUpdateServer diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateConfig.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateConfig.kt similarity index 77% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateConfig.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateConfig.kt index 1a7b0ae..931dcb7 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateConfig.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.dev +package gay.pizza.foundation.core.features.dev import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdatePayload.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdatePayload.kt similarity index 85% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdatePayload.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdatePayload.kt index 2de1b61..4ef9b48 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdatePayload.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdatePayload.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.dev +package gay.pizza.foundation.core.features.dev import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateServer.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateServer.kt similarity index 93% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateServer.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateServer.kt index 8b45ba8..4427997 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/dev/DevUpdateServer.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/dev/DevUpdateServer.kt @@ -1,11 +1,11 @@ -package cloud.kubelet.foundation.core.features.dev +package gay.pizza.foundation.core.features.dev -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.core.features.update.UpdateService import com.charleskorn.kaml.Yaml import com.sun.net.httpserver.HttpExchange import com.sun.net.httpserver.HttpServer +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.core.features.update.UpdateService import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream import kotlinx.serialization.json.jsonPrimitive diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayConfig.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayConfig.kt similarity index 83% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayConfig.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayConfig.kt index 6a250c6..ec010ca 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayConfig.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.gameplay +package gay.pizza.foundation.core.features.gameplay import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayFeature.kt similarity index 93% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayFeature.kt index 56901c1..5647654 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/gameplay/GameplayFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/gameplay/GameplayFeature.kt @@ -1,9 +1,9 @@ -package cloud.kubelet.foundation.core.features.gameplay +package gay.pizza.foundation.core.features.gameplay -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.core.abstraction.Feature import com.charleskorn.kaml.Yaml +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.core.abstraction.Feature import org.bukkit.Bukkit import org.bukkit.Material import org.bukkit.entity.EntityType diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistenceFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistenceFeature.kt similarity index 75% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistenceFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistenceFeature.kt index 7d1c16f..c5042dd 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistenceFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistenceFeature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.persist +package gay.pizza.foundation.core.features.persist -import cloud.kubelet.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.abstraction.Feature import org.koin.core.component.inject import org.koin.core.module.Module import org.koin.dsl.module diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStore.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStore.kt similarity index 91% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStore.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStore.kt index 078cff8..88f1689 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStore.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStore.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.persist +package gay.pizza.foundation.core.features.persist -import cloud.kubelet.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.FoundationCorePlugin import jetbrains.exodus.entitystore.Entity import jetbrains.exodus.entitystore.EntityIterable import jetbrains.exodus.entitystore.PersistentEntityStores diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStoreCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt similarity index 95% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStoreCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt index c7ef55e..fd7d461 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PersistentStoreCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PersistentStoreCommand.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.persist +package gay.pizza.foundation.core.features.persist -import cloud.kubelet.foundation.core.features.stats.StatsFeature +import gay.pizza.foundation.core.features.stats.StatsFeature import org.bukkit.command.Command import org.bukkit.command.CommandExecutor import org.bukkit.command.CommandSender diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PluginPersistence.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PluginPersistence.kt similarity index 84% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PluginPersistence.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PluginPersistence.kt index ab5c638..575849f 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/PluginPersistence.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/PluginPersistence.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.persist +package gay.pizza.foundation.core.features.persist -import cloud.kubelet.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.FoundationCorePlugin import org.koin.core.component.KoinComponent import org.koin.core.component.inject import java.util.concurrent.ConcurrentHashMap diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/XodusExtensions.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/XodusExtensions.kt similarity index 78% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/XodusExtensions.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/XodusExtensions.kt index 94dfd81..e961c04 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/persist/XodusExtensions.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/persist/XodusExtensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.persist +package gay.pizza.foundation.core.features.persist import jetbrains.exodus.entitystore.Entity diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/GamemodeCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GamemodeCommand.kt similarity index 92% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/GamemodeCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GamemodeCommand.kt index e5ca5e6..6031c22 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/GamemodeCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/GamemodeCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.player +package gay.pizza.foundation.core.features.player import org.bukkit.GameMode import org.bukkit.command.Command diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/LocalWeatherCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/LocalWeatherCommand.kt similarity index 95% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/LocalWeatherCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/LocalWeatherCommand.kt index fe4c658..f6146a9 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/LocalWeatherCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/LocalWeatherCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.player +package gay.pizza.foundation.core.features.player import org.bukkit.WeatherType import org.bukkit.command.Command diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerConfig.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerConfig.kt similarity index 86% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerConfig.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerConfig.kt index 2634007..c319fe9 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerConfig.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.player +package gay.pizza.foundation.core.features.player import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt similarity index 93% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt index 4bea4f1..2c13831 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/player/PlayerFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/player/PlayerFeature.kt @@ -1,12 +1,12 @@ -package cloud.kubelet.foundation.core.features.player +package gay.pizza.foundation.core.features.player -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.core.abstraction.Feature import com.charleskorn.kaml.Yaml import com.google.common.cache.Cache import com.google.common.cache.CacheBuilder import com.google.common.cache.RemovalCause +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.core.abstraction.Feature import net.kyori.adventure.text.Component import org.bukkit.GameMode import org.bukkit.event.EventHandler diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerExtensions.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerExtensions.kt similarity index 92% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerExtensions.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerExtensions.kt index ed2dc8c..fc4cd1b 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerExtensions.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerExtensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.scheduler +package gay.pizza.foundation.core.features.scheduler import org.quartz.CronScheduleBuilder.cronSchedule import org.quartz.JobBuilder.newJob diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerFeature.kt similarity index 77% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerFeature.kt index 23651a3..08c6498 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerFeature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.scheduler +package gay.pizza.foundation.core.features.scheduler -import cloud.kubelet.foundation.core.abstraction.CoreFeature +import gay.pizza.foundation.core.abstraction.CoreFeature import org.koin.dsl.module import org.quartz.Scheduler import org.quartz.impl.StdSchedulerFactory diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerRunner.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerRunner.kt similarity index 82% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerRunner.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerRunner.kt index 07d8b5f..913ac52 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/scheduler/SchedulerRunner.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/scheduler/SchedulerRunner.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.scheduler +package gay.pizza.foundation.core.features.scheduler import org.quartz.Job import org.quartz.JobExecutionContext diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/LeaderboardCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/LeaderboardCommand.kt similarity index 93% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/LeaderboardCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/LeaderboardCommand.kt index 0b84e72..142c7ee 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/LeaderboardCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/LeaderboardCommand.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.core.features.stats +package gay.pizza.foundation.core.features.stats -import cloud.kubelet.foundation.core.SortOrder -import cloud.kubelet.foundation.core.allPlayerStatisticsOf +import gay.pizza.foundation.core.SortOrder +import gay.pizza.foundation.core.allPlayerStatisticsOf import org.bukkit.Statistic import org.bukkit.command.Command import org.bukkit.command.CommandExecutor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/StatsFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/StatsFeature.kt similarity index 74% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/StatsFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/StatsFeature.kt index 4a790f7..3731145 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/stats/StatsFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/stats/StatsFeature.kt @@ -1,7 +1,10 @@ -package cloud.kubelet.foundation.core.features.stats +package gay.pizza.foundation.core.features.stats -import cloud.kubelet.foundation.core.abstraction.Feature -import cloud.kubelet.foundation.core.features.persist.* +import gay.pizza.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.features.persist.PersistentStore +import gay.pizza.foundation.core.features.persist.PersistentStoreCommand +import gay.pizza.foundation.core.features.persist.PluginPersistence +import gay.pizza.foundation.core.features.persist.setAllProperties import io.papermc.paper.event.player.AsyncChatEvent import net.kyori.adventure.text.TextComponent import org.bukkit.event.EventHandler diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/ModuleManifest.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/ModuleManifest.kt similarity index 72% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/ModuleManifest.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/ModuleManifest.kt index dd9da54..d295582 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/ModuleManifest.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/ModuleManifest.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.update +package gay.pizza.foundation.core.features.update import kotlinx.serialization.Serializable diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateCommand.kt similarity index 86% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateCommand.kt index ebebe28..125f347 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.update +package gay.pizza.foundation.core.features.update import org.bukkit.command.Command import org.bukkit.command.CommandExecutor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateFeature.kt similarity index 52% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateFeature.kt index a965f63..b139ce0 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateFeature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.update +package gay.pizza.foundation.core.features.update -import cloud.kubelet.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.abstraction.Feature class UpdateFeature : Feature() { override fun enable() { diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateService.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateService.kt similarity index 96% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateService.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateService.kt index a3d20ff..92720cf 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateService.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateService.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.update +package gay.pizza.foundation.core.features.update import org.bukkit.command.CommandSender import kotlin.io.path.name diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateUtil.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateUtil.kt similarity index 96% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateUtil.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateUtil.kt index 58db5cd..0a7f559 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/update/UpdateUtil.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/update/UpdateUtil.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.update +package gay.pizza.foundation.core.features.update import kotlinx.serialization.DeserializationStrategy import kotlinx.serialization.builtins.MapSerializer diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SetSpawnCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SetSpawnCommand.kt similarity index 91% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SetSpawnCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SetSpawnCommand.kt index 6f97fd0..fbe36bc 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SetSpawnCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SetSpawnCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.world +package gay.pizza.foundation.core.features.world import org.bukkit.command.Command import org.bukkit.command.CommandExecutor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SpawnCommand.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SpawnCommand.kt similarity index 90% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SpawnCommand.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SpawnCommand.kt index 3932ceb..3f8aff3 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/SpawnCommand.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/SpawnCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.features.world +package gay.pizza.foundation.core.features.world import org.bukkit.command.Command import org.bukkit.command.CommandExecutor diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/WorldFeature.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/WorldFeature.kt similarity index 61% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/WorldFeature.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/WorldFeature.kt index 2927c31..09e550c 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/features/world/WorldFeature.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/features/world/WorldFeature.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.core.features.world +package gay.pizza.foundation.core.features.world -import cloud.kubelet.foundation.core.abstraction.Feature +import gay.pizza.foundation.core.abstraction.Feature class WorldFeature : Feature() { override fun enable() { diff --git a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/util/AdvancementTitleCache.kt b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/util/AdvancementTitleCache.kt similarity index 98% rename from foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/util/AdvancementTitleCache.kt rename to foundation-core/src/main/kotlin/gay/pizza/foundation/core/util/AdvancementTitleCache.kt index 1100261..06edce6 100644 --- a/foundation-core/src/main/kotlin/cloud/kubelet/foundation/core/util/AdvancementTitleCache.kt +++ b/foundation-core/src/main/kotlin/gay/pizza/foundation/core/util/AdvancementTitleCache.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.core.util +package gay.pizza.foundation.core.util import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer diff --git a/foundation-core/src/main/resources/plugin.yml b/foundation-core/src/main/resources/plugin.yml index 9f26985..83a2240 100644 --- a/foundation-core/src/main/resources/plugin.yml +++ b/foundation-core/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Foundation version: '${version}' -main: cloud.kubelet.foundation.core.FoundationCorePlugin +main: gay.pizza.foundation.core.FoundationCorePlugin api-version: 1.18 prefix: Foundation load: STARTUP diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/Extensions.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/Extensions.kt similarity index 90% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/Extensions.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/Extensions.kt index b0bb391..610736b 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/Extensions.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/Extensions.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall +package gay.pizza.foundation.heimdall fun String.sqlSplitStatements(): List { val statements = mutableListOf() diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/FoundationHeimdallPlugin.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/FoundationHeimdallPlugin.kt similarity index 82% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/FoundationHeimdallPlugin.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/FoundationHeimdallPlugin.kt index 5b99b1f..b171ff2 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/FoundationHeimdallPlugin.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/FoundationHeimdallPlugin.kt @@ -1,15 +1,22 @@ -package cloud.kubelet.foundation.heimdall +package gay.pizza.foundation.heimdall -import cloud.kubelet.foundation.core.FoundationCorePlugin -import cloud.kubelet.foundation.core.Util -import cloud.kubelet.foundation.heimdall.buffer.BufferFlushThread -import cloud.kubelet.foundation.heimdall.buffer.EventBuffer -import cloud.kubelet.foundation.heimdall.event.* -import cloud.kubelet.foundation.heimdall.model.HeimdallConfig -import cloud.kubelet.foundation.heimdall.export.ExportChunksCommand import com.charleskorn.kaml.Yaml import com.zaxxer.hikari.HikariConfig import com.zaxxer.hikari.HikariDataSource +import gay.pizza.foundation.core.FoundationCorePlugin +import gay.pizza.foundation.core.Util +import gay.pizza.foundation.heimdall.buffer.BufferFlushThread +import gay.pizza.foundation.heimdall.buffer.EventBuffer +import gay.pizza.foundation.heimdall.event.BlockBreak +import gay.pizza.foundation.heimdall.event.BlockPlace +import gay.pizza.foundation.heimdall.event.EntityKill +import gay.pizza.foundation.heimdall.event.PlayerAdvancement +import gay.pizza.foundation.heimdall.event.PlayerDeath +import gay.pizza.foundation.heimdall.event.PlayerPosition +import gay.pizza.foundation.heimdall.event.PlayerSession +import gay.pizza.foundation.heimdall.event.WorldChange +import gay.pizza.foundation.heimdall.export.ExportChunksCommand +import gay.pizza.foundation.heimdall.model.HeimdallConfig import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer import org.bukkit.event.EventHandler import org.bukkit.event.Listener @@ -17,13 +24,17 @@ import org.bukkit.event.block.BlockBreakEvent import org.bukkit.event.block.BlockPlaceEvent import org.bukkit.event.entity.EntityDeathEvent import org.bukkit.event.entity.PlayerDeathEvent -import org.bukkit.event.player.* +import org.bukkit.event.player.PlayerAdvancementDoneEvent +import org.bukkit.event.player.PlayerChangedWorldEvent +import org.bukkit.event.player.PlayerJoinEvent +import org.bukkit.event.player.PlayerMoveEvent +import org.bukkit.event.player.PlayerQuitEvent import org.bukkit.plugin.java.JavaPlugin import org.jetbrains.exposed.sql.Database import org.postgresql.Driver import java.time.Duration import java.time.Instant -import java.util.* +import java.util.UUID import java.util.concurrent.ConcurrentHashMap import kotlin.io.path.inputStream diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/BufferFlushThread.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/BufferFlushThread.kt similarity index 90% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/BufferFlushThread.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/BufferFlushThread.kt index 98e46bf..50da314 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/BufferFlushThread.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/BufferFlushThread.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.heimdall.buffer +package gay.pizza.foundation.heimdall.buffer -import cloud.kubelet.foundation.heimdall.FoundationHeimdallPlugin +import gay.pizza.foundation.heimdall.FoundationHeimdallPlugin import org.jetbrains.exposed.sql.transactions.transaction import java.util.concurrent.atomic.AtomicBoolean diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/EventBuffer.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/EventBuffer.kt similarity index 82% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/EventBuffer.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/EventBuffer.kt index 97a3adf..746e82a 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/buffer/EventBuffer.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/buffer/EventBuffer.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.heimdall.buffer +package gay.pizza.foundation.heimdall.buffer -import cloud.kubelet.foundation.heimdall.event.HeimdallEvent +import gay.pizza.foundation.heimdall.event.HeimdallEvent import org.jetbrains.exposed.sql.Transaction class EventBuffer { diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockBreak.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockBreak.kt similarity index 87% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockBreak.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockBreak.kt index 0111e26..078977f 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockBreak.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockBreak.kt @@ -1,13 +1,13 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.BlockBreakTable +import gay.pizza.foundation.heimdall.table.BlockBreakTable import org.bukkit.Location import org.bukkit.Material import org.bukkit.event.block.BlockBreakEvent import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class BlockBreak( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockPlace.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockPlace.kt similarity index 87% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockPlace.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockPlace.kt index aac5f28..4e4796e 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/BlockPlace.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/BlockPlace.kt @@ -1,13 +1,13 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.BlockPlaceTable +import gay.pizza.foundation.heimdall.table.BlockPlaceTable import org.bukkit.Location import org.bukkit.Material import org.bukkit.event.block.BlockPlaceEvent import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class BlockPlace( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/EntityKill.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/EntityKill.kt similarity index 86% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/EntityKill.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/EntityKill.kt index ff1add4..7e5af6c 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/EntityKill.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/EntityKill.kt @@ -1,11 +1,11 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.EntityKillTable +import gay.pizza.foundation.heimdall.table.EntityKillTable import org.bukkit.Location import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class EntityKill( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/HeimdallEvent.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/HeimdallEvent.kt similarity index 72% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/HeimdallEvent.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/HeimdallEvent.kt index 1e847f5..a2fced4 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/HeimdallEvent.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/HeimdallEvent.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event import org.jetbrains.exposed.sql.Transaction diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerAdvancement.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerAdvancement.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerAdvancement.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerAdvancement.kt index 06f2dff..79a00aa 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerAdvancement.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerAdvancement.kt @@ -1,13 +1,13 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.PlayerAdvancementTable +import gay.pizza.foundation.heimdall.table.PlayerAdvancementTable import org.bukkit.Location import org.bukkit.advancement.Advancement import org.bukkit.event.player.PlayerAdvancementDoneEvent import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class PlayerAdvancement( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerDeath.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerDeath.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerDeath.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerDeath.kt index b8b58c3..c5913fa 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerDeath.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerDeath.kt @@ -1,12 +1,12 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.PlayerDeathTable +import gay.pizza.foundation.heimdall.table.PlayerDeathTable import org.bukkit.Location import org.bukkit.event.entity.PlayerDeathEvent import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class PlayerDeath( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerPosition.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerPosition.kt similarity index 85% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerPosition.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerPosition.kt index cbd9c32..b8cf638 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerPosition.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerPosition.kt @@ -1,12 +1,12 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.PlayerPositionTable +import gay.pizza.foundation.heimdall.table.PlayerPositionTable import org.bukkit.Location import org.bukkit.event.player.PlayerMoveEvent import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class PlayerPosition( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerSession.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerSession.kt similarity index 81% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerSession.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerSession.kt index d31fb4b..18cefe6 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/PlayerSession.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/PlayerSession.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.PlayerSessionTable +import gay.pizza.foundation.heimdall.table.PlayerSessionTable import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class PlayerSession( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/WorldChange.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/WorldChange.kt similarity index 84% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/WorldChange.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/WorldChange.kt index dd53aaa..b8be758 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/event/WorldChange.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/event/WorldChange.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.heimdall.event +package gay.pizza.foundation.heimdall.event -import cloud.kubelet.foundation.heimdall.table.WorldChangeTable +import gay.pizza.foundation.heimdall.table.WorldChangeTable import org.jetbrains.exposed.sql.Transaction import org.jetbrains.exposed.sql.insert import java.time.Instant -import java.util.* +import java.util.UUID class WorldChange( val playerUniqueIdentity: UUID, diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ChunkExporter.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ChunkExporter.kt similarity index 97% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ChunkExporter.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ChunkExporter.kt index aba2aa4..ce75261 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ChunkExporter.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ChunkExporter.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.export +package gay.pizza.foundation.heimdall.export import kotlinx.serialization.json.Json import kotlinx.serialization.json.encodeToStream diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportChunksCommand.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportChunksCommand.kt similarity index 92% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportChunksCommand.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportChunksCommand.kt index e088fb2..8064f28 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportChunksCommand.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportChunksCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.export +package gay.pizza.foundation.heimdall.export import org.bukkit.command.Command import org.bukkit.command.CommandExecutor diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedBlock.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedBlock.kt similarity index 68% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedBlock.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedBlock.kt index 6451a16..f668cb9 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedBlock.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedBlock.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.export +package gay.pizza.foundation.heimdall.export import kotlinx.serialization.Serializable diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunk.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunk.kt similarity index 76% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunk.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunk.kt index 0f803c3..92e71d9 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunk.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunk.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.export +package gay.pizza.foundation.heimdall.export import kotlinx.serialization.Serializable diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunkSection.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunkSection.kt similarity index 75% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunkSection.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunkSection.kt index ce818a3..0215c1f 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/export/ExportedChunkSection.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/export/ExportedChunkSection.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.export +package gay.pizza.foundation.heimdall.export import kotlinx.serialization.Serializable diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/model/HeimdallConfig.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/model/HeimdallConfig.kt similarity index 83% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/model/HeimdallConfig.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/model/HeimdallConfig.kt index 79cb000..5db57b0 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/model/HeimdallConfig.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/model/HeimdallConfig.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.model +package gay.pizza.foundation.heimdall.model import kotlinx.serialization.Serializable diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockBreakTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockBreakTable.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockBreakTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockBreakTable.kt index 3d0eac2..d6e2df8 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockBreakTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockBreakTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockPlaceTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockPlaceTable.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockPlaceTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockPlaceTable.kt index db1dcd9..9a89da6 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/BlockPlaceTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/BlockPlaceTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/EntityKillTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/EntityKillTable.kt similarity index 89% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/EntityKillTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/EntityKillTable.kt index 8fb9b5a..730ad71 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/EntityKillTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/EntityKillTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerAdvancementTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerAdvancementTable.kt similarity index 89% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerAdvancementTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerAdvancementTable.kt index 652d074..53ddf9f 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerAdvancementTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerAdvancementTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerDeathTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerDeathTable.kt similarity index 90% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerDeathTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerDeathTable.kt index bfcf717..17ec1c2 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerDeathTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerDeathTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerPositionTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerPositionTable.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerPositionTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerPositionTable.kt index 38fa18a..4e19ba6 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerPositionTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerPositionTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerSessionTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerSessionTable.kt similarity index 86% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerSessionTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerSessionTable.kt index 4de1b54..e5f3610 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/PlayerSessionTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/PlayerSessionTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/WorldChangeTable.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/WorldChangeTable.kt similarity index 88% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/WorldChangeTable.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/WorldChangeTable.kt index 76dfbd2..b24fd4a 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/table/WorldChangeTable.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/table/WorldChangeTable.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.table +package gay.pizza.foundation.heimdall.table import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/view/BlockChangeView.kt b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/view/BlockChangeView.kt similarity index 89% rename from foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/view/BlockChangeView.kt rename to foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/view/BlockChangeView.kt index 1ba4165..5fe0b78 100644 --- a/foundation-heimdall/src/main/kotlin/cloud/kubelet/foundation/heimdall/view/BlockChangeView.kt +++ b/foundation-heimdall/src/main/kotlin/gay/pizza/foundation/heimdall/view/BlockChangeView.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.heimdall.view +package gay.pizza.foundation.heimdall.view import org.jetbrains.exposed.sql.Table import org.jetbrains.exposed.sql.javatime.timestamp diff --git a/foundation-heimdall/src/main/resources/plugin.yml b/foundation-heimdall/src/main/resources/plugin.yml index 3d5db6c..00fabc7 100644 --- a/foundation-heimdall/src/main/resources/plugin.yml +++ b/foundation-heimdall/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Foundation-Heimdall version: '${version}' -main: cloud.kubelet.foundation.heimdall.FoundationHeimdallPlugin +main: gay.pizza.foundation.heimdall.FoundationHeimdallPlugin api-version: 1.18 prefix: Foundation-Heimdall load: STARTUP diff --git a/tool-gjallarhorn/build.gradle.kts b/tool-gjallarhorn/build.gradle.kts index 98e83d1..6957662 100644 --- a/tool-gjallarhorn/build.gradle.kts +++ b/tool-gjallarhorn/build.gradle.kts @@ -6,5 +6,5 @@ dependencies { } listOf(tasks.jar, tasks.shadowJar).map { it.get() }.forEach { task -> - task.manifest.attributes["Main-Class"] = "cloud.kubelet.foundation.gjallarhorn.MainKt" + task.manifest.attributes["Main-Class"] = "gay.pizza.foundation.gjallarhorn.MainKt" } diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/CombinedChunkFormat.kt b/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/CombinedChunkFormat.kt deleted file mode 100644 index 8e7f1d7..0000000 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/CombinedChunkFormat.kt +++ /dev/null @@ -1,11 +0,0 @@ -package cloud.kubelet.foundation.gjallarhorn.export - -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.SparseBlockStateMap -import kotlinx.serialization.Serializable - -@Serializable -class CombinedChunkFormat( - val expanse: BlockExpanse, - val map: SparseBlockStateMap -) diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/main.kt b/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/main.kt deleted file mode 100644 index 0e60f86..0000000 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/main.kt +++ /dev/null @@ -1,14 +0,0 @@ -package cloud.kubelet.foundation.gjallarhorn - -import cloud.kubelet.foundation.gjallarhorn.commands.BlockChangeTimelapseCommand -import cloud.kubelet.foundation.gjallarhorn.commands.ChunkExportLoaderCommand -import cloud.kubelet.foundation.gjallarhorn.commands.PlayerPositionExport -import cloud.kubelet.foundation.gjallarhorn.commands.PlayerSessionExport -import com.github.ajalt.clikt.core.subcommands - -fun main(args: Array) = GjallarhornCommand().subcommands( - BlockChangeTimelapseCommand(), - PlayerSessionExport(), - PlayerPositionExport(), - ChunkExportLoaderCommand() -).main(args) diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockMapRenderer.kt b/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockMapRenderer.kt deleted file mode 100644 index 4d47ac1..0000000 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockMapRenderer.kt +++ /dev/null @@ -1,8 +0,0 @@ -package cloud.kubelet.foundation.gjallarhorn.render - -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice - -interface BlockMapRenderer { - fun render(slice: ChangelogSlice, map: BlockStateMap): T -} diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/GjallarhornCommand.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/GjallarhornCommand.kt similarity index 97% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/GjallarhornCommand.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/GjallarhornCommand.kt index 126e76d..c416f1b 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/GjallarhornCommand.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/GjallarhornCommand.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn +package gay.pizza.foundation.gjallarhorn import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.parameters.options.default diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt similarity index 94% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt index 2066577..38346e1 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/BlockChangeTimelapseCommand.kt @@ -1,10 +1,5 @@ -package cloud.kubelet.foundation.gjallarhorn.commands +package gay.pizza.foundation.gjallarhorn.commands -import cloud.kubelet.foundation.gjallarhorn.render.* -import cloud.kubelet.foundation.gjallarhorn.state.* -import cloud.kubelet.foundation.gjallarhorn.util.compose -import cloud.kubelet.foundation.gjallarhorn.util.savePngFile -import cloud.kubelet.foundation.heimdall.view.BlockChangeView import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.core.requireObject import com.github.ajalt.clikt.parameters.options.default @@ -13,6 +8,11 @@ import com.github.ajalt.clikt.parameters.options.option import com.github.ajalt.clikt.parameters.options.required import com.github.ajalt.clikt.parameters.types.enum import com.github.ajalt.clikt.parameters.types.int +import gay.pizza.foundation.gjallarhorn.render.* +import gay.pizza.foundation.gjallarhorn.state.* +import gay.pizza.foundation.gjallarhorn.util.compose +import gay.pizza.foundation.gjallarhorn.util.savePngFile +import gay.pizza.foundation.heimdall.view.BlockChangeView import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SqlExpressionBuilder.greaterEq import org.jetbrains.exposed.sql.SqlExpressionBuilder.lessEq diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt similarity index 83% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt index a52dcb6..bccbc10 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ChunkExportLoaderCommand.kt @@ -1,11 +1,5 @@ -package cloud.kubelet.foundation.gjallarhorn.commands +package gay.pizza.foundation.gjallarhorn.commands -import cloud.kubelet.foundation.gjallarhorn.export.ChunkExportLoader -import cloud.kubelet.foundation.gjallarhorn.export.CombinedChunkFormat -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockLogTracker -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice -import cloud.kubelet.foundation.gjallarhorn.util.savePngFile import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.core.requireObject import com.github.ajalt.clikt.parameters.arguments.argument @@ -14,6 +8,12 @@ import com.github.ajalt.clikt.parameters.options.option import com.github.ajalt.clikt.parameters.types.enum import com.github.ajalt.clikt.parameters.types.int import com.github.ajalt.clikt.parameters.types.path +import gay.pizza.foundation.gjallarhorn.export.ChunkExportLoader +import gay.pizza.foundation.gjallarhorn.export.CombinedChunkFormat +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockLogTracker +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.util.savePngFile import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream import kotlinx.serialization.json.encodeToStream diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ImageRenderType.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ImageRenderType.kt similarity index 76% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ImageRenderType.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ImageRenderType.kt index 7d86f8a..b3da3a6 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/ImageRenderType.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/ImageRenderType.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.gjallarhorn.commands +package gay.pizza.foundation.gjallarhorn.commands -import cloud.kubelet.foundation.gjallarhorn.render.* -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.render.* +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse import org.jetbrains.exposed.sql.Database @Suppress("unused") diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerPositionExport.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerPositionExport.kt similarity index 85% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerPositionExport.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerPositionExport.kt index 30ea6cc..6d32869 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerPositionExport.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerPositionExport.kt @@ -1,11 +1,11 @@ -package cloud.kubelet.foundation.gjallarhorn.commands +package gay.pizza.foundation.gjallarhorn.commands -import cloud.kubelet.foundation.gjallarhorn.state.PlayerPositionChangelog -import cloud.kubelet.foundation.gjallarhorn.util.compose -import cloud.kubelet.foundation.heimdall.table.PlayerPositionTable import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.core.requireObject import com.github.ajalt.clikt.parameters.options.option +import gay.pizza.foundation.gjallarhorn.state.PlayerPositionChangelog +import gay.pizza.foundation.gjallarhorn.util.compose +import gay.pizza.foundation.heimdall.table.PlayerPositionTable import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq import org.jetbrains.exposed.sql.SqlExpressionBuilder.greaterEq @@ -13,7 +13,7 @@ import org.jetbrains.exposed.sql.SqlExpressionBuilder.lessEq import org.jetbrains.exposed.sql.and import org.jetbrains.exposed.sql.transactions.transaction import java.time.Instant -import java.util.* +import java.util.UUID class PlayerPositionExport : CliktCommand(name = "export-player-positions", help = "Export Player Positions") { private val db by requireObject() diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerSessionExport.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerSessionExport.kt similarity index 88% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerSessionExport.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerSessionExport.kt index aaa87dc..d726852 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/commands/PlayerSessionExport.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/commands/PlayerSessionExport.kt @@ -1,16 +1,16 @@ -package cloud.kubelet.foundation.gjallarhorn.commands +package gay.pizza.foundation.gjallarhorn.commands -import cloud.kubelet.foundation.gjallarhorn.util.compose -import cloud.kubelet.foundation.heimdall.table.PlayerSessionTable import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.core.requireObject import com.github.ajalt.clikt.parameters.options.option +import gay.pizza.foundation.gjallarhorn.util.compose +import gay.pizza.foundation.heimdall.table.PlayerSessionTable import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq import org.jetbrains.exposed.sql.and import org.jetbrains.exposed.sql.select import org.jetbrains.exposed.sql.transactions.transaction -import java.util.* +import java.util.UUID class PlayerSessionExport : CliktCommand(name = "export-player-sessions", help = "Export Player Sessions") { private val db by requireObject() diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/ChunkExportLoader.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/ChunkExportLoader.kt similarity index 84% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/ChunkExportLoader.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/ChunkExportLoader.kt index 35a54e3..47027c3 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/export/ChunkExportLoader.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/ChunkExportLoader.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.gjallarhorn.export +package gay.pizza.foundation.gjallarhorn.export -import cloud.kubelet.foundation.gjallarhorn.state.BlockCoordinate -import cloud.kubelet.foundation.gjallarhorn.state.BlockLogTracker -import cloud.kubelet.foundation.gjallarhorn.state.BlockState -import cloud.kubelet.foundation.gjallarhorn.state.SparseBlockStateMap -import cloud.kubelet.foundation.heimdall.export.ExportedChunk +import gay.pizza.foundation.gjallarhorn.state.BlockCoordinate +import gay.pizza.foundation.gjallarhorn.state.BlockLogTracker +import gay.pizza.foundation.gjallarhorn.state.BlockState +import gay.pizza.foundation.gjallarhorn.state.SparseBlockStateMap +import gay.pizza.foundation.heimdall.export.ExportedChunk import kotlinx.serialization.json.Json import kotlinx.serialization.json.decodeFromStream import org.slf4j.LoggerFactory diff --git a/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/CombinedChunkFormat.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/CombinedChunkFormat.kt new file mode 100644 index 0000000..70dc92c --- /dev/null +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/export/CombinedChunkFormat.kt @@ -0,0 +1,11 @@ +package gay.pizza.foundation.gjallarhorn.export + +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.SparseBlockStateMap +import kotlinx.serialization.Serializable + +@Serializable +class CombinedChunkFormat( + val expanse: BlockExpanse, + val map: SparseBlockStateMap +) diff --git a/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/main.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/main.kt new file mode 100644 index 0000000..267dca0 --- /dev/null +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/main.kt @@ -0,0 +1,14 @@ +package gay.pizza.foundation.gjallarhorn + +import com.github.ajalt.clikt.core.subcommands +import gay.pizza.foundation.gjallarhorn.commands.BlockChangeTimelapseCommand +import gay.pizza.foundation.gjallarhorn.commands.ChunkExportLoaderCommand +import gay.pizza.foundation.gjallarhorn.commands.PlayerPositionExport +import gay.pizza.foundation.gjallarhorn.commands.PlayerSessionExport + +fun main(args: Array) = GjallarhornCommand().subcommands( + BlockChangeTimelapseCommand(), + PlayerSessionExport(), + PlayerPositionExport(), + ChunkExportLoaderCommand() +).main(args) diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockDiversityRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockDiversityRenderer.kt similarity index 65% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockDiversityRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockDiversityRenderer.kt index 0ed6058..be17ac4 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockDiversityRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockDiversityRenderer.kt @@ -1,11 +1,10 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.SparseBlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice -import cloud.kubelet.foundation.gjallarhorn.util.BlockColorKey -import cloud.kubelet.foundation.gjallarhorn.util.defaultBlockColorMap +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.util.BlockColorKey +import gay.pizza.foundation.gjallarhorn.util.defaultBlockColorMap import java.awt.Color import java.awt.image.BufferedImage diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockGridRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockGridRenderer.kt similarity index 92% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockGridRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockGridRenderer.kt index 4cac6ca..a005c0e 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockGridRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockGridRenderer.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse import java.awt.Color import java.awt.Graphics2D import java.awt.Rectangle diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt similarity index 72% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt index 0ae7cb6..f1a0345 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeatMapRenderer.kt @@ -1,8 +1,8 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.util.ColorGradient -import cloud.kubelet.foundation.gjallarhorn.util.FloatClamp +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.util.ColorGradient +import gay.pizza.foundation.gjallarhorn.util.FloatClamp import java.awt.Color import java.awt.image.BufferedImage diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt similarity index 65% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt index ec040ab..708480e 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockHeightMapRenderer.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.SparseBlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice -import cloud.kubelet.foundation.gjallarhorn.util.FloatClamp +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.state.SparseBlockStateMap +import gay.pizza.foundation.gjallarhorn.util.FloatClamp import java.awt.image.BufferedImage class BlockHeightMapRenderer(val expanse: BlockExpanse, quadPixelSize: Int = defaultQuadPixelSize) : diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockImageRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockImageRenderer.kt similarity index 66% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockImageRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockImageRenderer.kt index beabdc2..46774cf 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockImageRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockImageRenderer.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render import java.awt.image.BufferedImage diff --git a/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockMapRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockMapRenderer.kt new file mode 100644 index 0000000..83b84ae --- /dev/null +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockMapRenderer.kt @@ -0,0 +1,8 @@ +package gay.pizza.foundation.gjallarhorn.render + +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice + +interface BlockMapRenderer { + fun render(slice: ChangelogSlice, map: BlockStateMap): T +} diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt similarity index 65% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt index 6088a90..852fe38 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/BlockVerticalFillMapRenderer.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.SparseBlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice -import cloud.kubelet.foundation.gjallarhorn.util.FloatClamp +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.state.SparseBlockStateMap +import gay.pizza.foundation.gjallarhorn.util.FloatClamp import java.awt.image.BufferedImage class BlockVerticalFillMapRenderer(val expanse: BlockExpanse, quadPixelSize: Int = defaultQuadPixelSize) : diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt similarity index 61% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt index de89392..b61c079 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/LaunchGraphicalRenderSession.kt @@ -1,9 +1,9 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.render.ui.GraphicalRenderSession -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.render.ui.GraphicalRenderSession +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice import java.awt.image.BufferedImage import javax.swing.WindowConstants diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt similarity index 78% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt index 61644fe..83bb93e 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/PlayerLocationShareRenderer.kt @@ -1,15 +1,19 @@ -package cloud.kubelet.foundation.gjallarhorn.render +package gay.pizza.foundation.gjallarhorn.render -import cloud.kubelet.foundation.gjallarhorn.state.* -import cloud.kubelet.foundation.gjallarhorn.util.BlockColorKey -import cloud.kubelet.foundation.heimdall.table.PlayerPositionTable +import gay.pizza.foundation.gjallarhorn.state.BlockCoordinate +import gay.pizza.foundation.gjallarhorn.state.BlockCoordinateSparseMap +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.util.BlockColorKey +import gay.pizza.foundation.heimdall.table.PlayerPositionTable import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.and import org.jetbrains.exposed.sql.select import org.jetbrains.exposed.sql.transactions.transaction import java.awt.Color import java.awt.image.BufferedImage -import java.util.* +import java.util.UUID class PlayerLocationShareRenderer( val expanse: BlockExpanse, diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt similarity index 58% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt index 9481ad0..1f667ac 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/GraphicalRenderSession.kt @@ -1,10 +1,10 @@ -package cloud.kubelet.foundation.gjallarhorn.render.ui +package gay.pizza.foundation.gjallarhorn.render.ui -import cloud.kubelet.foundation.gjallarhorn.render.BlockDiversityRenderer -import cloud.kubelet.foundation.gjallarhorn.render.BlockHeightMapRenderer -import cloud.kubelet.foundation.gjallarhorn.render.BlockVerticalFillMapRenderer -import cloud.kubelet.foundation.gjallarhorn.state.BlockExpanse -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.render.BlockDiversityRenderer +import gay.pizza.foundation.gjallarhorn.render.BlockHeightMapRenderer +import gay.pizza.foundation.gjallarhorn.render.BlockVerticalFillMapRenderer +import gay.pizza.foundation.gjallarhorn.state.BlockExpanse +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap import java.awt.Dimension import javax.swing.JFrame import javax.swing.JTabbedPane diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt similarity index 61% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt index 43a00a3..a866fe7 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/render/ui/LazyImageRenderer.kt @@ -1,8 +1,8 @@ -package cloud.kubelet.foundation.gjallarhorn.render.ui +package gay.pizza.foundation.gjallarhorn.render.ui -import cloud.kubelet.foundation.gjallarhorn.render.BlockImageRenderer -import cloud.kubelet.foundation.gjallarhorn.state.BlockStateMap -import cloud.kubelet.foundation.gjallarhorn.state.ChangelogSlice +import gay.pizza.foundation.gjallarhorn.render.BlockImageRenderer +import gay.pizza.foundation.gjallarhorn.state.BlockStateMap +import gay.pizza.foundation.gjallarhorn.state.ChangelogSlice import java.awt.Graphics import javax.swing.JComponent diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChange.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChange.kt similarity index 78% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChange.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChange.kt index ca4f9c4..035f580 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChange.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChange.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import java.time.Instant diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangeType.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangeType.kt similarity index 67% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangeType.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangeType.kt index 3f28483..cb22232 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangeType.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangeType.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.Serializable diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangelog.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangelog.kt similarity index 96% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangelog.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangelog.kt index d8e05e3..25d1e05 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockChangelog.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockChangelog.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import cloud.kubelet.foundation.heimdall.view.BlockChangeView +import gay.pizza.foundation.heimdall.view.BlockChangeView import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.Op import org.jetbrains.exposed.sql.select diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinate.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinate.kt similarity index 93% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinate.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinate.kt index 3ef2d82..1398943 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinate.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinate.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import java.util.* import kotlinx.serialization.Serializable +import java.util.Objects @Serializable data class BlockCoordinate( diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt similarity index 92% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt index cd6f33b..d9f0361 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateSparseMap.kt @@ -1,8 +1,7 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import cloud.kubelet.foundation.gjallarhorn.util.maxOfAll -import cloud.kubelet.foundation.gjallarhorn.util.minOfAll -import java.util.* +import gay.pizza.foundation.gjallarhorn.util.maxOfAll +import gay.pizza.foundation.gjallarhorn.util.minOfAll import kotlin.math.absoluteValue open class BlockCoordinateSparseMap(blocks: Map>> = mutableMapOf()) : BlockCoordinateStore { diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateStore.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateStore.kt similarity index 86% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateStore.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateStore.kt index bfb3348..7df7043 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockCoordinateStore.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockCoordinateStore.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state interface BlockCoordinateStore { fun get(position: BlockCoordinate): T? diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockExpanse.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockExpanse.kt similarity index 85% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockExpanse.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockExpanse.kt index 8769b4f..0e69c88 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockExpanse.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockExpanse.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.Serializable diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockLogTracker.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockLogTracker.kt similarity index 91% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockLogTracker.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockLogTracker.kt index 9d478e1..bfeecf2 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockLogTracker.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockLogTracker.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import cloud.kubelet.foundation.gjallarhorn.util.maxOfAll -import cloud.kubelet.foundation.gjallarhorn.util.minOfAll +import gay.pizza.foundation.gjallarhorn.util.maxOfAll +import gay.pizza.foundation.gjallarhorn.util.minOfAll import java.util.concurrent.ConcurrentHashMap import kotlin.math.absoluteValue diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPool.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPool.kt similarity index 95% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPool.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPool.kt index adfde4f..597899e 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPool.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPool.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import cloud.kubelet.foundation.gjallarhorn.render.BlockMapRenderer +import gay.pizza.foundation.gjallarhorn.render.BlockMapRenderer import org.slf4j.LoggerFactory import java.util.concurrent.ConcurrentHashMap import java.util.concurrent.Future diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt similarity index 83% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt index 27efec8..f0f8dfe 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapRenderPoolDelegate.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state interface BlockMapRenderPoolDelegate { fun onSinglePlaybackComplete(pool: BlockMapRenderPool, slice: ChangelogSlice, tracker: BlockLogTracker) diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapTimelapse.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapTimelapse.kt similarity index 95% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapTimelapse.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapTimelapse.kt index a39cbb8..4d20906 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockMapTimelapse.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockMapTimelapse.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state class BlockMapTimelapse : BlockMapRenderPoolDelegate { diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockState.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockState.kt similarity index 89% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockState.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockState.kt index 58a9666..4cc8805 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockState.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockState.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.Serializable import java.util.concurrent.ConcurrentHashMap diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateMap.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateMap.kt similarity index 54% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateMap.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateMap.kt index 1ca78a0..125aa35 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateMap.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateMap.kt @@ -1,3 +1,3 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state typealias BlockStateMap = BlockCoordinateStore diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateSerializer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateSerializer.kt similarity index 92% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateSerializer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateSerializer.kt index 473ab6a..79a47f0 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockStateSerializer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockStateSerializer.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.KSerializer import kotlinx.serialization.builtins.serializer diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockTrackMode.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockTrackMode.kt similarity index 55% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockTrackMode.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockTrackMode.kt index c18785b..939fb5d 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/BlockTrackMode.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/BlockTrackMode.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state enum class BlockTrackMode { RemoveOnDelete, diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/ChangelogSlice.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/ChangelogSlice.kt similarity index 95% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/ChangelogSlice.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/ChangelogSlice.kt index 81077bd..78d90ab 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/ChangelogSlice.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/ChangelogSlice.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import java.time.Duration import java.time.Instant diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChange.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChange.kt similarity index 75% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChange.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChange.kt index 3d80957..d2d0816 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChange.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChange.kt @@ -1,7 +1,7 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import java.time.Instant -import java.util.* +import java.util.UUID data class PlayerPositionChange( val time: Instant, diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChangelog.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChangelog.kt similarity index 89% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChangelog.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChangelog.kt index 8735acd..34648a0 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/PlayerPositionChangelog.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/PlayerPositionChangelog.kt @@ -1,6 +1,6 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state -import cloud.kubelet.foundation.heimdall.table.PlayerPositionTable +import gay.pizza.foundation.heimdall.table.PlayerPositionTable import org.jetbrains.exposed.sql.Database import org.jetbrains.exposed.sql.Op import org.jetbrains.exposed.sql.select diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMap.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMap.kt similarity index 82% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMap.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMap.kt index e442e3a..69ac2df 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMap.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMap.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.Serializable diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt similarity index 94% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt index 0de601e..e0a0ac2 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/state/SparseBlockStateMapSerializer.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.state +package gay.pizza.foundation.gjallarhorn.state import kotlinx.serialization.KSerializer import kotlinx.serialization.builtins.MapSerializer diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKey.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKey.kt similarity index 91% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKey.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKey.kt index 7b501a2..e54ed77 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKey.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKey.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import java.awt.Color import java.util.concurrent.ConcurrentHashMap diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKeys.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKeys.kt similarity index 93% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKeys.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKeys.kt index ebc7ae2..3eb9154 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/BlockColorKeys.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/BlockColorKeys.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import java.awt.Color diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradient.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradient.kt similarity index 96% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradient.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradient.kt index 45e273a..2ee6a12 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradient.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradient.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import java.awt.Color import kotlin.math.max diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradientPoint.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradientPoint.kt similarity index 86% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradientPoint.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradientPoint.kt index e0c2bbe..141213b 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ColorGradientPoint.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ColorGradientPoint.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import java.awt.Color diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/FloatClamp.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/FloatClamp.kt similarity index 85% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/FloatClamp.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/FloatClamp.kt index 615d1d1..b814268 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/FloatClamp.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/FloatClamp.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import kotlin.math.roundToLong diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ImageTools.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ImageTools.kt similarity index 82% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ImageTools.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ImageTools.kt index 0a0dc54..f111803 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/ImageTools.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/ImageTools.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import java.awt.image.BufferedImage import java.io.File diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/compose.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/compose.kt similarity index 85% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/compose.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/compose.kt index 3351ccf..a8869e5 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/compose.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/compose.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util import org.jetbrains.exposed.sql.Op diff --git a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/numerics.kt b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/numerics.kt similarity index 95% rename from tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/numerics.kt rename to tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/numerics.kt index 9ca1985..cb09912 100644 --- a/tool-gjallarhorn/src/main/kotlin/cloud/kubelet/foundation/gjallarhorn/util/numerics.kt +++ b/tool-gjallarhorn/src/main/kotlin/gay/pizza/foundation/gjallarhorn/util/numerics.kt @@ -1,4 +1,4 @@ -package cloud.kubelet.foundation.gjallarhorn.util +package gay.pizza.foundation.gjallarhorn.util fun Iterable.minOfAll(fieldCount: Int, block: (value: T) -> List): List { val fieldRange = 0 until fieldCount