这个类由mod-id为crafttweaker的模组添加. 因此,如果要使用此功能,则需要安装此mod。

如果遇到任何问题(例如强制转换数组),则可能需要导入软件包,因此,最好的方式就是导入包支持。

ZenScript
Copy
crafttweaker.api.world.MCBiome

Returns List<crafttweaker.api.world.MCBiomeSpawnEntry>

ZenScript
Copy
myMCBiome.getSpawns(classification as crafttweaker.api.entity.MCEntityClassification);
参数类型描述
参数
classification #类别
类型
crafttweaker.api.entity.MCEntityClassification
描述
No description provided

返回字符串[String]

ZenScript
Copy
myMCBiome.getTempCategory();

Returns float

ZenScript
Copy
myMCBiome.getTemperature(pos as crafttweaker.api.util.BlockPos);
参数类型描述
参数
类型
crafttweaker.api.util.BlockPos
描述
No description provided
名称类型可获得可设置
名称
category
类型
字符串[string]
可获得
true
可设置
false
名称
defaultTemperature
类型
float
可获得
true
可设置
false
名称
depth
类型
float
可获得
true
可设置
false
名称
doesRain
类型
布尔值
可获得
true
可设置
false
名称
doesSnow
类型
布尔值
可获得
true
可设置
false
名称
downfall
类型
float
可获得
true
可设置
false
名称
isHighHumidity
类型
布尔值
可获得
true
可设置
false
名称
isMutation
类型
布尔值
可获得
true
可设置
false
名称
isTempCold
类型
布尔值
可获得
true
可设置
false
名称
isTempMedium
类型
布尔值
可获得
true
可设置
false
名称
isTempOcean
类型
布尔值
可获得
true
可设置
false
名称
isTempWarm
类型
布尔值
可获得
true
可设置
false
名称
parent
类型
字符串[string]
可获得
true
可设置
false
名称
rainType
类型
字符串[string]
可获得
true
可设置
false
名称
scale
类型
float
可获得
true
可设置
false
名称
spawningChange
类型
float
可获得
true
可设置
false
名称
translationKey
类型
字符串[string]
可获得
true
可设置
false
名称
waterColor
类型
int
可获得
true
可设置
false
名称
waterFogColor
类型
int
可获得
true
可设置
false