get componenets with BlockVector

This commit is contained in:
Niklas 2020-06-27 16:48:13 +02:00
parent 9ce6ebe8e0
commit eba9493f63

View File

@ -13,7 +13,11 @@ public class MultiblockStructure {
this.structure = structure; 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); return structure.get(x).get(y).get(z);
} }