(Addable addable)
| 99 | } |
| 100 | |
| 101 | private void setAddable(Addable addable) { |
| 102 | addable.setAccess(this.cuboidFinder, this.map, this); |
| 103 | int[] materialsUsed = addable.getMaterialUsedFor(); |
| 104 | for (int material : materialsUsed) { |
| 105 | // add all material that use addable |
| 106 | this.materialToAddable[material] = addable; |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | public Addable getAddable(int material) { |
| 111 | if (material >= 0 && material <= this.materialToAddable.length) { |
no test coverage detected