public abstract class Dimension extends java.lang.Object implements IForgeDimension
IForgeDimension.SleepResult
Modifier and Type | Field and Description |
---|---|
private IRenderHandler |
cloudRenderer |
private float[] |
colorsSunriseSunset |
protected boolean |
doesWaterVaporize |
protected float[] |
lightBrightnessTable |
static float[] |
MOON_PHASE_FACTORS |
protected boolean |
nether |
private IRenderHandler |
skyRenderer |
private DimensionType |
type |
private IRenderHandler |
weatherRenderer |
protected World |
world |
Constructor and Description |
---|
Dimension(World p_i225788_1_,
DimensionType p_i225788_2_,
float p_i225788_3_) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
calculateInitialWeather, canDoLightning, canDoRainSnowIce, canMineBlock, canSleepAt, getActualHeight, getCurrentMoonPhaseFactor, getDimension, getHeight, getLightmapColors, getMovementFactor, getMusicType, getRespawnDimension, getSeaLevel, getSeed, getSpawnPoint, getWorldTime, initCapabilities, isDaytime, isHighHumidity, setAllowedSpawnTypes, setSpawnPoint, setWorldTime, shouldMapSpin, updateWeather
public static final float[] MOON_PHASE_FACTORS
protected final World world
private final DimensionType type
protected boolean doesWaterVaporize
protected boolean nether
protected final float[] lightBrightnessTable
private final float[] colorsSunriseSunset
private IRenderHandler skyRenderer
private IRenderHandler cloudRenderer
private IRenderHandler weatherRenderer
public Dimension(World p_i225788_1_, DimensionType p_i225788_2_, float p_i225788_3_)
public int getMoonPhase(long worldTime)
@Nullable public float[] calcSunriseSunsetColors(float celestialAngle, float partialTicks)
public float getCloudHeight()
public boolean isSkyColored()
@Nullable public BlockPos getSpawnCoordinate()
public double getVoidFogYFactor()
public boolean doesWaterVaporize()
public boolean hasSkyLight()
public boolean isNether()
public float getLightBrightness(int p_227174_1_)
public WorldBorder createWorldBorder()
public void onWorldSave()
public void tick()
@Deprecated public abstract ChunkGenerator<?> createChunkGenerator()
@Nullable public abstract BlockPos findSpawn(int posX, int posZ, boolean checkValid)
public abstract float calculateCelestialAngle(long worldTime, float partialTicks)
public abstract boolean isSurfaceWorld()
public abstract Vec3d getFogColor(float celestialAngle, float partialTicks)
public abstract boolean canRespawnHere()
public abstract boolean doesXZShowFog(int x, int z)
public DimensionType getType()
@Nullable public IRenderHandler getSkyRenderer()
getSkyRenderer
in interface IForgeDimension
public void setSkyRenderer(IRenderHandler skyRenderer)
setSkyRenderer
in interface IForgeDimension
@Nullable public IRenderHandler getCloudRenderer()
getCloudRenderer
in interface IForgeDimension
public void setCloudRenderer(IRenderHandler renderer)
setCloudRenderer
in interface IForgeDimension
@Nullable public IRenderHandler getWeatherRenderer()
getWeatherRenderer
in interface IForgeDimension
public void setWeatherRenderer(IRenderHandler renderer)
setWeatherRenderer
in interface IForgeDimension
public void resetRainAndThunder()
resetRainAndThunder
in interface IForgeDimension
public World getWorld()
getWorld
in interface IForgeDimension