This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
forked from Strangerrrs/Raven-bS
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
937 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
package keystrokesmod.event; | ||
|
||
import net.minecraftforge.fml.common.eventhandler.Cancelable; | ||
import net.minecraftforge.fml.common.eventhandler.Event; | ||
|
||
@Cancelable | ||
public class PreUpdateEvent extends Event { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/keystrokesmod/mixins/impl/gui/MixinGuiChat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package keystrokesmod.mixins.impl.gui; | ||
|
||
|
||
import keystrokesmod.utility.interact.moveable.MoveableManager; | ||
import net.minecraft.client.gui.GuiChat; | ||
import net.minecraft.client.gui.GuiScreen; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
@Mixin(GuiChat.class) | ||
public abstract class MixinGuiChat extends GuiScreen { | ||
|
||
@Override | ||
protected void mouseClickMove(int x, int y, int p_mouseClickMove_3_, long p_mouseClickMove_4_) { | ||
super.mouseClickMove(x, y, p_mouseClickMove_3_, p_mouseClickMove_4_); | ||
if (p_mouseClickMove_3_ == 0) | ||
MoveableManager.onMouseDrag(x, y); | ||
} | ||
|
||
@Override | ||
protected void mouseReleased(int x, int y, int p_mouseReleased_3_) { | ||
super.mouseReleased(x, y, p_mouseReleased_3_); | ||
MoveableManager.onMouseRelease(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.