From 1443850c2d4fc002a64764de6ab6ed410b7cb169 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 9 Sep 2015 20:18:00 -0500 Subject: [PATCH] option to detect left click --- build.gradle | 2 +- python2-scripts.zip | Bin 219392 -> 220602 bytes python2-scripts/mcpipy/symmetry.py | 1 + python3-scripts.zip | Bin 219210 -> 220420 bytes python3-scripts/mcpipy/symmetry.py | 1 + .../raspberryjammod/APIHandler.java | 5 ++++- .../raspberryjammod/MCEventHandler.java | 11 ++++++++++- .../raspberryjammod/RaspberryJamMod.java | 2 +- 8 files changed, 18 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 8aa3978..6a3362e 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "0.42" +version = "0.43" group= "mobi.omegacentauri.raspberryjammod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "RaspberryJamMod" diff --git a/python2-scripts.zip b/python2-scripts.zip index 5df2588f322144e763d88b30c1da510c4a8ce3b7..211cf8a3676f79c2be9b8a8c88c05a61dbb62a6a 100755 GIT binary patch delta 4736 zcmY*d1z1#Dw4ON!0f`YQX{0-cZlt>#Q9`-|RFD{v6t1-Hi-aNwN+>CzfPhjWI3OV1 zASo&WlJB7J-uLc&-<&mTowfeG_P_St=d8I^N#5{^oZMIsCLlqbe54=qrIIrf$&PMX zAm0ixGFIF<1zxRFxmR^h6QEG5q$m^xiV5Z8?C;?pBI4}mb0xr0*gwR={4@&o9o(=e z*50tV7EFpl6Rf}}6u}-p3N>h9kUXnNp(sLmoEK=zNHR3BE~1&qBreN6%A3h}L7;u$ z7R{T^Z5Os?r56q4zKa5^rWn;X5-&@)4{U@`?bx3HjbGn#-R^Ie9E;)C1b z-KpxhRDFeBGQ8NxjWdg#*($F5zXs;8lw!nOm)95WKQ$}<%XGf?P~5~V`vPIt=QtBL zseDd$*O z!$z($yS7R%84tQS?9&7)B=>Lmy)q6XV$2>5)UN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;hYt?Ojkpm2 zmQ&`-;#!OVlrN9QHL%JF*W~CepgZCDKm(LJ;k53#3!Kgv zS8RqI&d7(@dJmeMac_mT5HR`xAKvv`aL^xG3GnW~nZpl}6jZsOjYy)6fK#0qnpoa2 z)=q%qLqY%|XgJ>ATya1P9dO(gdz$NlL02p=;UQ?bVNa2dK++uv!$L2y4z9W3B-Zu* zL{`y|Em1!3a}q>DHpIEHpA(7K_>3{3CWr~1{Glbwj zaux}0c<7EeiJ9*(?2h|3>jwea9>@_D&J&P;{}5>;81}#&4g_e@aa!wFKoT9RKe7^D z&~Xn(bAT}eN0Gf6&NJ}78{+Vpfn3m{I0Ci|5(Pg`oQ8G@1h%qB655t$4N?e<<&g}i cdST@!2t@C;z$>^kVp;+2=~~30MhEKF8}}l diff --git a/python2-scripts/mcpipy/symmetry.py b/python2-scripts/mcpipy/symmetry.py index e321e2f..40cf461 100644 --- a/python2-scripts/mcpipy/symmetry.py +++ b/python2-scripts/mcpipy/symmetry.py @@ -157,6 +157,7 @@ def err(): # mc.conn.send("world.spawnParticle", "footstep", center, 0.0,0.0,0.0, 0, 1) mc.conn.send("events.setting","restrict_to_sword",0) + mc.conn.send("events.setting","detect_left_click",1) mc.postToChat("Will be drawing {} copies".format(1+len(transforms))) diff --git a/python3-scripts.zip b/python3-scripts.zip index 4d5e5f5fd1681c7690d6c31408ccf97e6dc1314e..5d8e4150d1025f0b5264ab0caf97a128125a6cc7 100644 GIT binary patch delta 11523 zcmai42{={V*T3f+Tp1%o=6RmynIa)GWonRl7Ag`qm6VD^o!8XFOC=44t`yCtP%>1e zMr6#}sL{9YIo(PB=lSZ{Jx^<|z1DC2_S$=|z0YmG!o9D7o7>e9Vc{T9{urE9&gB*- z8V<~PftIVi0ucrhXD#Bw^Eofju4WX$h}c=>JXu7UNCaA-<#`~j6tz4F7EP*NjVDVP zf(d^Rm1#m%_IU^sDsU*!gdQBOxUig)K75F?6&F@;YtuAeaNGPD&Z|cg2Jk+_g_?Xc zlrxkzb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Nk;wXsREdx{&_0#s_C_+s>kCVsQWx?ST837vSe`za}l>h($ diff --git a/python3-scripts/mcpipy/symmetry.py b/python3-scripts/mcpipy/symmetry.py index e321e2f..40cf461 100644 --- a/python3-scripts/mcpipy/symmetry.py +++ b/python3-scripts/mcpipy/symmetry.py @@ -157,6 +157,7 @@ def err(): # mc.conn.send("world.spawnParticle", "footstep", center, 0.0,0.0,0.0, 0, 1) mc.conn.send("events.setting","restrict_to_sword",0) + mc.conn.send("events.setting","detect_left_click",1) mc.postToChat("Will be drawing {} copies".format(1+len(transforms))) diff --git a/src/main/java/mobi/omegacentauri/raspberryjammod/APIHandler.java b/src/main/java/mobi/omegacentauri/raspberryjammod/APIHandler.java index 8a08baf..269988c 100755 --- a/src/main/java/mobi/omegacentauri/raspberryjammod/APIHandler.java +++ b/src/main/java/mobi/omegacentauri/raspberryjammod/APIHandler.java @@ -359,8 +359,11 @@ else if (setting.equals("pause_drawing")) // across connections // name_tags not supported } else if (cmd.equals(EVENTSSETTING)) { - if (scan.next().equals("restrict_to_sword")) // across connections + String setting = scan.next(); + if (setting.equals("restrict_to_sword")) // across connections eventHandler.setRestrictToSword(scan.nextInt() != 0); + else if (setting.equals("detect_left_click")) // across connections + eventHandler.setDetectLeftClick(scan.nextInt() != 0); } else if (cmd.startsWith("camera.")) { cameraCommand(cmd.substring(7), scan); diff --git a/src/main/java/mobi/omegacentauri/raspberryjammod/MCEventHandler.java b/src/main/java/mobi/omegacentauri/raspberryjammod/MCEventHandler.java index e095ebf..a09cf47 100755 --- a/src/main/java/mobi/omegacentauri/raspberryjammod/MCEventHandler.java +++ b/src/main/java/mobi/omegacentauri/raspberryjammod/MCEventHandler.java @@ -48,10 +48,15 @@ abstract public class MCEventHandler { private static final int MAX_HITS = 512; private volatile boolean stopChanges = false; private volatile boolean restrictToSword = true; + private volatile boolean detectLeftClick = false; protected volatile boolean pause = false; private ServerChatEvent chatEvents; protected static final int MAX_CHATS = 512; protected boolean doRemote; + + public MCEventHandler() { + detectLeftClick = RaspberryJamMod.leftClickToo; + } public void setStopChanges(boolean stopChanges) { this.stopChanges = stopChanges; @@ -77,7 +82,7 @@ public void onPlayerInteractEvent(PlayerInteractEvent event) { return; if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK || - (RaspberryJamMod.leftClickToo && event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK)) { + (detectLeftClick && event.action == PlayerInteractEvent.Action.LEFT_CLICK_BLOCK)) { if (! restrictToSword || holdingSword(event.entityPlayer)) { synchronized(hits) { if (hits.size() >= MAX_HITS) @@ -296,4 +301,8 @@ public String getDescription() { public void setPause(boolean b) { pause = b; } + + public void setDetectLeftClick(boolean b) { + detectLeftClick = b; + } } diff --git a/src/main/java/mobi/omegacentauri/raspberryjammod/RaspberryJamMod.java b/src/main/java/mobi/omegacentauri/raspberryjammod/RaspberryJamMod.java index 3159dfb..321d2c3 100644 --- a/src/main/java/mobi/omegacentauri/raspberryjammod/RaspberryJamMod.java +++ b/src/main/java/mobi/omegacentauri/raspberryjammod/RaspberryJamMod.java @@ -53,7 +53,7 @@ public class RaspberryJamMod { public static final String MODID = "raspberryjammod"; - public static final String VERSION = "0.42"; + public static final String VERSION = "0.43"; public static final String NAME = "Raspberry Jam Mod"; private APIServer fullAPIServer = null; private PythonExternalCommand pythonExternalCommand = null;