summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-01-20 02:05:20 -0800
committersk89q <the.sk89q@gmail.com>2011-01-20 02:10:32 -0800
commit0357c8f936e424525c94d34cf8e3874971d256cd (patch)
tree47a591b79fffd62cb9d1bbcb41d14ec612fafa2b /src/main/java/org
parent62624a079932adbe3e75a3bc2a120d6377a9a0e3 (diff)
downloadcraftbukkit-0357c8f936e424525c94d34cf8e3874971d256cd.tar
craftbukkit-0357c8f936e424525c94d34cf8e3874971d256cd.tar.gz
craftbukkit-0357c8f936e424525c94d34cf8e3874971d256cd.tar.lz
craftbukkit-0357c8f936e424525c94d34cf8e3874971d256cd.tar.xz
craftbukkit-0357c8f936e424525c94d34cf8e3874971d256cd.zip
Added compass setting methods.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index 1c03f38a..a1ed1165 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -4,7 +4,9 @@ import java.net.InetSocketAddress;
import java.net.SocketAddress;
import net.minecraft.server.EntityPlayer;
import net.minecraft.server.EntityPlayerMP;
+import net.minecraft.server.Packet;
import net.minecraft.server.Packet3Chat;
+import net.minecraft.server.Packet6SpawnPosition;
import org.bukkit.Location;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Player;
@@ -100,4 +102,8 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
entity.a.a(message);
}
+ public void setCompassTarget(Location loc) {
+ entity.a.b(((Packet) (new Packet6SpawnPosition(loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()))));
+ }
+
}