public abstract class Dimension extends java.lang.Object implements IForgeDimension
IForgeDimension.SleepResult| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doesWaterVaporize |
protected boolean |
hasSkyLight |
protected float[] |
lightBrightnessTable |
static float[] |
MOON_PHASE_FACTORS |
protected boolean |
nether |
protected World |
world |
| Constructor and Description |
|---|
Dimension() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateInitialWeather, canDoLightning, canDoRainSnowIce, canMineBlock, canSleepAt, getActualHeight, getBiome, getCloudColor, getCurrentMoonPhaseFactor, getDimension, getHeight, getHorizon, getLightmapColors, getMovementFactor, getMusicType, getRespawnDimension, getSeed, getSkyColor, getSpawnPoint, getStarBrightness, getSunBrightness, getSunBrightnessFactor, getWorldTime, initCapabilities, isDaytime, isHighHumidity, setAllowedSpawnTypes, setSpawnPoint, setWorldTime, shouldClientCheckLighting, shouldMapSpin, updateWeatherpublic static final float[] MOON_PHASE_FACTORS
protected World world
protected boolean doesWaterVaporize
protected boolean nether
protected boolean hasSkyLight
protected final float[] lightBrightnessTable
public final void setWorld(World worldIn)
protected void generateLightBrightnessTable()
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[] getLightBrightnessTable()
public WorldBorder createWorldBorder()
public void onPlayerAdded(EntityPlayerMP player)
public void onPlayerRemoved(EntityPlayerMP player)
public void onWorldSave()
public void tick()
public boolean canDropChunk(int x,
int z)
protected abstract void init()
@Deprecated public abstract IChunkGenerator<?> createChunkGenerator()
@Nullable public abstract BlockPos findSpawn(int p_206921_1_, int p_206921_2_, boolean checkValid)
public abstract float calculateCelestialAngle(long worldTime,
float partialTicks)
public abstract boolean isSurfaceWorld()
public abstract Vec3d getFogColor(float p_76562_1_, float p_76562_2_)
public abstract boolean canRespawnHere()
public abstract boolean doesXZShowFog(int x,
int z)
public abstract DimensionType getType()
@Nullable public IRenderHandler getSkyRenderer()
getSkyRenderer in interface IForgeDimensionpublic void setSkyRenderer(IRenderHandler skyRenderer)
setSkyRenderer in interface IForgeDimension@Nullable public IRenderHandler getCloudRenderer()
getCloudRenderer in interface IForgeDimensionpublic void setCloudRenderer(IRenderHandler renderer)
setCloudRenderer in interface IForgeDimension@Nullable public IRenderHandler getWeatherRenderer()
getWeatherRenderer in interface IForgeDimensionpublic void setWeatherRenderer(IRenderHandler renderer)
setWeatherRenderer in interface IForgeDimensionpublic void resetRainAndThunder()
resetRainAndThunder in interface IForgeDimensionpublic World getWorld()
getWorld in interface IForgeDimension