Biome

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.world.biome.Biome;

Methods

Return Type: boolean

script.zs
Biome.shouldFreeze(world as Level, pos as BlockPos) as boolean
ParameterType
Parameter
world
Type
Level
Parameter
pos
Type
BlockPos

Return Type: boolean

script.zs
Biome.shouldFreeze(world as Level, pos as BlockPos, mustBeAtEdge as boolean) as boolean
ParameterType
Parameter
world
Type
Level
Parameter
pos
Type
BlockPos
Parameter
mustBeAtEdge
Type
boolean

Return Type: boolean

script.zs
Biome.shouldSnow(world as Level, pos as BlockPos) as boolean
ParameterType
Parameter
world
Type
Level
Parameter
pos
Type
BlockPos

Properties

NameTypeHas GetterHas Setter
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Name
registryName
Type
ResourceLocation
Has Getter
true
Has Setter
false
Name
waterColor
Type
int
Has Getter
true
Has Setter
false
Name
waterFogColor
Type
int
Has Getter
true
Has Setter
false