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

Method AddableManager

src/source/addable/AddableManager.java:57–63  ·  view source on GitHub ↗
(DefaultMinecraftMapConverter newMine, SourceGame game, String[] addablesString)

Source from the content-addressed store, hash-verified

55 private Addable[] materialToAddable;
56
57 public AddableManager(DefaultMinecraftMapConverter newMine, SourceGame game, String[] addablesString) {
58 this.map = newMine;
59 this.cuboidFinder = new ArrayCuboidFinder(newMine);
60 this.materialToAddable = new Addable[Material.__LENGTH];
61
62 this.setAddables(this.loadAddables(addablesString));
63 }
64
65 private Stack<Addable> loadAddables(String[] addablesString) {
66 Addable[] addablesPool = { new Block(), new Cactus(), new CssLamp(), new Fence(), new Fire(), new Liquid(), new Pane(), new Slab(), new SnowBlock(),

Callers

nothing calls this directly

Calls 2

setAddablesMethod · 0.95
loadAddablesMethod · 0.95

Tested by

no test coverage detected