public class TheEndDimension extends Dimension
| Modifier and Type | Field and Description |
|---|---|
private EnderDragonFight |
enderDragonFight |
static BlockPos |
SPAWN_POINT |
isNether, lightLevelToBrightness, MOON_PHASE_TO_SIZE, waterVaporizes, world| Constructor and Description |
|---|
TheEndDimension(World world,
DimensionType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPlayersSleep() |
ChunkGenerator<?> |
createChunkGenerator() |
float[] |
getBackgroundColor(float skyAngle,
float tickDelta) |
float |
getCloudHeight() |
EnderDragonFight |
getEnderDragonFight() |
BlockPos |
getForcedSpawnPoint() |
float |
getSkyAngle(long timeOfDay,
float tickDelta) |
BlockPos |
getSpawningBlockInChunk(ChunkPos chunkPos,
boolean checkMobSpawnValidity) |
BlockPos |
getTopSpawningBlockPosition(int x,
int z,
boolean checkMobSpawnValidity) |
DimensionType |
getType() |
boolean |
hasGround() |
boolean |
hasVisibleSky() |
boolean |
isFogThick(int x,
int z) |
Vec3d |
modifyFogColor(Vec3d vec3d,
float tickDelta)
Modify the fog color offered (usually by the biome).
|
void |
saveWorldData() |
void |
update() |
createWorldBorder, doesWaterVaporize, getBrightness, getHorizonShadingRatio, getMoonPhase, hasSkyLight, isNetherpublic static final BlockPos SPAWN_POINT
private final EnderDragonFight enderDragonFight
public TheEndDimension(World world, DimensionType type)
public ChunkGenerator<?> createChunkGenerator()
createChunkGenerator in class Dimensionpublic float getSkyAngle(long timeOfDay,
float tickDelta)
getSkyAngle in class Dimension@Environment(value=CLIENT) @Nullable public float[] getBackgroundColor(float skyAngle, float tickDelta)
getBackgroundColor in class Dimension@Environment(value=CLIENT) public Vec3d modifyFogColor(Vec3d vec3d, float tickDelta)
The overworld slightly whiteshifts and blueshifts this color; the nether doesn't touch it; the end significantly blackshifts this color.
modifyFogColor in class Dimension@Environment(value=CLIENT) public boolean hasGround()
public boolean canPlayersSleep()
canPlayersSleep in class Dimensionpublic boolean hasVisibleSky()
hasVisibleSky in class Dimension@Environment(value=CLIENT) public float getCloudHeight()
getCloudHeight in class Dimension@Nullable public BlockPos getSpawningBlockInChunk(ChunkPos chunkPos, boolean checkMobSpawnValidity)
getSpawningBlockInChunk in class Dimensionpublic BlockPos getForcedSpawnPoint()
getForcedSpawnPoint in class Dimension@Nullable public BlockPos getTopSpawningBlockPosition(int x, int z, boolean checkMobSpawnValidity)
getTopSpawningBlockPosition in class Dimension@Environment(value=CLIENT)
public boolean isFogThick(int x,
int z)
isFogThick in class Dimensionpublic DimensionType getType()
public void saveWorldData()
saveWorldData in class Dimension@Nullable public EnderDragonFight getEnderDragonFight()