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

Method add

src/source/addable/addable/tf2/PlayerSpawnTf2.java:45–52  ·  view source on GitHub ↗
(Position p, int material)

Source from the content-addressed store, hash-verified

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

Callers 1

getInstancesMethod · 0.45

Calls 6

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

Tested by

no test coverage detected