Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.world.biome.Biome;

Name: shouldFreeze

Return Type: boolean

ZenScript
Copy
Biome.shouldFreeze(world as Level, pos as BlockPos) as boolean
ParameterType
Parameter
world
Type
Level
Parameter
pos
Type
BlockPos

Name: shouldFreeze

Return Type: boolean

ZenScript
Copy
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型

Name: shouldSnow

Return Type: boolean

ZenScript
Copy
Biome.shouldSnow(world as Level, pos as BlockPos) as boolean
ParameterType
Parameter
world
Type
Level
Parameter
pos
Type
BlockPos
名称TypeHas GetterHas Setter
名称
biomeCategory
Type
string
Has Getter
true
Has Setter
false
名称
commandString
Type
string
Has Getter
true
Has Setter
false
名称
doesRain
Type
boolean型
Has Getter
true
Has Setter
false
名称
doesSnow
Type
boolean型
Has Getter
true
Has Setter
false
名称
downfall
Type
float
Has Getter
true
Has Setter
false
名称
isHumid
Type
boolean型
Has Getter
true
Has Setter
false
名称
rainType
Type
string
Has Getter
true
Has Setter
false
名称
registryName
Type
ResourceLocation
Has Getter
true
Has Setter
false
名称
waterColor
Type
int
Has Getter
true
Has Setter
false
名称
waterFogColor
Type
int
Has Getter
true
Has Setter
false