mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Added compass setting methods.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
554bde3a69
commit
18b72bc447
1 changed files with 6 additions and 0 deletions
|
@ -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()))));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue