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

Method add

src/source/addable/addable/PlayerSpawnCss.java:41–48  ·  view source on GitHub ↗
(Position p, int material)

Source from the content-addressed store, hash-verified

39 }
40
41 @Override
42 public void add(Position p, int material) {
43 Position end = this.cuboidFinder.getBestXZ(p, material);
44 this.map.addPointEntitys(p, end, PlayerSpawnCss.SPACE, this.type);
45 end.move(0, 2, 0);
46 this.map.addSolidEntity(new Buyzone(this.map.createCuboid(p, end, 0), this.police));
47 this.map.markAsConverted(p, end);
48 }
49}

Callers 1

getInstancesMethod · 0.45

Calls 6

moveMethod · 0.95
getBestXZMethod · 0.65
addPointEntitysMethod · 0.65
addSolidEntityMethod · 0.65
createCuboidMethod · 0.65
markAsConvertedMethod · 0.65

Tested by

no test coverage detected