u24
This commit is contained in:
parent
401ebe2324
commit
573420e1b8
613 changed files with 5708 additions and 4445 deletions
|
|
@ -1,7 +1,5 @@
|
|||
package net.minecraft.pathfinding;
|
||||
|
||||
import net.minecraft.pathfinding.PathPoint;
|
||||
|
||||
/**+
|
||||
* This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code.
|
||||
*
|
||||
|
|
@ -23,7 +21,6 @@ import net.minecraft.pathfinding.PathPoint;
|
|||
*
|
||||
*/
|
||||
public class Path {
|
||||
|
||||
/**+
|
||||
* Contains the points in this path
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package net.minecraft.pathfinding;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.pathfinding.PathPoint;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
/**+
|
||||
|
|
@ -25,7 +24,6 @@ import net.minecraft.util.Vec3;
|
|||
*
|
||||
*/
|
||||
public class PathEntity {
|
||||
|
||||
private final PathPoint[] points;
|
||||
private int currentPathIndex;
|
||||
private int pathLength;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
package net.minecraft.pathfinding;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.pathfinding.Path;
|
||||
import net.minecraft.pathfinding.PathEntity;
|
||||
import net.minecraft.pathfinding.PathPoint;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.pathfinder.NodeProcessor;
|
||||
|
|
@ -29,7 +26,6 @@ import net.minecraft.world.pathfinder.NodeProcessor;
|
|||
*
|
||||
*/
|
||||
public class PathFinder {
|
||||
|
||||
/**+
|
||||
* The path being generated
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@ import net.minecraft.entity.Entity;
|
|||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.entity.SharedMonsterAttributes;
|
||||
import net.minecraft.entity.ai.attributes.IAttributeInstance;
|
||||
import net.minecraft.pathfinding.PathEntity;
|
||||
import net.minecraft.pathfinding.PathFinder;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
|
@ -35,7 +33,6 @@ import net.minecraft.world.World;
|
|||
*
|
||||
*/
|
||||
public abstract class PathNavigate {
|
||||
|
||||
protected EntityLiving theEntity;
|
||||
protected World worldObj;
|
||||
protected PathEntity currentPath;
|
||||
|
|
@ -201,12 +198,13 @@ public abstract class PathNavigate {
|
|||
if (vec32 != null) {
|
||||
AxisAlignedBB axisalignedbb1 = (new AxisAlignedBB(vec32.xCoord, vec32.yCoord, vec32.zCoord,
|
||||
vec32.xCoord, vec32.yCoord, vec32.zCoord)).expand(0.5D, 0.5D, 0.5D);
|
||||
List list = this.worldObj.getCollidingBoundingBoxes(this.theEntity,
|
||||
List<AxisAlignedBB> list = this.worldObj.getCollidingBoundingBoxes(this.theEntity,
|
||||
axisalignedbb1.addCoord(0.0D, -1.0D, 0.0D));
|
||||
double d0 = -1.0D;
|
||||
axisalignedbb1 = axisalignedbb1.offset(0.0D, 1.0D, 0.0D);
|
||||
|
||||
for (AxisAlignedBB axisalignedbb : (List<AxisAlignedBB>) list) {
|
||||
for (int i = 0, l = list.size(); i < l; ++i) {
|
||||
AxisAlignedBB axisalignedbb = list.get(i);
|
||||
d0 = axisalignedbb.calculateYOffset(axisalignedbb1, d0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ package net.minecraft.pathfinding;
|
|||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.pathfinding.PathEntity;
|
||||
import net.minecraft.pathfinding.PathNavigateGround;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.world.World;
|
||||
|
|
@ -29,7 +27,6 @@ import net.minecraft.world.World;
|
|||
*
|
||||
*/
|
||||
public class PathNavigateClimber extends PathNavigateGround {
|
||||
|
||||
private BlockPos targetPosition;
|
||||
|
||||
public PathNavigateClimber(EntityLiving entityLivingIn, World worldIn) {
|
||||
|
|
|
|||
|
|
@ -6,9 +6,6 @@ import net.minecraft.entity.EntityLiving;
|
|||
import net.minecraft.entity.monster.EntityZombie;
|
||||
import net.minecraft.entity.passive.EntityChicken;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.pathfinding.PathFinder;
|
||||
import net.minecraft.pathfinding.PathNavigate;
|
||||
import net.minecraft.pathfinding.PathPoint;
|
||||
import net.minecraft.util.BlockPos;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
|
@ -36,7 +33,6 @@ import net.minecraft.world.pathfinder.WalkNodeProcessor;
|
|||
*
|
||||
*/
|
||||
public class PathNavigateGround extends PathNavigate {
|
||||
|
||||
protected WalkNodeProcessor nodeProcessor;
|
||||
private boolean shouldAvoidSun;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
package net.minecraft.pathfinding;
|
||||
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
import net.minecraft.pathfinding.PathFinder;
|
||||
import net.minecraft.pathfinding.PathNavigate;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
|
|
@ -29,7 +27,6 @@ import net.minecraft.world.pathfinder.SwimNodeProcessor;
|
|||
*
|
||||
*/
|
||||
public class PathNavigateSwimmer extends PathNavigate {
|
||||
|
||||
public PathNavigateSwimmer(EntityLiving entitylivingIn, World worldIn) {
|
||||
super(entitylivingIn, worldIn);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ import net.minecraft.util.MathHelper;
|
|||
*
|
||||
*/
|
||||
public class PathPoint {
|
||||
|
||||
public final int xCoord;
|
||||
public final int yCoord;
|
||||
public final int zCoord;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue