Translations:Sneaking/18/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
(Created page with "dZ_intended = dZ; } //calculate definitive dX and dZ based on the previous limits. while(dX != 0.0D && dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,dZ)).isEmpty()) { if (dX < increment && dX >= -increment) dX = 0.0D; else if (dX > 0.0D) dX -= increment; else dX += increment; dX_intended...")
 
No edit summary
Line 3: Line 3:
//根据先前得到的上线计算最终的 dX 与 dZ。
//calculate definitive dX and dZ based on the previous limits.
while(dX != 0.0D && dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,dZ)).isEmpty())
while(dX != 0.0D && dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,dZ)).isEmpty())
{
{

Revision as of 07:33, 25 June 2022

Message definition (Sneaking)
dZ_intended = dZ;
       }
                
                
       //calculate definitive dX and dZ based on the previous limits.
       while(dX != 0.0D && dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,dZ)).isEmpty())
       {
           if (dX < increment && dX >= -increment)
               dX = 0.0D;
           else if (dX > 0.0D)
               dX -= increment;
           else
               dX += increment;
           dX_intended = dX;

dZ_intended = dZ;

       }
               
               
       //根据先前得到的上线计算最终的 dX 与 dZ。
       while(dX != 0.0D && dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(dX,-1,dZ)).isEmpty())
       {
           if (dX < increment && dX >= -increment)
               dX = 0.0D;
           else if (dX > 0.0D)
               dX -= increment;
           else
               dX += increment;
           dX_intended = dX;