use of net.minecraft.network.protocol.game.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_17_R1 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.getWorldServer();
return new PacketPlayOutRespawn(worldserver.getDimensionManager(), worldserver.getDimensionKey(), BiomeManager.a(worldserver.getSeed()), entityPlayer.d.getGameMode(), entityPlayer.d.c(), worldserver.isDebugWorld(), worldserver.isFlatWorld(), true);
}
use of net.minecraft.network.protocol.game.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_18_R2 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.x();
return new PacketPlayOutRespawn(worldserver.Z(), worldserver.aa(), BiomeManager.a(worldserver.D()), entityPlayer.d.b(), entityPlayer.d.c(), worldserver.ad(), worldserver.C(), true);
}
use of net.minecraft.network.protocol.game.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_18_R1 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.x();
return new PacketPlayOutRespawn(worldserver.q_(), worldserver.aa(), BiomeManager.a(worldserver.E()), entityPlayer.d.b(), entityPlayer.d.c(), worldserver.ad(), worldserver.D(), true);
}
Aggregations