use of com.comphenix.packetwrapper.WrapperPlayServerBed in project AdvancedReplay by Jumper251.
the class PacketNPCOld method sleep.
public void sleep(Location loc) {
WrapperPlayServerBed packet = new WrapperPlayServerBed();
packet.setEntityID(this.id);
packet.setLocation(new BlockPosition(loc.toVector()));
for (Player player : Arrays.asList(this.visible)) {
if (player != null) {
packet.sendPacket(player);
}
}
}
use of com.comphenix.packetwrapper.WrapperPlayServerBed in project AdvancedReplay by Jumper251.
the class PacketNPC method sleep.
public void sleep(Location loc) {
WrapperPlayServerBed packet = new WrapperPlayServerBed();
packet.setEntityID(this.id);
packet.setLocation(new BlockPosition(loc.toVector()));
for (Player player : Arrays.asList(this.visible)) {
if (player != null) {
packet.sendPacket(player);
}
}
}
Aggregations