get componenets with BlockVector
This commit is contained in:
parent
9ce6ebe8e0
commit
eba9493f63
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user