mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-06-26 06:24:57 +02:00
* Implement PackedIntArrayAccess * First working render with BlueNBT * Progress converting chunkloaders * Core rewrite done * WIP - Restructuring configs and world-map mapping * WIP - Compiling and starting without exceptions :) * Fix cave detection * Ensure configuration backwards compatibility (resolve dimension from configured world if missing) * Implement support for 1.16+ chunks * Implement support for 1.15+ chunks * Implement support for 1.13+ chunks and some fixes * Also find worlds based on their id again in BlueMapAPI * Improve autogenerated config names * Implement equals for all ServerWorld implementations * Get rid of var usage
83 lines
1.6 KiB
Java
83 lines
1.6 KiB
Java
package de.bluecolored.bluemap.core.world;
|
|
|
|
import lombok.AccessLevel;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.experimental.Accessors;
|
|
|
|
public interface DimensionType {
|
|
|
|
DimensionType OVERWORLD = new Builtin(
|
|
true,
|
|
true,
|
|
false,
|
|
0f,
|
|
-64,
|
|
384,
|
|
null,
|
|
1.0
|
|
);
|
|
DimensionType OVERWORLD_CAVES = new Builtin(
|
|
true,
|
|
true,
|
|
true,
|
|
0,
|
|
-64,
|
|
384,
|
|
null,
|
|
1.0
|
|
);
|
|
DimensionType NETHER = new Builtin(
|
|
false,
|
|
false,
|
|
true,
|
|
0.1f,
|
|
0,
|
|
256,
|
|
6000L,
|
|
8.0
|
|
);
|
|
DimensionType END = new Builtin(
|
|
false,
|
|
false,
|
|
false,
|
|
0,
|
|
0,
|
|
256,
|
|
18000L,
|
|
1.0
|
|
);
|
|
|
|
boolean isNatural();
|
|
|
|
boolean hasSkylight();
|
|
|
|
boolean hasCeiling();
|
|
|
|
float getAmbientLight();
|
|
|
|
int getMinY();
|
|
|
|
int getHeight();
|
|
|
|
Long getFixedTime();
|
|
|
|
double getCoordinateScale();
|
|
|
|
@Getter
|
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
|
class Builtin implements DimensionType {
|
|
|
|
private final boolean natural;
|
|
@Accessors(fluent = true) private final boolean hasSkylight;
|
|
@Accessors(fluent = true) private final boolean hasCeiling;
|
|
private final float ambientLight;
|
|
private final int minY;
|
|
private final int height;
|
|
private final Long fixedTime;
|
|
private final double coordinateScale;
|
|
|
|
}
|
|
|
|
}
|