| 构造器和说明 |
|---|
BlockIterator(LivingEntity entity)
创建BlockIterator.
|
BlockIterator(LivingEntity entity,
int maxDistance)
BlockIterator的构造函数.
|
BlockIterator(Location loc)
BlockIterator的构造函数.
|
BlockIterator(Location loc,
double yOffset)
BlockIterator的构造函数.
|
BlockIterator(Location loc,
double yOffset,
int maxDistance)
BlockIterator的构造函数.
|
BlockIterator(World world,
Vector start,
Vector direction,
double yOffset,
int maxDistance)
BlockIterator的构造函数.
|
public BlockIterator(World world, Vector start, Vector direction, double yOffset, int maxDistance)
原文:Constructs the BlockIterator
world - 使用此追踪的世界start - 追踪的初位置向量direction - 追踪的方向向量yOffset - 垂直偏移量,追踪从初向量开始垂直偏移这个值的范围maxDistance - 这是在方块中追踪的最大距离,
设置此值在140以上可能导致未加载区块(unloaded chunks)的问题,值0表示无限制public BlockIterator(Location loc, double yOffset, int maxDistance)
原文:Constructs the BlockIterator
loc - 射线追踪的起始位置yOffset - 垂直偏移量,追踪从初向量开始垂直偏移这个值的范围maxDistance - 这是在方块中追踪的最大距离,
设置此值在140以上可能导致未加载区块(unloaded chunks)的问题,值0表示无限制public BlockIterator(Location loc, double yOffset)
原文:Constructs the BlockIterator.
loc - 射线追踪的开始位置yOffset - 垂直偏移量,追踪从初向量开始垂直偏移这个值的范围public BlockIterator(Location loc)
原文:Constructs the BlockIterator.
loc - 射线追踪的开始位置public BlockIterator(LivingEntity entity, int maxDistance)
原文:Constructs the BlockIterator.
entity - 被用来设置追踪的实体maxDistance - 这是在方块中追踪的最大距离,
设置此值在140以上可能导致未加载区块(unloaded chunks)的问题,值0表示无限制public BlockIterator(LivingEntity entity)
原文:Constructs the BlockIterator.
entity - 被用来设置追踪的实体信息public boolean hasNext()
原文:Returns true if the iteration has more elements
hasNext 在接口中 java.util.Iterator<Block>public Block next()
原文:Returns the next Block in the trace
next 在接口中 java.util.Iterator<Block>public void remove()
remove 在接口中 java.util.Iterator<Block>