From 98fe8b2d1b13058590ce505624a72bbea9407d4d Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 2 Jun 2022 17:02:02 +0200 Subject: [PATCH] Improve code formatting --- .../com/yes/yes/behaviours/TestBehaviour.java | 45 ------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/main/java/com/yes/yes/behaviours/TestBehaviour.java diff --git a/src/main/java/com/yes/yes/behaviours/TestBehaviour.java b/src/main/java/com/yes/yes/behaviours/TestBehaviour.java deleted file mode 100644 index e6fb813..0000000 --- a/src/main/java/com/yes/yes/behaviours/TestBehaviour.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.yes.yes.behaviours; - -import com.yes.yes.utils.BlockContainer; -import com.yes.yes.utils.Component; -import com.yes.yes.utils.Entity; - -public class TestBehaviour extends Component { - - public TestBehaviour(Entity entity, BlockContainer blockContainer) { - super(entity, blockContainer); - } - - private void onNeighborPlaced(Entity entity) { - System.out.println(parent.getClass().getSimpleName() + " > \"" + entity.getClass().getSimpleName() + "\" got placed in the radius."); - } - - @Override - public void initialize() { - parent.addListener("placed", this, this::onNeighborPlaced); - } - - @Override - public void update() { - /*System.out.println("Updating " + parent.getClass().getSimpleName()); - for (int x = -1; x < 2; x++) { - for (int y = -1; y < 2; y++) { - try { - System.out.println("Offset: X:" + x + " Y:" + y); - Entity entity = blockContainer.getBlock(new Coordinate(x, y)); - - if (entity != null) { - System.out.println(entity.getClass().getSimpleName()); - } - } catch (IllegalAccessException ex) { - ex.printStackTrace(); - } - } - }*/ - } - - @Override - public void destroy() { - parent.removeListener("placed", this); - } -}