Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Vector3[] getMultiBlockVectors() {
- Set<Vector3> vectors = new HashSet<>();
- ForgeDirection dir = getDirection();
- int xMulti = dir.offsetX != 0 ? 0 : 1;
- int yMulti = dir.offsetY != 0 ? 0 : 1;
- int zMulti = dir.offsetZ != 0 ? 0 : 1;
- for (int x = -multiBlockRadius; x <= multiBlockRadius; x++) {
- for (int y = -multiBlockRadius; y <= multiBlockRadius; y++) {
- for (int z = -multiBlockRadius; z <= multiBlockRadius; z++) {
- Quantum.getLogger().info("Found turbine: (" + (x * xMulti) + ", " + (y * yMulti) + ", " + (z * zMulti));
- vectors.add(new Vector3(x * xMulti, y * yMulti, z * zMulti));
- }
- }
- }
- return vectors.toArray(new Vector3[0]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement