public abstract class Dimension extends Object
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
lightLevelToBrightness |
static float[] |
MOON_PHASE_TO_SIZE |
private DimensionType |
type |
protected World |
world |
| Constructor and Description |
|---|
Dimension(World world,
DimensionType type,
float float2) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canPlayersSleep() |
WorldBorder |
createWorldBorder() |
float |
getBrightness(int lightLevel) |
BlockPos |
getForcedSpawnPoint() |
int |
getMoonPhase(long time) |
abstract float |
getSkyAngle(long timeOfDay,
float tickDelta) |
abstract BlockPos |
getSpawningBlockInChunk(long long2,
ChunkPos chunkPos,
boolean bool) |
abstract BlockPos |
getTopSpawningBlockPosition(long long2,
int int2,
int int3,
boolean bool) |
abstract DimensionType |
getType() |
abstract boolean |
hasVisibleSky() |
void |
saveWorldData(class_5268 class_5268) |
void |
update() |
public static final float[] MOON_PHASE_TO_SIZE
protected final World world
private final DimensionType type
protected final float[] lightLevelToBrightness
public Dimension(World world, DimensionType type, float float2)
public int getMoonPhase(long time)
public float getBrightness(int lightLevel)
public abstract float getSkyAngle(long timeOfDay,
float tickDelta)
public WorldBorder createWorldBorder()
public abstract DimensionType getType()
public void saveWorldData(class_5268 class_5268)
public void update()
@Nullable public abstract BlockPos getSpawningBlockInChunk(long long2, ChunkPos chunkPos, boolean bool)
@Nullable public abstract BlockPos getTopSpawningBlockPosition(long long2, int int2, int int3, boolean bool)
public abstract boolean hasVisibleSky()
public abstract boolean canPlayersSleep()