use of net.minecraft.server.v1_15_R1.PathType in project Citizens2 by CitizensDev.
the class PlayerPathfinderNormal method a.
public static PathType a(IBlockAccess var0, BlockPosition.MutableBlockPosition var1) {
int var2 = var1.getX();
int var3 = var1.getY();
int var4 = var1.getZ();
PathType var5 = b(var0, var1);
if (var5 == PathType.OPEN && var3 >= 1) {
PathType var6 = b(var0, var1.d(var2, var3 - 1, var4));
var5 = (var6 == PathType.WALKABLE || var6 == PathType.OPEN || var6 == PathType.WATER || var6 == PathType.LAVA) ? PathType.OPEN : PathType.WALKABLE;
if (var6 == PathType.DAMAGE_FIRE)
var5 = PathType.DAMAGE_FIRE;
if (var6 == PathType.DAMAGE_CACTUS)
var5 = PathType.DAMAGE_CACTUS;
if (var6 == PathType.DAMAGE_OTHER)
var5 = PathType.DAMAGE_OTHER;
if (var6 == PathType.STICKY_HONEY)
var5 = PathType.STICKY_HONEY;
}
if (var5 == PathType.WALKABLE)
var5 = a(var0, var1.d(var2, var3, var4), var5);
return var5;
}
Aggregations