Translations:Soulsand/9/zh

From Minecraft Parkour Wiki

如下是一个稍微简化的代码片段,解释了灵魂沙的特性:<syntaxhighlight lang="java"> /* 位于 Entity.java, 在每刻结束时(从 Entity.moveEntity)被调用 */ protected void doBlockCollisions() {

   BlockPos posMin = new BlockPos(this.minX+0.001, this.minY+0.001, this.minZ+0.001);
   BlockPos posMax = new BlockPos(this.maxX-0.001, this.maxY-0.001, this.maxZ-0.001);