reformatted

This commit is contained in:
Leijurv 2018-11-12 21:01:40 -08:00
parent e81b6d4d96
commit 1ab3e61984
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
3 changed files with 10 additions and 12 deletions

View File

@ -77,20 +77,20 @@ public class MovementParkour extends Movement {
if (MovementHelper.avoidWalkingInto(adj.getBlock()) && adj.getBlock() != Blocks.WATER && adj.getBlock() != Blocks.FLOWING_WATER) { // magma sucks
return;
}
if (MovementHelper.canWalkOn(context,x + xDiff, y - 1, z + zDiff, adj)) { // don't parkour if we could just traverse (for now)
if (MovementHelper.canWalkOn(context, x + xDiff, y - 1, z + zDiff, adj)) { // don't parkour if we could just traverse (for now)
return;
}
if (!MovementHelper.fullyPassable(context,x + xDiff, y, z + zDiff)) {
if (!MovementHelper.fullyPassable(context, x + xDiff, y, z + zDiff)) {
return;
}
if (!MovementHelper.fullyPassable(context,x + xDiff, y + 1, z + zDiff)) {
if (!MovementHelper.fullyPassable(context, x + xDiff, y + 1, z + zDiff)) {
return;
}
if (!MovementHelper.fullyPassable(context,x + xDiff, y + 2, z + zDiff)) {
if (!MovementHelper.fullyPassable(context, x + xDiff, y + 2, z + zDiff)) {
return;
}
if (!MovementHelper.fullyPassable(context,x, y + 2, z)) {
if (!MovementHelper.fullyPassable(context, x, y + 2, z)) {
return;
}
int maxJump;
@ -106,11 +106,11 @@ public class MovementParkour extends Movement {
for (int i = 2; i <= maxJump; i++) {
// TODO perhaps dest.up(3) doesn't need to be fullyPassable, just canWalkThrough, possibly?
for (int y2 = 0; y2 < 4; y2++) {
if (!MovementHelper.fullyPassable(context,x + xDiff * i, y + y2, z + zDiff * i)) {
if (!MovementHelper.fullyPassable(context, x + xDiff * i, y + y2, z + zDiff * i)) {
return;
}
}
if (MovementHelper.canWalkOn(context,x + xDiff * i, y - 1, z + zDiff * i)) {
if (MovementHelper.canWalkOn(context, x + xDiff * i, y - 1, z + zDiff * i)) {
res.x = x + xDiff * i;
res.y = y;
res.z = z + zDiff * i;
@ -143,7 +143,7 @@ public class MovementParkour extends Movement {
if (againstX == x + xDiff * 3 && againstZ == z + zDiff * 3) { // we can't turn around that fast
continue;
}
if (MovementHelper.canPlaceAgainst(context,againstX, y - 1, againstZ)) {
if (MovementHelper.canPlaceAgainst(context, againstX, y - 1, againstZ)) {
res.x = destX;
res.y = y;
res.z = destZ;

View File

@ -22,9 +22,8 @@ import baritone.cache.WorldProvider;
import java.io.File;
/**
* @see WorldProvider
*
* @author Brady
* @see WorldProvider
* @since 8/4/2018 11:36 AM
*/
public interface IAnvilChunkLoader {

View File

@ -21,9 +21,8 @@ import net.minecraft.world.WorldProvider;
import net.minecraft.world.chunk.storage.IChunkLoader;
/**
* @see WorldProvider
*
* @author Brady
* @see WorldProvider
* @since 8/4/2018 11:33 AM
*/
public interface IChunkProviderServer {