From 28fb3b730176c6fda7a1630d8cfb2380e11365e5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 1 May 2021 21:18:43 +0200 Subject: [PATCH] Add DepthCounterCommand --- .../features/testblock/depthcounter/DepthCounter.java | 6 ------ .../testblock/depthcounter/DepthCounterCommand.java | 5 ++++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounter.java b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounter.java index ccf2a62d..03cd8df0 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounter.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounter.java @@ -147,10 +147,4 @@ public class DepthCounter { return result.toString(); } - - public void compute(Vector v1, Vector v2, DoubleBinaryOperator function) { - v1.setX(function.applyAsDouble(v1.getX(), v2.getX())); - v1.setY(function.applyAsDouble(v1.getY(), v2.getY())); - v1.setZ(function.applyAsDouble(v1.getZ(), v2.getZ())); - } } \ No newline at end of file diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterCommand.java index d1d9abd7..6c37e317 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/testblock/depthcounter/DepthCounterCommand.java @@ -36,7 +36,10 @@ public class DepthCounterCommand extends SWCommand { @Register public void genericHelp(Player p, String... args) { - //TODO + p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "depthcounter enable" + ColorConfig.OTHER + " - " + ColorConfig.BASE + "Aktiviere den Tiefenzähler"); + p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "depthcounter disable" + ColorConfig.OTHER + " - " + ColorConfig.BASE + "Deaktiviere den Tiefenzähler"); + p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "depthcounter info" + ColorConfig.OTHER + " - " + ColorConfig.BASE + "Zähle aktive Zählmodi auf"); + p.sendMessage(ColorConfig.OTHER + "/" + ColorConfig.HIGHLIGHT + "depthcounter toggle " + ColorConfig.OTHER + "<" + ColorConfig.BASE + "CountMode" + ColorConfig.OTHER + ">" + ColorConfig.OTHER + " - " + ColorConfig.BASE + "Stelle einzelne Zählmodi ein"); } @Register("toggle")