Biome

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

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

Members

Getter
script.zs
// Biome.commandString as string
myBiome.commandString

Return Type: string

Getter
script.zs
// Biome.registryName as ResourceLocation
myBiome.registryName

Return Type: ResourceLocation

shouldFreeze(world as Level, pos as BlockPos) as bool
script.zs
// Biome.shouldFreeze(world as Level, pos as BlockPos) as bool;
myBiome.shouldFreeze(myLevel, myBlockPos);

Parameters:

world Type: Level
pos Type: BlockPos

Return Type: bool

shouldFreeze(world as Level, pos as BlockPos, mustBeAtEdge as bool) as bool
script.zs
// Biome.shouldFreeze(world as Level, pos as BlockPos, mustBeAtEdge as bool) as bool;
myBiome.shouldFreeze(myLevel, myBlockPos, myBool);

Parameters:

world Type: Level
pos Type: BlockPos
mustBeAtEdge Type: bool

Return Type: bool

shouldSnow(world as Level, pos as BlockPos) as bool
script.zs
// Biome.shouldSnow(world as Level, pos as BlockPos) as bool;
myBiome.shouldSnow(myLevel, myBlockPos);

Parameters:

world Type: Level
pos Type: BlockPos

Return Type: bool

Getter
script.zs
// Biome.waterColor as int
myBiome.waterColor

Return Type: int

Getter
script.zs
// Biome.waterFogColor as int
myBiome.waterFogColor

Return Type: int