diff --git a/build.gradle.kts b/build.gradle.kts index 023162a..a205728 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,7 +31,7 @@ blossom { version = mod_version group = "cc.polyfrost" base { - archivesName.set("$mod_name (1.8.9 & 1.12.2)") + archivesName.set("$mod_name-$platform") } loom { noServerRunConfigs() diff --git a/gradle.properties b/gradle.properties index 2675a08..d521ad7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ mod_name = SimpleToggleSprint mod_id = simpletogglesprint -mod_version = 1.0.0-beta2 +mod_version = 1.0.0-beta3 essential.defaults.loom=0 diff --git a/root.gradle.kts b/root.gradle.kts index 73e3461..63e6e30 100644 --- a/root.gradle.kts +++ b/root.gradle.kts @@ -6,5 +6,7 @@ plugins { } preprocess { - "1.8.9-forge"(10809, "srg") {} + "1.12.2-forge"(11202, "srg") { + "1.8.9-forge"(10809, "srg") + } } \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 59bcf33..ed95565 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -42,7 +42,8 @@ rootProject.name = mod_name rootProject.buildFileName = "root.gradle.kts" listOf( - "1.8.9-forge" + "1.8.9-forge", + "1.12.2-forge" ).forEach { version -> include(":$version") project(":$version").apply { diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity.java deleted file mode 100644 index e465b66..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraft.entity.Entity; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Invoker; - -@Mixin(Entity.class) -public interface AccessorEntity { - @Invoker("isSneaking") - boolean isSneaking(); - - @Invoker("isRiding") - boolean isRiding(); - - @Invoker("isSprinting") - boolean isSprinting(); -} diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer.java deleted file mode 100644 index f8c3e89..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.entity.player.PlayerCapabilities; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(EntityPlayer.class) -public interface AccessorEntityPlayer extends AccessorEntity { - @Accessor - PlayerCapabilities getCapabilities(); -} diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings.java deleted file mode 100644 index bc4dd10..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraft.client.settings.GameSettings; -import net.minecraft.client.settings.KeyBinding; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(GameSettings.class) -public interface AccessorGameSettings { - @Accessor - KeyBinding getKeyBindSprint(); - - @Accessor - KeyBinding getKeyBindSneak(); -} diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding.java deleted file mode 100644 index 5838332..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraft.client.settings.KeyBinding; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; -import org.spongepowered.asm.mixin.gen.Invoker; - -@Mixin(KeyBinding.class) -public interface AccessorKeybinding { - @Accessor - int getKeyCode(); - - @Invoker("isKeyDown") - boolean isKeyDown(); -} diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities.java deleted file mode 100644 index 0419dd2..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraft.entity.player.PlayerCapabilities; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(PlayerCapabilities.class) -public interface AccessorPlayerCapabilities { - @Accessor("isFlying") - boolean isFlying(); -} diff --git a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorRenderGameOverlayEvent.java b/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorRenderGameOverlayEvent.java deleted file mode 100644 index f56f3ae..0000000 --- a/src/main/java/mynameisjeff/simpletogglesprint/mixins/accessors/AccessorRenderGameOverlayEvent.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * SimpleToggleSprint - * Copyright (C) 2021 My-Name-Is-Jeff - * - * 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 . - */ - -package mynameisjeff.simpletogglesprint.mixins.accessors; - -import net.minecraftforge.client.event.RenderGameOverlayEvent; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.gen.Accessor; - -@Mixin(RenderGameOverlayEvent.class) -public interface AccessorRenderGameOverlayEvent { - @Accessor - RenderGameOverlayEvent.ElementType getType(); -} diff --git a/src/main/kotlin/mynameisjeff/simpletogglesprint/SimpleToggleSprint.kt b/src/main/kotlin/mynameisjeff/simpletogglesprint/SimpleToggleSprint.kt index 01d6415..b0d26d7 100644 --- a/src/main/kotlin/mynameisjeff/simpletogglesprint/SimpleToggleSprint.kt +++ b/src/main/kotlin/mynameisjeff/simpletogglesprint/SimpleToggleSprint.kt @@ -22,8 +22,6 @@ import cc.polyfrost.oneconfig.utils.commands.CommandManager import mynameisjeff.simpletogglesprint.commands.SimpleToggleSprintCommand import mynameisjeff.simpletogglesprint.core.SimpleToggleSprintConfig import mynameisjeff.simpletogglesprint.core.checkKeyCode -import mynameisjeff.simpletogglesprint.mixins.accessors.AccessorGameSettings -import mynameisjeff.simpletogglesprint.mixins.accessors.AccessorKeybinding import net.minecraftforge.common.MinecraftForge import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.event.FMLInitializationEvent @@ -35,7 +33,6 @@ import net.minecraftforge.fml.common.gameevent.InputEvent modid = SimpleToggleSprint.MODID, name = SimpleToggleSprint.MOD_NAME, version = SimpleToggleSprint.VERSION, - acceptedMinecraftVersions = "[1.8.9,1.12.2]", clientSideOnly = true, modLanguageAdapter = "cc.polyfrost.oneconfig.utils.KotlinLanguageAdapter" ) @@ -47,7 +44,7 @@ object SimpleToggleSprint { val player get() = UMinecraft.getPlayer() val gameSettings - get() = UMinecraft.getSettings() as AccessorGameSettings + get() = UMinecraft.getSettings() var sprintHeld = false var sneakHeld = false @@ -67,8 +64,8 @@ object SimpleToggleSprint { @SubscribeEvent fun onInput(event: InputEvent) { if (!SimpleToggleSprintConfig.enabled) return - val sprint = (gameSettings.keyBindSprint as AccessorKeybinding).keyCode - val sneak = (gameSettings.keyBindSneak as AccessorKeybinding).keyCode + val sprint = gameSettings.keyBindSprint.keyCode + val sneak = gameSettings.keyBindSneak.keyCode if (!SimpleToggleSprintConfig.keybindToggleSprint && checkKeyCode(sprint)) { if (SimpleToggleSprintConfig.enabled && SimpleToggleSprintConfig.toggleSprint && !sprintHeld) { SimpleToggleSprintConfig.toggleSprintState = !SimpleToggleSprintConfig.toggleSprintState diff --git a/src/main/kotlin/mynameisjeff/simpletogglesprint/core/SimpleToggleSprintConfig.kt b/src/main/kotlin/mynameisjeff/simpletogglesprint/core/SimpleToggleSprintConfig.kt index 8d382d4..e8ef7cd 100644 --- a/src/main/kotlin/mynameisjeff/simpletogglesprint/core/SimpleToggleSprintConfig.kt +++ b/src/main/kotlin/mynameisjeff/simpletogglesprint/core/SimpleToggleSprintConfig.kt @@ -13,8 +13,7 @@ import cc.polyfrost.oneconfig.hud.TextHud import cc.polyfrost.oneconfig.libs.universal.UKeyboard import mynameisjeff.simpletogglesprint.SimpleToggleSprint import mynameisjeff.simpletogglesprint.core.SimpleToggleSprintConfig.ToggleSprintHud.DisplayState.Companion.activeDisplay -import mynameisjeff.simpletogglesprint.mixins.accessors.AccessorEntityPlayer -import mynameisjeff.simpletogglesprint.mixins.accessors.AccessorPlayerCapabilities +import net.minecraft.entity.player.EntityPlayer import java.io.File object SimpleToggleSprintConfig : Config(Mod("SimpleToggleSprint", ModType.PVP, VigilanceMigrator(File("./config/simpletogglesprint.toml").absolutePath)), "simpletogglesprint.json") { @@ -185,11 +184,11 @@ object SimpleToggleSprintConfig : Config(Mod("SimpleToggleSprint", ModType.PVP, private fun getCompleteText(text: String?) = if (brackets && text?.isNotEmpty() == true) "[$text]" else text - private enum class DisplayState(val displayText: ToggleSprintHud.() -> String, val displayCheck: (AccessorEntityPlayer) -> Boolean) { - DESCENDINGHELD({ descendingHeld }, { (it.capabilities as AccessorPlayerCapabilities).isFlying && it.isSneaking && SimpleToggleSprint.sneakHeld }), - DESCENDINGTOGGLED({ descendingToggled }, { (it.capabilities as AccessorPlayerCapabilities).isFlying && SimpleToggleSprintConfig.enabled && toggleSprint && toggleSneakState }), - DESCENDING({ descending }, { (it.capabilities as AccessorPlayerCapabilities).isFlying && it.isSneaking }), - FLYING({ flying }, { (it.capabilities as AccessorPlayerCapabilities).isFlying }), + private enum class DisplayState(val displayText: ToggleSprintHud.() -> String, val displayCheck: (EntityPlayer) -> Boolean) { + DESCENDINGHELD({ descendingHeld }, { it.capabilities.isFlying && it.isSneaking && SimpleToggleSprint.sneakHeld }), + DESCENDINGTOGGLED({ descendingToggled }, { it.capabilities.isFlying && SimpleToggleSprintConfig.enabled && toggleSprint && toggleSneakState }), + DESCENDING({ descending }, { it.capabilities.isFlying && it.isSneaking }), + FLYING({ flying }, { it.capabilities.isFlying }), RIDING({ riding }, { it.isRiding }), SNEAKHELD({ sneakHeld }, { it.isSneaking && SimpleToggleSprint.sneakHeld }), TOGGLESNEAK({ sneakToggle }, { SimpleToggleSprintConfig.enabled && toggleSneak && toggleSneakState }), @@ -199,7 +198,7 @@ object SimpleToggleSprintConfig : Config(Mod("SimpleToggleSprint", ModType.PVP, SPRINTING({ sprint }, { it.isSprinting }); val isActive: Boolean - get() = displayCheck(SimpleToggleSprint.player!! as AccessorEntityPlayer) + get() = displayCheck(SimpleToggleSprint.player!!) companion object { val ToggleSprintHud.activeDisplay: String? diff --git a/src/main/kotlin/mynameisjeff/simpletogglesprint/core/Utils.kt b/src/main/kotlin/mynameisjeff/simpletogglesprint/core/Utils.kt index a0ede46..28dfc33 100644 --- a/src/main/kotlin/mynameisjeff/simpletogglesprint/core/Utils.kt +++ b/src/main/kotlin/mynameisjeff/simpletogglesprint/core/Utils.kt @@ -21,23 +21,15 @@ package mynameisjeff.simpletogglesprint.core import cc.polyfrost.oneconfig.libs.universal.UKeyboard import cc.polyfrost.oneconfig.libs.universal.UScreen import mynameisjeff.simpletogglesprint.SimpleToggleSprint.gameSettings -import mynameisjeff.simpletogglesprint.mixins.accessors.AccessorKeybinding import net.minecraft.client.settings.KeyBinding -import net.minecraftforge.common.ForgeVersion import org.lwjgl.input.Mouse -import kotlin.reflect.full.staticProperties -val is1_12_2 by lazy { - (ForgeVersion::class.staticProperties.find { - it.name == "mcVersion" - }!!.get() as String).startsWith("1.12") -} fun shouldSetSprint(keyBinding: KeyBinding): Boolean { - return (keyBinding as AccessorKeybinding).isKeyDown || UScreen.currentScreen == null && SimpleToggleSprintConfig.enabled && SimpleToggleSprintConfig.toggleSprint && SimpleToggleSprintConfig.toggleSprintState && keyBinding === gameSettings.keyBindSprint + return keyBinding.isKeyDown || UScreen.currentScreen == null && SimpleToggleSprintConfig.enabled && SimpleToggleSprintConfig.toggleSprint && SimpleToggleSprintConfig.toggleSprintState && keyBinding === gameSettings.keyBindSprint } fun shouldSetSneak(keyBinding: KeyBinding): Boolean { - return (keyBinding as AccessorKeybinding).isKeyDown || UScreen.currentScreen == null && SimpleToggleSprintConfig.enabled && SimpleToggleSprintConfig.toggleSneak && SimpleToggleSprintConfig.toggleSneakState && keyBinding === gameSettings.keyBindSneak + return keyBinding.isKeyDown || UScreen.currentScreen == null && SimpleToggleSprintConfig.enabled && SimpleToggleSprintConfig.toggleSneak && SimpleToggleSprintConfig.toggleSneakState && keyBinding === gameSettings.keyBindSneak } fun checkKeyCode(keyCode: Int) = if (keyCode > 0) UKeyboard.isKeyDown(keyCode) else Mouse.isButtonDown( diff --git a/src/main/kotlin/mynameisjeff/simpletogglesprint/tweaker/MixinPlugin.kt b/src/main/kotlin/mynameisjeff/simpletogglesprint/tweaker/MixinPlugin.kt index c3ca84e..0555443 100644 --- a/src/main/kotlin/mynameisjeff/simpletogglesprint/tweaker/MixinPlugin.kt +++ b/src/main/kotlin/mynameisjeff/simpletogglesprint/tweaker/MixinPlugin.kt @@ -19,7 +19,6 @@ package mynameisjeff.simpletogglesprint.tweaker import cc.polyfrost.oneconfig.utils.Notifications -import mynameisjeff.simpletogglesprint.core.is1_12_2 import net.minecraftforge.fml.relauncher.CoreModManager import org.spongepowered.asm.lib.tree.ClassNode import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin @@ -38,11 +37,7 @@ class MixinPlugin : IMixinConfigPlugin { } } - override fun getRefMapperConfig(): String { - val refMap = if (is1_12_2) "mixins.simpletogglesprint1_12.refmap.json" else "mixins.simpletogglesprint.refmap.json" - println("Using refmap $refMap") - return refMap - } + override fun getRefMapperConfig(): String? = null override fun shouldApplyMixin(targetClassName: String, mixinClassName: String): Boolean { return if (mixinClassName.startsWith("mynameisjeff.simpletogglesprint.mixins.playerapi.")) { diff --git a/src/main/resources/mixins.simpletogglesprint.json b/src/main/resources/mixins.simpletogglesprint.json index 271e065..beec6fc 100644 --- a/src/main/resources/mixins.simpletogglesprint.json +++ b/src/main/resources/mixins.simpletogglesprint.json @@ -2,13 +2,8 @@ "compatibilityLevel": "JAVA_8", "package": "mynameisjeff.simpletogglesprint.mixins", "plugin": "mynameisjeff.simpletogglesprint.tweaker.MixinPlugin", + "refmap": "mixins.simpletogglesprint.refmap.json", "mixins": [ - "accessors.AccessorEntity", - "accessors.AccessorEntityPlayer", - "accessors.AccessorGameSettings", - "accessors.AccessorKeybinding", - "accessors.AccessorPlayerCapabilities", - "accessors.AccessorRenderGameOverlayEvent", "MixinEntityPlayerSP", "MixinMovementInputFromOptions", "playerapi.MixinClientPlayerAPI" diff --git a/src/main/resources/mixins.simpletogglesprint1_12.refmap.json b/src/main/resources/mixins.simpletogglesprint1_12.refmap.json deleted file mode 100644 index cb6a3e6..0000000 --- a/src/main/resources/mixins.simpletogglesprint1_12.refmap.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "why": "literally only one mapping isRiding (not counting notch) is different lol but oh well", - "mappings": { - "mynameisjeff/simpletogglesprint/mixins/MixinMovementInputFromOptions": { - "updatePlayerMoveState": "Lnet/minecraft/util/MovementInputFromOptions;func_78898_a()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings": { - "keyBindSneak": "field_74311_E:Lnet/minecraft/client/settings/KeyBinding;", - "keyBindSprint": "field_151444_V:Lnet/minecraft/client/settings/KeyBinding;" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities": { - "isFlying": "field_75100_b:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/playerapi/MixinClientPlayerAPI": { - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding": { - "keyCode": "field_74512_d:I", - "isKeyDown": "func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer": { - "capabilities": "field_71075_bZ:Lnet/minecraft/entity/player/PlayerCapabilities;" - }, - "mynameisjeff/simpletogglesprint/mixins/MixinEntityPlayerSP": { - "onLivingUpdate": "Lnet/minecraft/client/entity/EntityPlayerSP;func_70636_d()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z", - "Lnet/minecraft/client/entity/EntityPlayerSP;onGround:Z": "Lnet/minecraft/client/entity/EntityPlayerSP;field_70122_E:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity": { - "isRiding": "func_184218_aH()Z", - "isSneaking": "func_70093_af()Z", - "isSprinting": "func_70051_ag()Z" - } - }, - "data": { - "notch": { - "mynameisjeff/simpletogglesprint/mixins/MixinMovementInputFromOptions": { - "updatePlayerMoveState": "Lbev;a()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lavb;d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings": { - "keyBindSneak": "ad:Lavb;", - "keyBindSprint": "ae:Lavb;" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities": { - "isFlying": "b:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/playerapi/MixinClientPlayerAPI": { - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lavb;d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding": { - "keyCode": "g:I", - "isKeyDown": "d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer": { - "capabilities": "bA:Lwl;" - }, - "mynameisjeff/simpletogglesprint/mixins/MixinEntityPlayerSP": { - "onLivingUpdate": "Lbew;m()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lavb;d()Z", - "Lnet/minecraft/client/entity/EntityPlayerSP;onGround:Z": "Lve;z:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity": { - "isRiding": "au()Z", - "isSneaking": "av()Z", - "isSprinting": "aw()Z" - } - }, - "searge": { - "mynameisjeff/simpletogglesprint/mixins/MixinMovementInputFromOptions": { - "updatePlayerMoveState": "Lnet/minecraft/util/MovementInputFromOptions;func_78898_a()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorGameSettings": { - "keyBindSneak": "field_74311_E:Lnet/minecraft/client/settings/KeyBinding;", - "keyBindSprint": "field_151444_V:Lnet/minecraft/client/settings/KeyBinding;" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorPlayerCapabilities": { - "isFlying": "field_75100_b:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/playerapi/MixinClientPlayerAPI": { - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorKeybinding": { - "keyCode": "field_74512_d:I", - "isKeyDown": "func_151470_d()Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntityPlayer": { - "capabilities": "field_71075_bZ:Lnet/minecraft/entity/player/PlayerCapabilities;" - }, - "mynameisjeff/simpletogglesprint/mixins/MixinEntityPlayerSP": { - "onLivingUpdate": "Lnet/minecraft/client/entity/EntityPlayerSP;func_70636_d()V", - "Lnet/minecraft/client/settings/KeyBinding;isKeyDown()Z": "Lnet/minecraft/client/settings/KeyBinding;func_151470_d()Z", - "Lnet/minecraft/client/entity/EntityPlayerSP;onGround:Z": "Lnet/minecraft/client/entity/EntityPlayerSP;field_70122_E:Z" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorFontRenderer": { - "getStringWidth": "func_78256_a(Ljava/lang/String;)I", - "FONT_HEIGHT": "field_78288_b:I", - "drawString": "func_175065_a(Ljava/lang/String;FFIZ)I" - }, - "mynameisjeff/simpletogglesprint/mixins/accessors/AccessorEntity": { - "isRiding": "func_70115_ae()Z", - "isSneaking": "func_70093_af()Z", - "isSprinting": "func_70051_ag()Z" - } - } - } -} \ No newline at end of file