west
This commit is contained in:
parent
1a7cd78204
commit
1ea8878330
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
private static final Vector VELOCITY_SOUTH = new Vector(0, 0, -1);
|
private static final Vector VELOCITY_SOUTH = new Vector(0, 0, -1);
|
||||||
private static final Vector VELOCITY_EAST = new Vector(1, 0, 0);
|
private static final Vector VELOCITY_EAST = new Vector(1, 0, 0);
|
||||||
private static final Vector VELOCITY_NORTH = new Vector(0, 0, 1);
|
private static final Vector VELOCITY_NORTH = new Vector(0, 0, 1);
|
||||||
|
private static final Vector VELOCITY_WEST = new Vector(0, 0, 1);
|
||||||
|
|
||||||
private static final Location START_LOCATION = new Location(Bukkit.getWorld("world_the_end"), 101, 49, 1);
|
private static final Location START_LOCATION = new Location(Bukkit.getWorld("world_the_end"), 101, 49, 1);
|
||||||
private static final Location END_LOCATION = new Location(Bukkit.getWorld("world_the_end"), 99, 51, -1);
|
private static final Location END_LOCATION = new Location(Bukkit.getWorld("world_the_end"), 99, 51, -1);
|
||||||
|
|
@ -112,6 +113,8 @@ public class Bbsdfia extends JavaPlugin implements Listener {
|
||||||
velocity = VELOCITY_SOUTH;
|
velocity = VELOCITY_SOUTH;
|
||||||
} else if (location.getBlockX() == END_LOCATION.getBlockX()) {
|
} else if (location.getBlockX() == END_LOCATION.getBlockX()) {
|
||||||
velocity = VELOCITY_NORTH;
|
velocity = VELOCITY_NORTH;
|
||||||
|
} else if (location.getBlockX() == END_LOCATION.getBlockX()) {
|
||||||
|
velocity = VELOCITY_WEST;
|
||||||
}
|
}
|
||||||
return velocity;
|
return velocity;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue