diff options
author | Wyvest <wyvestbusiness@gmail.com> | 2023-11-22 08:18:19 +0900 |
---|---|---|
committer | Wyvest <wyvestbusiness@gmail.com> | 2023-11-22 08:18:19 +0900 |
commit | 8b373f577d9c6dde26357ef3fc86691f1efef9b4 (patch) | |
tree | a5328e995d8f4df21a9fe94ac8e384be08833c70 | |
parent | 64230799777473246b5f98efbc596206c5bbf42d (diff) | |
download | Chatting-8b373f577d9c6dde26357ef3fc86691f1efef9b4.tar.gz Chatting-8b373f577d9c6dde26357ef3fc86691f1efef9b4.tar.bz2 Chatting-8b373f577d9c6dde26357ef3fc86691f1efef9b4.zip |
update PGT and relocate to org.polyfrost
-rw-r--r-- | build.gradle | 111 | ||||
-rw-r--r-- | build.gradle.kts | 196 | ||||
-rw-r--r-- | gradle.properties | 13 | ||||
-rw-r--r-- | gradle/wrapper/gradle-wrapper.properties | 2 | ||||
-rw-r--r-- | root.gradle.kts | 9 | ||||
-rw-r--r-- | settings.gradle | 16 | ||||
-rw-r--r-- | settings.gradle.kts | 30 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java (renamed from src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/hook/GuiNewChatHook.java (renamed from src/main/java/cc/woverflow/chatting/hook/GuiNewChatHook.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/ChatLineMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/ChatLineMixin.java) | 6 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/ClientCommandHandlerMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/ClientCommandHandlerMixin.java) | 6 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/EntityPlayerSPMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java) | 8 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiChatMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java) | 20 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatAccessor.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatAccessor.java) | 2 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMapMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMapMixin.java) | 4 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java) | 16 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatHeight.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatHeight.java) | 6 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatSearching.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatSearching.java) | 4 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatTabs.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatTabs.java) | 8 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_Scrolling.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java) | 8 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_SmoothMessages.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java) | 14 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_TextRendering.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_TextRendering.java) | 4 | ||||
-rw-r--r-- | src/main/java/org/polyfrost/chatting/mixin/GuiUtilsMixin.java (renamed from src/main/java/cc/woverflow/chatting/mixin/GuiUtilsMixin.java) | 4 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/Chatting.kt (renamed from src/main/kotlin/cc/woverflow/chatting/Chatting.kt) | 26 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatRegexes.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatRegexes.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatScrollingHook.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatScrollingHook.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatSearchingManager.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatSearchingManager.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatShortcuts.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatShortcuts.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatSpamBlock.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatTab.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatTabs.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatTabs.kt) | 6 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/chat/ChatTabsJson.kt (renamed from src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/command/ChattingCommand.kt (renamed from src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt) | 6 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/config/ChattingConfig.kt (renamed from src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt) | 16 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/CleanButton.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/CleanButton.kt) | 8 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/ClearButton.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/ClearButton.kt) | 4 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/RenderType.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/RenderType.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/ScreenshotButton.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt) | 6 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/SearchButton.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt) | 6 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/gui/components/TabButton.kt (renamed from src/main/kotlin/cc/woverflow/chatting/gui/components/TabButton.kt) | 8 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt (renamed from src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt) | 2 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/utils/ModCompatHooks.kt (renamed from src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt) | 16 | ||||
-rw-r--r-- | src/main/kotlin/org/polyfrost/chatting/utils/RenderUtils.kt (renamed from src/main/kotlin/cc/woverflow/chatting/utils/RenderUtils.kt) | 4 | ||||
-rw-r--r-- | src/main/resources/mixins.chatting.json | 30 | ||||
-rw-r--r-- | versions/mainProject | 1 |
45 files changed, 383 insertions, 269 deletions
diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 5a18999..0000000 --- a/build.gradle +++ /dev/null @@ -1,111 +0,0 @@ -//file:noinspection UnnecessaryQualifiedReference -//file:noinspection GroovyAssignabilityCheck - -plugins { - id "dev.architectury.architectury-pack200" version "0.1.3" - id 'org.jetbrains.kotlin.jvm' version '1.6.10' - id "cc.polyfrost.loom" version "0.10.0.5" - id "net.kyori.blossom" version "1.3.0" - id "java" -} - -version = mod_version -group = "cc.woverflow" -archivesBaseName = mod_name - -blossom { - String className = "src/main/kotlin/cc/woverflow/chatting/Chatting.kt" - replaceToken("@VER@", project.version, className) - replaceToken("@NAME@", mod_name, className) - replaceToken("@ID@", mod_id, className) -} -kotlin.jvmToolchain { - languageVersion = JavaLanguageVersion.of(8) -} -compileJava.options.encoding = 'UTF-8' - -loom { - launchConfigs { - client { - arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker") - property("mixin.debug.export", "true") - } - } - runConfigs { - client { - vmArgs.remove("-XstartOnFirstThread") - } - } - forge { - pack200Provider = new dev.architectury.pack200.java.Pack200Adapter() - mixinConfig("mixins.${mod_id}.json") - mixin.defaultRefmapName.set("mixins.${mod_id}.refmap.json") - } -} - -configurations { - include - implementation.extendsFrom(include) -} - -repositories { - maven { url 'https://repo.polyfrost.cc/releases'} -} - -dependencies { - minecraft("com.mojang:minecraft:1.8.9") - mappings("de.oceanlabs.mcp:mcp_stable:22-1.8.9") - forge("net.minecraftforge:forge:1.8.9-11.15.1.2318-1.8.9") - compileOnly ('org.spongepowered:mixin:0.7.11-SNAPSHOT') - compileOnly('cc.polyfrost:oneconfig-1.8.9-forge:0.2.0-alpha+') - include('cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+') - modRuntimeOnly("me.djtheredstoner:DevAuth-forge-legacy:1.1.0") -} - -processResources { - // this will ensure that this task is redone when the versions change. - inputs.property "version", version - inputs.property "name", mod_name - inputs.property "id", mod_id - - filesMatching("mcmod.info") { - expand( - "id": mod_id, - "name": mod_name, - "version": version - ) - } - - filesMatching("mixins.${mod_id}.json") { - expand("id": mod_id) - } - - rename '(.+_at.cfg)', 'META-INF/$1' -} - -sourceSets { - dummy - main { - compileClasspath += dummy.output - output.resourcesDir = java.classesDirectory - } -} - -jar { - dependsOn configurations.include - from(configurations.include.collect { it.isDirectory() ? it : zipTree(it) }) { - def i = 0 - filesMatching("META-INF/NOTICE*") { name = "$name.${i++}" } - filesMatching("META-INF/LICENSE*") { name = "$name.${i++}" } - filesMatching("META-INF/mods.toml") { name = "$name.${i++}" } - filesMatching("LICENSE*") { name = "$name.${i++}" } - } - - manifest.attributes( - 'ModSide': 'CLIENT', - 'ForceLoadAsMod': true, - 'MixinConfigs': "mixins.${mod_id}.json", - "TweakOrder": "0", - "TweakClass": "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker" - ) -}
\ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..2c4e811 --- /dev/null +++ b/build.gradle.kts @@ -0,0 +1,196 @@ +@file:Suppress("UnstableApiUsage", "PropertyName") + +import org.polyfrost.gradle.util.noServerRunConfigs +import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar + +// Adds support for kotlin, and adds the Polyfrost Gradle Toolkit +// which we use to prepare the environment. +plugins { + kotlin("jvm") + id("org.polyfrost.multi-version") + id("org.polyfrost.defaults.repo") + id("org.polyfrost.defaults.java") + id("org.polyfrost.defaults.loom") + id("com.github.johnrengelman.shadow") + id("net.kyori.blossom") version "1.3.1" + id("signing") + java +} + +// Gets the mod name, version and id from the `gradle.properties` file. +val mod_name: String by project +val mod_version: String by project +val mod_id: String by project +val mod_archives_name: String by project + +// Sets up the variables for when we preprocess to other Minecraft versions. +preprocess { + vars.put("MODERN", if (project.platform.mcMinor >= 16) 1 else 0) +} + +// Replaces the variables in `ExampleMod.java` to the ones specified in `gradle.properties`. +blossom { + replaceToken("@VER@", mod_version) + replaceToken("@NAME@", mod_name) + replaceToken("@ID@", mod_id) +} + +// Sets the mod version to the one specified in `gradle.properties`. Make sure to change this following semver! +version = mod_version +// Sets the group, make sure to change this to your own. It can be a website you own backwards or your GitHub username. +// e.g. com.github.<your username> or com.<your domain> +group = "org.polyfrost" + +// Sets the name of the output jar (the one you put in your mods folder and send to other people) +// It outputs all versions of the mod into the `build` directory. +base { + archivesName.set("$mod_archives_name-$platform") +} + +// Configures the Polyfrost Loom, our plugin fork to easily set up the programming environment. +loom { + // Removes the server configs from IntelliJ IDEA, leaving only client runs. + // If you're developing a server-side mod, you can remove this line. + noServerRunConfigs() + + // Adds the tweak class if we are building legacy version of forge as per the documentation (https://docs.polyfrost.org) + if (project.platform.isLegacyForge) { + runConfigs { + "client" { + programArgs("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker") + property("mixin.debug.export", "true") + } + } + } + // Configures the mixins if we are building for forge, useful for when we are dealing with cross-platform projects. + if (project.platform.isForge) { + forge { + mixinConfig("mixins.${mod_id}.json") + } + } + // Configures the name of the mixin "refmap" using an experimental loom api. + mixin.defaultRefmapName.set("mixins.${mod_id}.refmap.json") +} + +// Creates the shade/shadow configuration, so we can include libraries inside our mod, rather than having to add them separately. +val shade: Configuration by configurations.creating { + configurations.implementation.get().extendsFrom(this) +} + +// Configures the output directory for when building from the `src/resources` directory. +sourceSets { + val dummy by creating + main { + compileClasspath += dummy.output + output.setResourcesDir(java.classesDirectory) + } +} + +// Adds the Polyfrost maven repository so that we can get the libraries necessary to develop the mod. +repositories { + maven("https://repo.polyfrost.org/releases") +} + +// Configures the libraries/dependencies for your mod. +dependencies { + // Adds the OneConfig library, so we can develop with it. + modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.1-alpha+") + + modRuntimeOnly("me.djtheredstoner:DevAuth-${if (platform.isFabric) "fabric" else if (platform.isLegacyForge) "forge-legacy" else "forge-latest"}:1.1.2") + + // If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier. + if (platform.isLegacyForge) { + compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT") + shade("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+") + } +} + +tasks { + // Processes the `src/resources/mcmod.info or fabric.mod.json` and replaces + // the mod id, name and version with the ones in `gradle.properties` + processResources { + inputs.property("id", mod_id) + inputs.property("name", mod_name) + val java = if (project.platform.mcMinor >= 18) { + 17 // If we are playing on version 1.18, set the java version to 17 + } else { + // Else if we are playing on version 1.17, use java 16. + if (project.platform.mcMinor == 17) + 16 + else + 8 // For all previous versions, we **need** java 8 (for Forge support). + } + val compatLevel = "JAVA_${java}" + inputs.property("java", java) + inputs.property("java_level", compatLevel) + inputs.property("version", mod_version) + inputs.property("mcVersionStr", project.platform.mcVersionStr) + filesMatching(listOf("mcmod.info", "mixins.${mod_id}.json", "mods.toml")) { + expand( + mapOf( + "id" to mod_id, + "name" to mod_name, + "java" to java, + "java_level" to compatLevel, + "version" to mod_version, + "mcVersionStr" to project.platform.mcVersionStr + ) + ) + } + filesMatching("fabric.mod.json") { + expand( + mapOf( + "id" to mod_id, + "name" to mod_name, + "java" to java, + "java_level" to compatLevel, + "version" to mod_version, + "mcVersionStr" to project.platform.mcVersionStr.substringBeforeLast(".") + ".x" + ) + ) + } + } + + // Configures the resources to include if we are building for forge or fabric. + withType(Jar::class.java) { + if (project.platform.isFabric) { + exclude("mcmod.info", "mods.toml") + } else { + exclude("fabric.mod.json") + if (project.platform.isLegacyForge) { + exclude("mods.toml") + } else { + exclude("mcmod.info") + } + } + } + + // Configures our shadow/shade configuration, so we can + // include some dependencies within our mod jar file. + named<ShadowJar>("shadowJar") { + archiveClassifier.set("dev") // TODO: machete gets confused by the `dev` prefix. + configurations = listOf(shade) + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + } + + remapJar { + inputFile.set(shadowJar.get().archiveFile) + archiveClassifier.set("") + } + + jar { + // Sets the jar manifest attributes. + if (platform.isLegacyForge) { + manifest.attributes += mapOf( + "ModSide" to "CLIENT", // We aren't developing a server-side mod, so this is fine. + "ForceLoadAsMod" to true, // We want to load this jar as a mod, so we force Forge to do so. + "TweakOrder" to "0", // Makes sure that the OneConfig launch wrapper is loaded as soon as possible. + "MixinConfigs" to "mixins.${mod_id}.json", // We want to use our mixin configuration, so we specify it here. + "TweakClass" to "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker" // Loads the OneConfig launch wrapper. + ) + } + dependsOn(shadowJar) + archiveClassifier.set("") + enabled = false + } +}
\ No newline at end of file diff --git a/gradle.properties b/gradle.properties index d0f26a8..7e417f2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,12 @@ -org.gradle.jvmargs=-Xmx2G mod_name = Chatting mod_id = chatting -mod_version = 1.4.2-beta5 +mod_version = 1.5.0 +mod_archives_name = Chatting -loom.platform = forge -minecraft.version = "1.8.9-forge" +# Gradle Configuration -- DO NOT TOUCH THESE VALUES. +polyfrost.defaults.loom=1 +org.gradle.daemon=true +org.gradle.parallel=true +org.gradle.configureoncommand=true +org.gradle.parallel.threads=4 +org.gradle.jvmargs=-Xmx2G
\ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 070cb70..e411586 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/root.gradle.kts b/root.gradle.kts new file mode 100644 index 0000000..2b3f7b0 --- /dev/null +++ b/root.gradle.kts @@ -0,0 +1,9 @@ +plugins { + kotlin("jvm") version "1.8.22" apply false + id("org.polyfrost.multi-version.root") + id("com.github.johnrengelman.shadow") version "7.1.2" apply false +} + +preprocess { + "1.8.9-forge"(10809, "srg") {} +}
\ No newline at end of file diff --git a/settings.gradle b/settings.gradle deleted file mode 100644 index 8fa80f6..0000000 --- a/settings.gradle +++ /dev/null @@ -1,16 +0,0 @@ -pluginManagement { - repositories { - gradlePluginPortal() - maven { url = "https://repo.polyfrost.cc/releases" } - maven { url = "https://maven.architectury.dev"} - } - resolutionStrategy { - eachPlugin { - if (requested.id.id == "io.github.juuxel.loom-quiltflower-mini") { - useModule("com.github.wyvest:loom-quiltflower-mini:${requested.version}") - } - } - } -} - -rootProject.name = mod_name
\ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts new file mode 100644 index 0000000..9692a27 --- /dev/null +++ b/settings.gradle.kts @@ -0,0 +1,30 @@ +@file:Suppress("PropertyName") + +pluginManagement { + repositories { + gradlePluginPortal() + mavenCentral() + maven("https://repo.polyfrost.org/releases") // Adds the Polyfrost maven repository to get Polyfrost Gradle Toolkit + } + plugins { + val pgtVersion = "0.2.9" // Sets the default versions for Polyfrost Gradle Toolkit + id("org.polyfrost.multi-version.root") version pgtVersion + } +} + +val mod_name: String by settings + +// Configures the root project Gradle name based on the value in `gradle.properties` +rootProject.name = mod_name +rootProject.buildFileName = "root.gradle.kts" + +// Adds all of our build target versions to the classpath if we need to add version-specific code. +listOf( + "1.8.9-forge" +).forEach { version -> + include(":$version") + project(":$version").apply { + projectDir = file("versions/$version") + buildFileName = "../../build.gradle.kts" + } +}
\ No newline at end of file diff --git a/src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java b/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java index 9460e0c..50b9ce3 100644 --- a/src/main/java/cc/woverflow/chatting/hook/ChatLineHook.java +++ b/src/main/java/org/polyfrost/chatting/hook/ChatLineHook.java @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.hook; +package org.polyfrost.chatting.hook; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.network.NetworkPlayerInfo; diff --git a/src/main/java/cc/woverflow/chatting/hook/GuiNewChatHook.java b/src/main/java/org/polyfrost/chatting/hook/GuiNewChatHook.java index 19da778..84097bd 100644 --- a/src/main/java/cc/woverflow/chatting/hook/GuiNewChatHook.java +++ b/src/main/java/org/polyfrost/chatting/hook/GuiNewChatHook.java @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.hook; +package org.polyfrost.chatting.hook; import net.minecraft.client.gui.ChatLine; diff --git a/src/main/java/cc/woverflow/chatting/mixin/ChatLineMixin.java b/src/main/java/org/polyfrost/chatting/mixin/ChatLineMixin.java index beef37b..2e5f21c 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/ChatLineMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/ChatLineMixin.java @@ -3,10 +3,10 @@ * See: https://github.com/dzwdz/chat_heads/blob/fabric-1.16.x/LICENSE */ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.config.ChattingConfig; -import cc.woverflow.chatting.hook.ChatLineHook; +import org.polyfrost.chatting.config.ChattingConfig; +import org.polyfrost.chatting.hook.ChatLineHook; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.network.NetHandlerPlayClient; diff --git a/src/main/java/cc/woverflow/chatting/mixin/ClientCommandHandlerMixin.java b/src/main/java/org/polyfrost/chatting/mixin/ClientCommandHandlerMixin.java index f771c87..ee63ed3 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/ClientCommandHandlerMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/ClientCommandHandlerMixin.java @@ -1,7 +1,5 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.chat.ChatShortcuts; -import cc.woverflow.chatting.config.ChattingConfig; import kotlin.Pair; import net.minecraft.client.Minecraft; import net.minecraft.command.CommandHandler; @@ -9,6 +7,8 @@ import net.minecraft.command.ICommandSender; import net.minecraft.util.BlockPos; import net.minecraftforge.client.ClientCommandHandler; import net.minecraftforge.fml.client.FMLClientHandler; +import org.polyfrost.chatting.chat.ChatShortcuts; +import org.polyfrost.chatting.config.ChattingConfig; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Redirect; diff --git a/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java b/src/main/java/org/polyfrost/chatting/mixin/EntityPlayerSPMixin.java index fa125cb..d59d7f2 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/EntityPlayerSPMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/EntityPlayerSPMixin.java @@ -1,12 +1,12 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.chat.ChatTab; -import cc.woverflow.chatting.chat.ChatTabs; -import cc.woverflow.chatting.config.ChattingConfig; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.network.NetHandlerPlayClient; import net.minecraft.network.Packet; import net.minecraft.network.play.client.C01PacketChatMessage; +import org.polyfrost.chatting.chat.ChatTab; +import org.polyfrost.chatting.chat.ChatTabs; +import org.polyfrost.chatting.config.ChattingConfig; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java b/src/main/java/org/polyfrost/chatting/mixin/GuiChatMixin.java index a12aea1..303326f 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiChatMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiChatMixin.java @@ -1,13 +1,12 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.chat.*; -import cc.woverflow.chatting.config.ChattingConfig; -import cc.woverflow.chatting.gui.components.ClearButton; -import cc.woverflow.chatting.gui.components.ScreenshotButton; -import cc.woverflow.chatting.gui.components.SearchButton; -import cc.woverflow.chatting.hook.ChatLineHook; -import cc.woverflow.chatting.hook.GuiNewChatHook; -import cc.woverflow.chatting.utils.ModCompatHooks; +import org.polyfrost.chatting.chat.*; +import org.polyfrost.chatting.config.ChattingConfig; +import org.polyfrost.chatting.gui.components.ClearButton; +import org.polyfrost.chatting.gui.components.ScreenshotButton; +import org.polyfrost.chatting.gui.components.SearchButton; +import org.polyfrost.chatting.hook.ChatLineHook; +import org.polyfrost.chatting.hook.GuiNewChatHook; import com.google.common.collect.Lists; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ChatLine; @@ -18,6 +17,9 @@ import net.minecraft.util.MathHelper; import net.minecraftforge.fml.client.config.GuiUtils; import org.apache.commons.lang3.StringUtils; import org.lwjgl.input.Mouse; +import org.polyfrost.chatting.chat.ChatSearchingManager; +import org.polyfrost.chatting.chat.ChatShortcuts; +import org.polyfrost.chatting.utils.ModCompatHooks; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Unique; import org.spongepowered.asm.mixin.injection.At; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatAccessor.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatAccessor.java index d4fd524..d0630ca 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatAccessor.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatAccessor.java @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.GuiNewChat; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMapMixin.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMapMixin.java index 5b38bda..ca1c0df 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMapMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMapMixin.java @@ -1,9 +1,9 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.hook.GuiNewChatHook; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.util.IChatComponent; +import org.polyfrost.chatting.hook.GuiNewChatHook; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin.java index e0a3b56..bc90730 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin.java @@ -1,15 +1,13 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.polyfrost.oneconfig.config.core.OneColor; import cc.polyfrost.oneconfig.libs.universal.UMouse; import cc.polyfrost.oneconfig.utils.Notifications; -import cc.woverflow.chatting.Chatting; -import cc.woverflow.chatting.chat.ChatSearchingManager; -import cc.woverflow.chatting.config.ChattingConfig; -import cc.woverflow.chatting.gui.components.CleanButton; -import cc.woverflow.chatting.hook.GuiNewChatHook; -import cc.woverflow.chatting.utils.ModCompatHooks; -import cc.woverflow.chatting.utils.RenderUtils; +import org.polyfrost.chatting.Chatting; +import org.polyfrost.chatting.chat.ChatSearchingManager; +import org.polyfrost.chatting.config.ChattingConfig; +import org.polyfrost.chatting.hook.GuiNewChatHook; +import org.polyfrost.chatting.utils.ModCompatHooks; +import org.polyfrost.chatting.utils.RenderUtils; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.*; import net.minecraft.client.renderer.GlStateManager; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatHeight.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatHeight.java index d0b4db1..3b6d8b6 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatHeight.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatHeight.java @@ -1,8 +1,8 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.Chatting; -import cc.woverflow.chatting.config.ChattingConfig; import net.minecraft.client.gui.GuiNewChat; +import org.polyfrost.chatting.Chatting; +import org.polyfrost.chatting.config.ChattingConfig; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatSearching.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatSearching.java index b40ba52..f1ad3a4 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatSearching.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatSearching.java @@ -1,10 +1,10 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.chat.ChatSearchingManager; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.util.IChatComponent; import org.objectweb.asm.Opcodes; +import org.polyfrost.chatting.chat.ChatSearchingManager; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatTabs.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatTabs.java index d21097d..c101e6d 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_ChatTabs.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_ChatTabs.java @@ -1,8 +1,8 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.chat.ChatTabs; -import cc.woverflow.chatting.config.ChattingConfig; -import cc.woverflow.chatting.utils.ModCompatHooks; +import org.polyfrost.chatting.chat.ChatTabs; +import org.polyfrost.chatting.config.ChattingConfig; +import org.polyfrost.chatting.utils.ModCompatHooks; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.GuiNewChat; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_Scrolling.java index 448ba6e..9a5a871 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_Scrolling.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_Scrolling.java @@ -1,13 +1,13 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; import cc.polyfrost.oneconfig.gui.animations.EaseOutQuad; import cc.polyfrost.oneconfig.utils.MathUtils; -import cc.woverflow.chatting.Chatting; -import cc.woverflow.chatting.chat.ChatScrollingHook; -import cc.woverflow.chatting.config.ChattingConfig; +import org.polyfrost.chatting.chat.ChatScrollingHook; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.Gui; import net.minecraft.client.gui.GuiNewChat; +import org.polyfrost.chatting.Chatting; +import org.polyfrost.chatting.config.ChattingConfig; import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_SmoothMessages.java index fa88145..28f2aa8 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_SmoothMessages.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_SmoothMessages.java @@ -1,11 +1,11 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.Chatting; -import cc.woverflow.chatting.chat.ChatSearchingManager; -import cc.woverflow.chatting.chat.ChatTabs; -import cc.woverflow.chatting.config.ChattingConfig; -import cc.woverflow.chatting.utils.EaseOutQuart; -import cc.woverflow.chatting.utils.ModCompatHooks; +import org.polyfrost.chatting.Chatting; +import org.polyfrost.chatting.chat.ChatSearchingManager; +import org.polyfrost.chatting.chat.ChatTabs; +import org.polyfrost.chatting.config.ChattingConfig; +import org.polyfrost.chatting.utils.EaseOutQuart; +import org.polyfrost.chatting.utils.ModCompatHooks; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.util.EnumChatFormatting; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_TextRendering.java b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_TextRendering.java index f19db6f..aff102c 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiNewChatMixin_TextRendering.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiNewChatMixin_TextRendering.java @@ -1,9 +1,9 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; -import cc.woverflow.chatting.utils.ModCompatHooks; import net.minecraft.client.gui.ChatLine; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiNewChat; +import org.polyfrost.chatting.utils.ModCompatHooks; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Unique; import org.spongepowered.asm.mixin.injection.At; diff --git a/src/main/java/cc/woverflow/chatting/mixin/GuiUtilsMixin.java b/src/main/java/org/polyfrost/chatting/mixin/GuiUtilsMixin.java index d939d6b..1e2d0e6 100644 --- a/src/main/java/cc/woverflow/chatting/mixin/GuiUtilsMixin.java +++ b/src/main/java/org/polyfrost/chatting/mixin/GuiUtilsMixin.java @@ -1,9 +1,9 @@ -package cc.woverflow.chatting.mixin; +package org.polyfrost.chatting.mixin; import cc.polyfrost.oneconfig.renderer.TextRenderer; -import cc.woverflow.chatting.config.ChattingConfig; import net.minecraft.client.gui.FontRenderer; import net.minecraftforge.fml.client.config.GuiUtils; +import org.polyfrost.chatting.config.ChattingConfig; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; diff --git a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt b/src/main/kotlin/org/polyfrost/chatting/Chatting.kt index 9452dcf..0e8745c 100644 --- a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt +++ b/src/main/kotlin/org/polyfrost/chatting/Chatting.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting +package org.polyfrost.chatting import cc.polyfrost.oneconfig.libs.universal.UDesktop import cc.polyfrost.oneconfig.libs.universal.UMinecraft @@ -6,18 +6,16 @@ import cc.polyfrost.oneconfig.libs.universal.UResolution import cc.polyfrost.oneconfig.utils.Notifications import cc.polyfrost.oneconfig.utils.commands.CommandManager import cc.polyfrost.oneconfig.utils.dsl.browseLink -import cc.woverflow.chatting.chat.ChatSearchingManager -import cc.woverflow.chatting.chat.ChatShortcuts -import cc.woverflow.chatting.chat.ChatSpamBlock -import cc.woverflow.chatting.chat.ChatTabs -import cc.woverflow.chatting.command.ChattingCommand -import cc.woverflow.chatting.config.ChattingConfig -import cc.woverflow.chatting.hook.ChatLineHook -import cc.woverflow.chatting.mixin.GuiNewChatAccessor -import cc.woverflow.chatting.utils.ModCompatHooks -import cc.woverflow.chatting.utils.copyToClipboard -import cc.woverflow.chatting.utils.createBindFramebuffer -import cc.woverflow.chatting.utils.screenshot +import org.polyfrost.chatting.chat.ChatSearchingManager +import org.polyfrost.chatting.chat.ChatShortcuts +import org.polyfrost.chatting.chat.ChatSpamBlock +import org.polyfrost.chatting.chat.ChatTabs +import org.polyfrost.chatting.command.ChattingCommand +import org.polyfrost.chatting.config.ChattingConfig +import org.polyfrost.chatting.utils.ModCompatHooks +import org.polyfrost.chatting.utils.copyToClipboard +import org.polyfrost.chatting.utils.createBindFramebuffer +import org.polyfrost.chatting.utils.screenshot import net.minecraft.client.Minecraft import net.minecraft.client.gui.* import net.minecraft.client.renderer.GlStateManager @@ -36,6 +34,8 @@ import net.minecraftforge.fml.common.event.FMLPostInitializationEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import net.minecraftforge.fml.common.gameevent.TickEvent import org.lwjgl.input.Keyboard +import org.polyfrost.chatting.hook.ChatLineHook +import org.polyfrost.chatting.mixin.GuiNewChatAccessor import java.awt.image.BufferedImage import java.io.File import java.text.SimpleDateFormat diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatRegexes.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatRegexes.kt index a0a8e86..0d6909e 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatRegexes.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatRegexes.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat data class ChatRegexes(val regexList: List<String>?) { val compiledRegexList: MutableList<Regex> = arrayListOf() diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatScrollingHook.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatScrollingHook.kt index b81de94..982329a 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatScrollingHook.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatScrollingHook.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat object ChatScrollingHook { var shouldSmooth = false diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSearchingManager.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatSearchingManager.kt index 33a2642..d20a358 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSearchingManager.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatSearchingManager.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat import cc.polyfrost.oneconfig.libs.caffeine.cache.Cache import cc.polyfrost.oneconfig.libs.caffeine.cache.Caffeine diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatShortcuts.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatShortcuts.kt index ef1881d..0c85553 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatShortcuts.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatShortcuts.kt @@ -1,7 +1,7 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat import cc.polyfrost.oneconfig.config.core.ConfigUtils -import cc.woverflow.chatting.Chatting +import org.polyfrost.chatting.Chatting import com.google.gson.JsonObject import com.google.gson.JsonParser import java.io.File diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatSpamBlock.kt index 471eec8..da5dde8 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatSpamBlock.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatSpamBlock.kt @@ -1,6 +1,6 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat -import cc.woverflow.chatting.config.ChattingConfig +import org.polyfrost.chatting.config.ChattingConfig import com.google.gson.JsonObject import com.google.gson.JsonParser import java.text.Normalizer diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTab.kt index 50de1f4..bd65f11 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTab.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTab.kt @@ -1,6 +1,6 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat -import cc.woverflow.chatting.gui.components.TabButton +import org.polyfrost.chatting.gui.components.TabButton import com.google.gson.annotations.SerializedName import net.minecraft.client.Minecraft import net.minecraft.util.EnumChatFormatting diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabs.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTabs.kt index 08423e5..b46f55d 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabs.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTabs.kt @@ -1,8 +1,8 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat import cc.polyfrost.oneconfig.config.core.ConfigUtils -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.gui.components.TabButton +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.gui.components.TabButton import com.google.gson.GsonBuilder import com.google.gson.JsonArray import com.google.gson.JsonObject diff --git a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTabsJson.kt index c632561..c5939c3 100644 --- a/src/main/kotlin/cc/woverflow/chatting/chat/ChatTabsJson.kt +++ b/src/main/kotlin/org/polyfrost/chatting/chat/ChatTabsJson.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.chat +package org.polyfrost.chatting.chat import com.google.gson.JsonArray import com.google.gson.annotations.SerializedName diff --git a/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt b/src/main/kotlin/org/polyfrost/chatting/command/ChattingCommand.kt index 7fcd4a8..86aff72 100644 --- a/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt +++ b/src/main/kotlin/org/polyfrost/chatting/command/ChattingCommand.kt @@ -1,9 +1,9 @@ -package cc.woverflow.chatting.command +package org.polyfrost.chatting.command import cc.polyfrost.oneconfig.utils.commands.annotations.Command import cc.polyfrost.oneconfig.utils.commands.annotations.Main -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.config.ChattingConfig +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.config.ChattingConfig @Command(value = Chatting.ID, description = "Access the " + Chatting.NAME + " GUI.") class ChattingCommand { diff --git a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt b/src/main/kotlin/org/polyfrost/chatting/config/ChattingConfig.kt index 711250f..0701471 100644 --- a/src/main/kotlin/cc/woverflow/chatting/config/ChattingConfig.kt +++ b/src/main/kotlin/org/polyfrost/chatting/config/ChattingConfig.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.config +package org.polyfrost.chatting.config import cc.polyfrost.oneconfig.config.Config import cc.polyfrost.oneconfig.config.annotations.* @@ -8,13 +8,13 @@ import cc.polyfrost.oneconfig.config.data.Mod import cc.polyfrost.oneconfig.config.data.ModType import cc.polyfrost.oneconfig.config.migration.VigilanceMigrator import cc.polyfrost.oneconfig.utils.hypixel.HypixelUtils -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.chat.ChatShortcuts -import cc.woverflow.chatting.chat.ChatTab -import cc.woverflow.chatting.chat.ChatTabs -import cc.woverflow.chatting.gui.components.TabButton -import cc.woverflow.chatting.hook.ChatLineHook -import cc.woverflow.chatting.utils.ModCompatHooks +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.chat.ChatShortcuts +import org.polyfrost.chatting.chat.ChatTab +import org.polyfrost.chatting.chat.ChatTabs +import org.polyfrost.chatting.gui.components.TabButton +import org.polyfrost.chatting.hook.ChatLineHook +import org.polyfrost.chatting.utils.ModCompatHooks import java.io.File object ChattingConfig : Config( diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/CleanButton.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/CleanButton.kt index de590e6..d4c4acd 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/CleanButton.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/CleanButton.kt @@ -1,13 +1,13 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components import cc.polyfrost.oneconfig.renderer.TextRenderer -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.config.ChattingConfig -import cc.woverflow.chatting.hook.GuiNewChatHook +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.config.ChattingConfig import club.sk1er.patcher.config.PatcherConfig import net.minecraft.client.Minecraft import net.minecraft.client.gui.GuiButton import net.minecraft.client.renderer.GlStateManager +import org.polyfrost.chatting.hook.GuiNewChatHook /** * Taken from ChatShortcuts under MIT License diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/ClearButton.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/ClearButton.kt index 6ac3d34..535cfca 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/ClearButton.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/ClearButton.kt @@ -1,10 +1,10 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components import cc.polyfrost.oneconfig.libs.universal.ChatColor import cc.polyfrost.oneconfig.libs.universal.UChat import cc.polyfrost.oneconfig.libs.universal.UResolution import cc.polyfrost.oneconfig.utils.Multithreading -import cc.woverflow.chatting.Chatting +import org.polyfrost.chatting.Chatting import net.minecraft.client.Minecraft import net.minecraft.client.gui.Gui import net.minecraft.client.renderer.GlStateManager diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/RenderType.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/RenderType.kt index 8a56d5b..a150d64 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/RenderType.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/RenderType.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components enum class RenderType { NONE, diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/ScreenshotButton.kt index 4f65427..d8da4ad 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/ScreenshotButton.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/ScreenshotButton.kt @@ -1,9 +1,9 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components import cc.polyfrost.oneconfig.libs.universal.UResolution import cc.polyfrost.oneconfig.libs.universal.UScreen -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.mixin.GuiNewChatAccessor +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.mixin.GuiNewChatAccessor import net.minecraft.client.Minecraft import net.minecraft.client.gui.Gui import net.minecraft.client.gui.GuiChat diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/SearchButton.kt index 54e9041..7981945 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/SearchButton.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/SearchButton.kt @@ -1,8 +1,8 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components import cc.polyfrost.oneconfig.libs.universal.UResolution -import cc.woverflow.chatting.Chatting -import cc.woverflow.chatting.chat.ChatSearchingManager +import org.polyfrost.chatting.Chatting +import org.polyfrost.chatting.chat.ChatSearchingManager import net.minecraft.client.Minecraft import net.minecraft.client.gui.Gui import net.minecraft.client.gui.GuiTextField diff --git a/src/main/kotlin/cc/woverflow/chatting/gui/components/TabButton.kt b/src/main/kotlin/org/polyfrost/chatting/gui/components/TabButton.kt index e3b96f1..d0743c3 100644 --- a/src/main/kotlin/cc/woverflow/chatting/gui/components/TabButton.kt +++ b/src/main/kotlin/org/polyfrost/chatting/gui/components/TabButton.kt @@ -1,10 +1,10 @@ -package cc.woverflow.chatting.gui.components +package org.polyfrost.chatting.gui.components import cc.polyfrost.oneconfig.libs.universal.UKeyboard import cc.polyfrost.oneconfig.libs.universal.UResolution -import cc.woverflow.chatting.chat.ChatTab -import cc.woverflow.chatting.chat.ChatTabs -import cc.woverflow.chatting.config.ChattingConfig +import org.polyfrost.chatting.chat.ChatTab +import org.polyfrost.chatting.chat.ChatTabs +import org.polyfrost.chatting.config.ChattingConfig class TabButton(buttonId: Int, x: Int, widthIn: Int, heightIn: Int, private val chatTab: ChatTab) : CleanButton(buttonId, { x }, { diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt b/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt index 7943b4d..4b6b7a5 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/EaseOutQuart.kt +++ b/src/main/kotlin/org/polyfrost/chatting/utils/EaseOutQuart.kt @@ -1,4 +1,4 @@ -package cc.woverflow.chatting.utils +package org.polyfrost.chatting.utils import cc.polyfrost.oneconfig.gui.animations.Animation diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt b/src/main/kotlin/org/polyfrost/chatting/utils/ModCompatHooks.kt index 3c60c72..ad7d329 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/ModCompatHooks.kt +++ b/src/main/kotlin/org/polyfrost/chatting/utils/ModCompatHooks.kt @@ -1,15 +1,13 @@ -package cc.woverflow.chatting.utils +package org.polyfrost.chatting.utils import cc.polyfrost.oneconfig.renderer.TextRenderer import cc.polyfrost.oneconfig.utils.dsl.getAlpha import cc.polyfrost.oneconfig.utils.dsl.mc -import cc.woverflow.chatting.Chatting.isBetterChat -import cc.woverflow.chatting.Chatting.isPatcher -import cc.woverflow.chatting.config.ChattingConfig.offsetNonPlayerMessages -import cc.woverflow.chatting.config.ChattingConfig.showChatHeads -import cc.woverflow.chatting.config.ChattingConfig.textRenderType -import cc.woverflow.chatting.hook.ChatLineHook -import cc.woverflow.chatting.hook.GuiNewChatHook +import org.polyfrost.chatting.Chatting.isBetterChat +import org.polyfrost.chatting.Chatting.isPatcher +import org.polyfrost.chatting.config.ChattingConfig.offsetNonPlayerMessages +import org.polyfrost.chatting.config.ChattingConfig.showChatHeads +import org.polyfrost.chatting.config.ChattingConfig.textRenderType import club.sk1er.patcher.config.PatcherConfig import com.llamalad7.betterchat.BetterChat import net.minecraft.client.Minecraft @@ -17,6 +15,8 @@ import net.minecraft.client.gui.ChatLine import net.minecraft.client.gui.FontRenderer import net.minecraft.client.gui.Gui import net.minecraft.client.renderer.GlStateManager +import org.polyfrost.chatting.hook.ChatLineHook +import org.polyfrost.chatting.hook.GuiNewChatHook // This exists because mixin doesn't like dummy classes object ModCompatHooks { diff --git a/src/main/kotlin/cc/woverflow/chatting/utils/RenderUtils.kt b/src/main/kotlin/org/polyfrost/chatting/utils/RenderUtils.kt index 12051cf..6eaa78b 100644 --- a/src/main/kotlin/cc/woverflow/chatting/utils/RenderUtils.kt +++ b/src/main/kotlin/org/polyfrost/chatting/utils/RenderUtils.kt @@ -1,9 +1,9 @@ @file:JvmName("RenderUtils") -package cc.woverflow.chatting.utils +package org.polyfrost.chatting.utils import cc.polyfrost.oneconfig.utils.IOUtils -import cc.woverflow.chatting.config.ChattingConfig +import org.polyfrost.chatting.config.ChattingConfig import net.minecraft.client.renderer.GlStateManager import net.minecraft.client.renderer.texture.TextureUtil import net.minecraft.client.shader.Framebuffer diff --git a/src/main/resources/mixins.chatting.json b/src/main/resources/mixins.chatting.json index 0473261..ce96f59 100644 --- a/src/main/resources/mixins.chatting.json +++ b/src/main/resources/mixins.chatting.json @@ -1,23 +1,23 @@ { "compatibilityLevel": "JAVA_8", "minVersion": "0.7", - "package": "cc.woverflow.chatting.mixin", + "package": "org.polyfrost.chatting.mixin", "refmap": "mixins.${id}.refmap.json", "verbose": true, "client": [ - "ChatLineMixin", - "ClientCommandHandlerMixin", - "EntityPlayerSPMixin", - "GuiChatMixin", - "GuiNewChatAccessor", - "GuiNewChatMapMixin", - "GuiNewChatMixin", - "GuiNewChatMixin_ChatHeight", - "GuiNewChatMixin_ChatSearching", - "GuiNewChatMixin_ChatTabs", - "GuiNewChatMixin_Scrolling", - "GuiNewChatMixin_SmoothMessages", - "GuiNewChatMixin_TextRendering", - "GuiUtilsMixin" + "ChatLineMixin", + "ClientCommandHandlerMixin", + "EntityPlayerSPMixin", + "GuiChatMixin", + "GuiNewChatAccessor", + "GuiNewChatMapMixin", + "GuiNewChatMixin", + "GuiNewChatMixin_ChatHeight", + "GuiNewChatMixin_ChatSearching", + "GuiNewChatMixin_ChatTabs", + "GuiNewChatMixin_Scrolling", + "GuiNewChatMixin_SmoothMessages", + "GuiNewChatMixin_TextRendering", + "GuiUtilsMixin" ] }
\ No newline at end of file diff --git a/versions/mainProject b/versions/mainProject new file mode 100644 index 0000000..dd1433e --- /dev/null +++ b/versions/mainProject @@ -0,0 +1 @@ +1.8.9-forge
\ No newline at end of file |