From a83a3b2bc65ec8adbeb63be499472434612f9152 Mon Sep 17 00:00:00 2001 From: Hendrix-Shen Date: Sun, 21 Aug 2022 22:41:38 +0800 Subject: [PATCH] Format code --- .../compat/wurst/mixin/MixinLocalPlayer.java | 2 -- .../featureGlobalEventListener/MixinLevelRenderer.java | 1 - .../feature/featureOpenWaterHelper/MixinFishingHook.java | 9 +++------ 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main/java/top/hendrixshen/tweakmyclient/compat/wurst/mixin/MixinLocalPlayer.java b/src/main/java/top/hendrixshen/tweakmyclient/compat/wurst/mixin/MixinLocalPlayer.java index 86e68a92..39106a62 100644 --- a/src/main/java/top/hendrixshen/tweakmyclient/compat/wurst/mixin/MixinLocalPlayer.java +++ b/src/main/java/top/hendrixshen/tweakmyclient/compat/wurst/mixin/MixinLocalPlayer.java @@ -6,8 +6,6 @@ import net.minecraft.world.level.Level; 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.Redirect; import top.hendrixshen.magiclib.dependency.annotation.Dependencies; import top.hendrixshen.magiclib.dependency.annotation.Dependency; import top.hendrixshen.tweakmyclient.config.Configs; diff --git a/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureGlobalEventListener/MixinLevelRenderer.java b/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureGlobalEventListener/MixinLevelRenderer.java index 111e5eb9..ed6df5dd 100644 --- a/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureGlobalEventListener/MixinLevelRenderer.java +++ b/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureGlobalEventListener/MixinLevelRenderer.java @@ -3,7 +3,6 @@ import net.minecraft.client.player.LocalPlayer; import net.minecraft.client.renderer.LevelRenderer; import net.minecraft.core.BlockPos; -import net.minecraft.network.chat.contents.LiteralContents; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; diff --git a/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureOpenWaterHelper/MixinFishingHook.java b/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureOpenWaterHelper/MixinFishingHook.java index 40b28639..e8f718c2 100644 --- a/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureOpenWaterHelper/MixinFishingHook.java +++ b/src/main/java/top/hendrixshen/tweakmyclient/mixin/feature/featureOpenWaterHelper/MixinFishingHook.java @@ -12,7 +12,7 @@ import top.hendrixshen.tweakmyclient.fakeInterface.IFishingHookEntity; @Mixin(FishingHook.class) -public class MixinFishingHook implements IFishingHookEntity { +public abstract class MixinFishingHook implements IFishingHookEntity { //#else //$$ @Mixin(Minecraft.class) //$$ public class MixinFishingHook { @@ -20,12 +20,9 @@ public class MixinFishingHook implements IFishingHookEntity { //#if MC >= 11600 @Override public boolean checkOpenWaterAround(BlockPos pos) { - return calculateOpenWater(pos); + return this.calculateOpenWater(pos); } - @Shadow - private boolean calculateOpenWater(BlockPos pos) { - return false; - } + @Shadow protected abstract boolean calculateOpenWater(BlockPos blockPos); //#endif }