MCPcopy Create free account
hub / github.com/Garten/sourcecraft / setAddables

Method setAddables

src/source/addable/AddableManager.java:86–99  ·  view source on GitHub ↗
(Stack<Addable> addables)

Source from the content-addressed store, hash-verified

84 }
85
86 private void setAddables(Stack<Addable> addables) {
87 Arrays.fill(this.materialToAddable, DEFAULT_ADDABLE);
88 for (Addable addable : this.materialToAddable) {
89 addable.setAccess(this.cuboidFinder, this.map, this);
90 }
91 this.materialToAddable[Material.AIR] = null;
92 this.materialToAddable[Material.CAVE_AIR] = null;
93
94 this.setAddable(new Nothing());
95
96 for (Addable addable : addables) {
97 this.setAddable(addable);
98 }
99 }
100
101 private void setAddable(Addable addable) {
102 addable.setAccess(this.cuboidFinder, this.map, this);

Callers 1

AddableManagerMethod · 0.95

Calls 2

setAddableMethod · 0.95
setAccessMethod · 0.45

Tested by

no test coverage detected