public abstract class Dimension extends java.lang.Object implements IForgeDimension
IForgeDimension.SleepResult| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
doesWaterVaporize |
protected float[] |
lightBrightnessTable |
static float[] |
MOON_PHASE_FACTORS |
protected boolean |
nether |
protected World |
world |
| コンストラクタと説明 |
|---|
Dimension(World p_i225788_1_,
DimensionType p_i225788_2_,
float p_i225788_3_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
float[] |
calcSunriseSunsetColors(float celestialAngle,
float partialTicks)
Returns array with sunrise/sunset colors
|
abstract float |
calculateCelestialAngle(long worldTime,
float partialTicks)
Calculates the angle of sun and moon in the sky relative to a specified time (usually worldTime)
|
abstract boolean |
canRespawnHere()
True if the player can respawn in this dimension (true = overworld, false = nether).
|
abstract ChunkGenerator<?> |
createChunkGenerator()
非推奨です。
|
WorldBorder |
createWorldBorder() |
boolean |
doesWaterVaporize() |
abstract boolean |
doesXZShowFog(int x,
int z)
Returns true if the given X,Z coordinate should show environmental fog.
|
abstract BlockPos |
findSpawn(ChunkPos chunkPosIn,
boolean checkValid) |
abstract BlockPos |
findSpawn(int posX,
int posZ,
boolean checkValid) |
float |
getCloudHeight()
the y level at which clouds are rendered.
|
IRenderHandler |
getCloudRenderer() |
abstract Vec3d |
getFogColor(float celestialAngle,
float partialTicks)
Return Vec3D with biome specific fog color
|
float |
getLightBrightness(int p_227174_1_) |
int |
getMoonPhase(long worldTime) |
IRenderHandler |
getSkyRenderer() |
BlockPos |
getSpawnCoordinate() |
DimensionType |
getType() |
double |
getVoidFogYFactor()
Returns a double value representing the Y value relative to the top of the map at which void fog is at its
maximum.
|
IRenderHandler |
getWeatherRenderer() |
World |
getWorld() |
boolean |
hasSkyLight() |
boolean |
isNether() |
boolean |
isSkyColored() |
abstract boolean |
isSurfaceWorld()
Returns 'true' if in the "main surface world", but 'false' if in the Nether or End dimensions.
|
void |
onWorldSave()
Called when the world is performing a save.
|
void |
resetRainAndThunder() |
void |
setCloudRenderer(IRenderHandler renderer) |
void |
setSkyRenderer(IRenderHandler skyRenderer) |
void |
setWeatherRenderer(IRenderHandler renderer) |
void |
tick()
Called when the world is updating entities.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateInitialWeather, canDoLightning, canDoRainSnowIce, canMineBlock, canSleepAt, getActualHeight, getCurrentMoonPhaseFactor, getDimension, getHeight, getLightmapColors, getMovementFactor, getMusicType, getRespawnDimension, getSeaLevel, getSeed, getSpawnPoint, getWorldTime, initCapabilities, isDaytime, isHighHumidity, setAllowedSpawnTypes, setSpawnPoint, setWorldTime, shouldMapSpin, updateWeatherpublic static final float[] MOON_PHASE_FACTORS
protected final World world
protected boolean doesWaterVaporize
protected boolean nether
protected final float[] lightBrightnessTable
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 インタフェース内 IForgeDimensionpublic void setSkyRenderer(IRenderHandler skyRenderer)
setSkyRenderer インタフェース内 IForgeDimension@Nullable public IRenderHandler getCloudRenderer()
getCloudRenderer インタフェース内 IForgeDimensionpublic void setCloudRenderer(IRenderHandler renderer)
setCloudRenderer インタフェース内 IForgeDimension@Nullable public IRenderHandler getWeatherRenderer()
getWeatherRenderer インタフェース内 IForgeDimensionpublic void setWeatherRenderer(IRenderHandler renderer)
setWeatherRenderer インタフェース内 IForgeDimensionpublic void resetRainAndThunder()
resetRainAndThunder インタフェース内 IForgeDimensionpublic World getWorld()
getWorld インタフェース内 IForgeDimension