return boundingBoxes;
}
- private void addIfWithinRenderDistance(Set<BoundingBox> boundingBoxes, BoundingBox boundingBox)
- {
- if(isWithinRenderDistance(boundingBox.getMinBlockPos(), boundingBox.getMaxBlockPos()))
+ private void addIfWithinRenderDistance(Set<BoundingBox> boundingBoxes, BoundingBox boundingBox) {
+ if (isWithinRenderDistance(boundingBox.getMinBlockPos(), boundingBox.getMaxBlockPos()))
boundingBoxes.add(boundingBox);
}
}
BoundingBox getOrSetSpawnChunks(Supplier<BoundingBox> defaultSupplier) {
- if(spawnChunksBoundingBox == null) {
+ if (spawnChunksBoundingBox == null) {
spawnChunksBoundingBox = defaultSupplier.get();
}
return spawnChunksBoundingBox;
}
BoundingBox getOrSetLazySpawnChunks(Supplier<BoundingBox> defaultSupplier) {
- if(lazySpawnChunksBoundingBox == null) {
+ if (lazySpawnChunksBoundingBox == null) {
lazySpawnChunksBoundingBox = defaultSupplier.get();
}
return lazySpawnChunksBoundingBox;
}
BoundingBox getOrSetWorldSpawn(Supplier<BoundingBox> defaultSupplier) {
- if(worldSpawnBoundingBox == null) {
+ if (worldSpawnBoundingBox == null) {
worldSpawnBoundingBox = defaultSupplier.get();
}
return worldSpawnBoundingBox;
import java.awt.*;
-public class MobSpawnerRenderer extends Renderer<BoundingBoxMobSpawner>
-{
+public class MobSpawnerRenderer extends Renderer<BoundingBoxMobSpawner> {
@Override
public void render(BoundingBoxMobSpawner boundingBox) {
BlockPos center = boundingBox.getCenter();
.endVertex();
if (bb.minY != bb.maxY) {
-
worldRenderer.pos(bb.minX, bb.maxY, bb.minZ)
.color(colorR, colorG, colorB, alphaChannel)
.endVertex();
addStructures(ConfigManager.drawEndCities, StructureType.EndCity, structureMap);
addStructures(ConfigManager.drawPillagerOutposts, StructureType.PillagerOutpost, structureMap);
}
- if(ConfigManager.drawMobSpawners.getBoolean()) {
+ if (ConfigManager.drawMobSpawners.getBoolean()) {
Collection<TileEntity> tileEntities = chunk.getTileEntityMap().values();
for (TileEntity tileEntity : tileEntities) {
if (tileEntity instanceof TileEntityMobSpawner) {