public abstract class BlockPopulator
extends java.lang.Object
例如,在地狱中或生成的填满宝藏的地牢中生成萤石。
public abstract void populate(World world, java.util.Random random, Chunk source)
在指定区块四周的区块必须已经存在;就是说,指定方块的东南西北都必须有一个区块存在, 角落区块可以不存在。当准备好时填充器会记录那些区块所有的修改请求并执行修改。
译注:存在的意思可能是加载。
原文: Populates an area of blocks at or around the given chunk.
The chunks on each side of the specified chunk must already exist; that is, there must be one north, east, south and west of the specified chunk. The "corner" chunks may not exist, in which scenario the populator should record any changes required for those chunks and perform the changes when they are ready.
world
- 用于生成的世界random
- 使用的随机生成器source
- 用于生成的区块