Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,26 @@ run/

.vscode/

.kotlin/
.kotlin/

# ── GSD baseline (auto-generated) ──
.gsd
.bg-shell/
*.swp
*.swo
*.code-workspace
.env
.env.*
!.env.example
node_modules/
.next/
dist/
__pycache__/
*.pyc
.venv/
venv/
target/
vendor/
coverage/
.cache/
tmp/
26 changes: 25 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ plugins {
}

repositories {
mavenCentral()
maven("https://repo.essential.gg/repository/maven-public/")
maven("https://repo.essential.gg/repository/maven-releases/")
maven("https://repo.hypixel.net/repository/Hypixel")
maven("https://jitpack.io") {
mavenContent {
includeGroupAndSubgroups("com.github")
}
}
maven("https://maven.dediamondpro.dev/releases") {
mavenContent {
includeGroup("dev.dediamondpro")
}
}
}

val relocated: Configuration by configurations.creating
Expand All @@ -32,6 +45,17 @@ dependencies {
include(implementation(libs.cloud.annotaitons.get())!!)
modImplementation(libs.bundles.fabricapi)
include(modImplementation(libs.partnermodintegration.get())!!)
include(implementation(libs.brotli.get())!!)
include(implementation(libs.ktor.client.core.get())!!)
include(implementation(libs.ktor.client.cio.get())!!)
include(implementation(libs.ktor.client.content.negotiation.get())!!)
include(implementation(libs.ktor.client.encoding.get())!!)
include(implementation(libs.ktor.client.websockets.get())!!)
include(implementation(libs.ktor.serialization.kotlinx.json.get())!!)
include(implementation(libs.ktor.serialization.kotlinx.jvm.get())!!)
include(implementation(libs.kotlinx.serialization.protobuf.get())!!)
implementation(libs.mixinextras)
annotationProcessor(libs.mixinextras)
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))
Expand Down Expand Up @@ -79,4 +103,4 @@ signing {
useGpgCmd()
sign(tasks["remapJar"])
}
}
}
4 changes: 3 additions & 1 deletion events/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ plugins {

dependencies {
modCompileOnly(libs.flk)
implementation("io.github.llamalad7:mixinextras-fabric:0.5.0-rc.1")
annotationProcessor("io.github.llamalad7:mixinextras-fabric:0.5.0-rc.1")
}

java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))

tasks.withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
}
24 changes: 0 additions & 24 deletions events/src/main/java/gg/skytils/event/mixin/MixinKeyboard.java

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions events/src/main/java/gg/skytils/event/mixin/MixinMouse.java

This file was deleted.

This file was deleted.

This file was deleted.

47 changes: 47 additions & 0 deletions events/src/main/java/gg/skytils/event/mixins/MixinKeyboard.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Skytils - Hypixel Skyblock Quality of Life Mod
* Copyright (C) 2020-2025 Skytils
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package gg.skytils.event.mixins;

import gg.skytils.event.EventsKt;
import gg.skytils.event.impl.play.KeyboardInputEvent;
import gg.skytils.event.impl.screen.ScreenKeyInputEvent;
import net.minecraft.client.Keyboard;
import net.minecraft.client.MinecraftClient;
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(Keyboard.class)
public class MixinKeyboard {
@Shadow @Final private MinecraftClient client;

@Inject(method = "onKey", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/util/Window;getHandle()J", shift = At.Shift.AFTER, ordinal = 0), cancellable = true)
private void onKey(long window, int key, int scancode, int action, int modifiers, CallbackInfo ci) {
if (this.client.currentScreen != null &&
EventsKt.postCancellableSync(new ScreenKeyInputEvent(this.client.currentScreen, key))) {
ci.cancel();
return;
}
if (EventsKt.postCancellableSync(new KeyboardInputEvent(key))) {
ci.cancel();
}
}}
Loading