Advertisement
Guest User

Untitled

a guest
Aug 1st, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @Override
  2. public Vector3[] getMultiBlockVectors() {
  3. Set<Vector3> vectors = new HashSet<>();
  4.  
  5. ForgeDirection dir = getDirection();
  6. int xMulti = dir.offsetX != 0 ? 0 : 1;
  7. int yMulti = dir.offsetY != 0 ? 0 : 1;
  8. int zMulti = dir.offsetZ != 0 ? 0 : 1;
  9.  
  10. for (int x = -multiBlockRadius; x <= multiBlockRadius; x++) {
  11. for (int y = -multiBlockRadius; y <= multiBlockRadius; y++) {
  12. for (int z = -multiBlockRadius; z <= multiBlockRadius; z++) {
  13. Quantum.getLogger().info("Found turbine: (" + (x * xMulti) + ", " + (y * yMulti) + ", " + (z * zMulti));
  14.  
  15. vectors.add(new Vector3(x * xMulti, y * yMulti, z * zMulti));
  16. }
  17. }
  18. }
  19.  
  20. return vectors.toArray(new Vector3[0]);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement