Translations:Soulsand/10/zh
for (int i = posMin.getX(); i <= posMax.getX(); ++i)
{ for (int j = posMin.getY(); j <= posMax.getY(); ++j) { for (int k = posMin.getZ(); k <= posMax.getZ(); ++k) { BlockPos pos = new BlockPos(i, j, k); Block block = getBlockState(pos); block.onEntityCollidedWithBlock(this); //涉及到的方块可以查看附录。 } } }
}