Search in sources :

Example 1 with PacketPlayOutRespawn

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);
}
Also used : EntityPlayer(net.minecraft.server.level.EntityPlayer) WorldServer(net.minecraft.server.level.WorldServer) PacketPlayOutRespawn(net.minecraft.network.protocol.game.PacketPlayOutRespawn)

Example 2 with PacketPlayOutRespawn

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);
}
Also used : EntityPlayer(net.minecraft.server.level.EntityPlayer) WorldServer(net.minecraft.server.level.WorldServer) PacketPlayOutRespawn(net.minecraft.network.protocol.game.PacketPlayOutRespawn)

Example 3 with PacketPlayOutRespawn

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);
}
Also used : EntityPlayer(net.minecraft.server.level.EntityPlayer) WorldServer(net.minecraft.server.level.WorldServer) PacketPlayOutRespawn(net.minecraft.network.protocol.game.PacketPlayOutRespawn)

Aggregations

PacketPlayOutRespawn (net.minecraft.network.protocol.game.PacketPlayOutRespawn)3 EntityPlayer (net.minecraft.server.level.EntityPlayer)3 WorldServer (net.minecraft.server.level.WorldServer)3