WorldGenDecorator

基本信息

属性 值
路径 mrtjp.core.world.WorldGenDecorator
类型 class(extends TWorldGenerator)
源码 src/main/scala/mrtjp/core/world/WorldGenDecorator.scala

生成装饰器:在其它生成器产出的地形上做后处理(如表面铺方块、植被装饰)。

关键点

TWorldGenerator.canSetBlock(w, x, y, z, material: Set[(Block, Int)]) 提供了 「只替换特定方块 / metadata」的判定,material 为空集时视为不限制。

相关条目