Translations:Anvil/Chest Manipulation/16/zh

    From Minecraft Parkour Wiki

    /* 位于 BlockChest.java */ public void setBlockBoundsBasedOnState(BlockPos pos) {

       if (getBlockState(pos.north()).getBlock() == this)
       {
           this.setBlockBounds(0.0625, 0.0, 0.0, 0.9375, 0.875, 0.9375);
       }
       else if (getBlockState(pos.south()).getBlock() == this)
       {
           this.setBlockBounds(0.0625, 0.0, 0.0625, 0.9375, 0.875, 1.0);
       }
       else if (getBlockState(pos.west()).getBlock() == this)
       {
           this.setBlockBounds(0.0, 0.0, 0.0625, 0.9375, 0.875, 0.9375);
       }
       else if (getBlockState(pos.east()).getBlock() == this)
       {
           this.setBlockBounds(0.0625, 0.0, 0.0625, 1.0, 0.875, 0.9375);
       }
       else //single chest
       {
           this.setBlockBounds(0.0625, 0.0, 0.0625, 0.9375, 0.875, 0.9375);
       }
    

    } </syntaxhighlight>