The World Provider interface is used to get even more information out of an IWorld object.

패키지 임포트하기

Link to 패키지-임포트하기

It might be required for you to import the package if you encounter any issues, so better be safe than sorry and add the import.
import crafttweaker.world.IWorldProvider;

Create a worldProvider

Link to create-a-worldprovider

Normally, you can just get the worldProvider from an IWorld object or some functions, though if yo need to create one yourself, here's how you do it:
Note that this method should only be called inside functions that are meant to be run inside minecraft, not during the loading circle.

ZenScript
Copy
crafttweaker.world.IWorldProvider.getFromID(int id);

ZenMethods without parameters and ZenGetters

Link to zenmethods-without-parameters-and-zengetters

ZenGetterZenMethod반환 타입
ZenGetter
actualHeight
ZenMethod
getActualHeight()
반환 타입
int
ZenGetter
actualGroundLevel
ZenMethod
getAverageGroundLevel()
반환 타입
int
ZenGetter
cloudHeight
ZenMethod
getCloudHeight()
반환 타입
float
ZenGetter
currentMoonPhaseFactor
ZenMethod
getCurrentMoonPhaseFactor()
반환 타입
float
ZenGetter
dimensionID
ZenMethod
getDimensionID()
반환 타입
int
ZenGetter
height
ZenMethod
getHeight()
반환 타입
int
ZenGetter
horizon
ZenMethod
getHorizon()
반환 타입
double
ZenGetter
lightBrightnesTable
ZenMethod
getLightBrightnesTable()
반환 타입
float[]
ZenGetter
movementFactor
ZenMethod
getMovementFactor()
반환 타입
double
ZenGetter
randomizedSpawnPoint
ZenMethod
getRandomizedSpawnPoint()
반환 타입
IBlockPos
ZenGetter
saveFolder
ZenMethod
getSaveFolder()
반환 타입
string
ZenGetter
seed
ZenMethod
getSeed()
반환 타입
long
ZenGetter
spawnCoordinate
ZenMethod
getSpawnCoordinate()
반환 타입
IBlockPos
ZenGetter
spawnPoint
ZenMethod
getSpawnPoint()
반환 타입
IBlockPos
ZenGetter
voidFogYFactor
ZenMethod
getVoidFogYFactor()
반환 타입
double
ZenGetter
worldTime
ZenMethod
getWorldTime()
반환 타입
long
ZenGetter
canRespawnHere
ZenMethod
canRespawnHere()
반환 타입
bool
ZenGetter
waterVaporize
ZenMethod
doesWaterVaporize()
반환 타입
bool
ZenGetter
skylight
ZenMethod
hasSkyLight()
반환 타입
bool
ZenGetter
daytime
ZenMethod
isDaytime()
반환 타입
bool
ZenGetter
nether
ZenMethod
isNether()
반환 타입
bool
ZenGetter
skyColored
ZenMethod
isSkyColored()
반환 타입
bool
ZenGetter
surfaceWorld
ZenMethod
isSurfaceWorld()
반환 타입
bool

ZenMethods with parameters

Link to zenmethods-with-parameters

get Biome at a certain Position

Link to get-biome-at-a-certain-position

Use either an IBlockPos object.
Returns an IBiome Object.

ZenScript
Copy
worldProvObj.getBiome(IBlockPos position);

get MoonPhase for a specific time

Link to get-moonphase-for-a-specific-time

Use a long.
Returns an int.

ZenScript
Copy
worldProvObj.getMoonPhase(long time);

get Respawn Dimension for a specific player

Link to get-respawn-dimension-for-a-specific-player

Use an IPlayer object.
Returns a new IWorldProvider object.

ZenScript
Copy
worldProvObj.getRespawnDimension(IPlayer player);

get Brightnes (factor) at a specific

Link to get-brightnes-factor-at-a-specific

Use a float.
Returns a float.

ZenScript
Copy
worldProvObj.getStarBrightness(float something);
worldProvObj.getSunBrightness(float something);
worldProvObj.getSunBrightnessFactor(float something);

Check if a block has a high humidity

Link to check-if-a-block-has-a-high-humidity

Use an IBlockPos object.
Returns a boolean.

ZenScript
Copy
worldProvObj.isBlockHighHumidity(IBlockPos pos);