From eba9493f631a81486a834eda72d1f9e2066642b1 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sat, 27 Jun 2020 16:48:13 +0200 Subject: [PATCH] get componenets with BlockVector --- .../java/org/kapelle/multiblock/MultiblockStructure.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/kapelle/multiblock/MultiblockStructure.java b/src/main/java/org/kapelle/multiblock/MultiblockStructure.java index 3502fb6..ed63fa9 100644 --- a/src/main/java/org/kapelle/multiblock/MultiblockStructure.java +++ b/src/main/java/org/kapelle/multiblock/MultiblockStructure.java @@ -13,7 +13,11 @@ public class MultiblockStructure { this.structure = structure; } - private BlockComponent getComponent(int x, int y, int z){ + public BlockComponent getComponent(BlockVector offset){ + return getComponent(offset.getBlockX(),offset.getBlockY(),offset.getBlockZ()); + } + + public BlockComponent getComponent(int x, int y, int z){ return structure.get(x).get(y).get(z); }