mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
54 lines
1.6 KiB
Diff
54 lines
1.6 KiB
Diff
--- a/net/minecraft/client/MouseHelper.java
|
|
+++ b/net/minecraft/client/MouseHelper.java
|
|
@@ -71,6 +71,7 @@
|
|
this.field_198042_g = -1;
|
|
}
|
|
|
|
+ if (net.minecraftforge.client.ForgeHooksClient.onRawMouseClicked(p_198023_3_, p_198023_4_, p_198023_5_)) return;
|
|
boolean[] aboolean = new boolean[]{false};
|
|
if (this.field_198036_a.field_213279_p == null) {
|
|
if (this.field_198036_a.field_71462_r == null) {
|
|
@@ -110,7 +111,7 @@
|
|
}
|
|
}
|
|
}
|
|
-
|
|
+ net.minecraftforge.client.ForgeHooksClient.fireMouseInput(p_198023_3_, p_198023_4_, p_198023_5_);
|
|
}
|
|
}
|
|
|
|
@@ -134,6 +135,7 @@
|
|
}
|
|
|
|
this.field_200542_o -= (double)f1;
|
|
+ if (net.minecraftforge.client.ForgeHooksClient.onMouseScroll(this, d0)) return;
|
|
if (this.field_198036_a.field_71439_g.func_175149_v()) {
|
|
if (this.field_198036_a.field_71456_v.func_175187_g().func_175262_a()) {
|
|
this.field_198036_a.field_71456_v.func_175187_g().func_195621_a((double)(-f1));
|
|
@@ -267,6 +269,10 @@
|
|
return this.field_198039_d;
|
|
}
|
|
|
|
+ public boolean isMiddleDown() {
|
|
+ return this.field_198038_c;
|
|
+ }
|
|
+
|
|
public double func_198024_e() {
|
|
return this.field_198040_e;
|
|
}
|
|
@@ -275,6 +281,14 @@
|
|
return this.field_198041_f;
|
|
}
|
|
|
|
+ public double getXVelocity() {
|
|
+ return this.field_198048_m;
|
|
+ }
|
|
+
|
|
+ public double getYVelocity() {
|
|
+ return this.field_198049_n;
|
|
+ }
|
|
+
|
|
public void func_198021_g() {
|
|
this.field_198043_h = true;
|
|
}
|