reformatted
This commit is contained in:
parent
e81b6d4d96
commit
1ab3e61984
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user