Search in sources :

Example 16 with PacketPlayOutRespawn

use of net.minecraft.server.v1_16_R2.PacketPlayOutRespawn in project TheAPI by TheDevTec.

the class v1_8_R2 method packetRespawn.

@Override
public Object packetRespawn(Player player) {
    EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
    WorldServer worldserver = entityPlayer.u();
    byte actualDimension = (byte) worldserver.getWorld().getEnvironment().getId();
    return new PacketPlayOutRespawn((byte) ((actualDimension >= 0) ? -1 : 0), worldserver.getDifficulty(), worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
Also used : EntityPlayer(net.minecraft.server.v1_8_R2.EntityPlayer) WorldServer(net.minecraft.server.v1_8_R2.WorldServer) PacketPlayOutRespawn(net.minecraft.server.v1_8_R2.PacketPlayOutRespawn)

Example 17 with PacketPlayOutRespawn

use of net.minecraft.server.v1_16_R2.PacketPlayOutRespawn in project TheAPI by TheDevTec.

the class v1_7_R4 method packetRespawn.

@Override
public Object packetRespawn(Player player) {
    EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
    WorldServer worldserver = entityPlayer.r();
    byte actualDimension = (byte) worldserver.getWorld().getEnvironment().getId();
    return new PacketPlayOutRespawn((byte) ((actualDimension >= 0) ? -1 : 0), worldserver.difficulty, worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
Also used : EntityPlayer(net.minecraft.server.v1_7_R4.EntityPlayer) WorldServer(net.minecraft.server.v1_7_R4.WorldServer) PacketPlayOutRespawn(net.minecraft.server.v1_7_R4.PacketPlayOutRespawn)

Example 18 with PacketPlayOutRespawn

use of net.minecraft.server.v1_16_R2.PacketPlayOutRespawn in project TheAPI by TheDevTec.

the class v1_8_R1 method packetRespawn.

@Override
public Object packetRespawn(Player player) {
    EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
    WorldServer worldserver = entityPlayer.u();
    byte actualDimension = (byte) worldserver.getWorld().getEnvironment().getId();
    return new PacketPlayOutRespawn((byte) ((actualDimension >= 0) ? -1 : 0), worldserver.getDifficulty(), worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
Also used : EntityPlayer(net.minecraft.server.v1_8_R1.EntityPlayer) WorldServer(net.minecraft.server.v1_8_R1.WorldServer) PacketPlayOutRespawn(net.minecraft.server.v1_8_R1.PacketPlayOutRespawn)

Example 19 with PacketPlayOutRespawn

use of net.minecraft.server.v1_16_R2.PacketPlayOutRespawn in project TheAPI by TheDevTec.

the class v1_16_R3 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.playerInteractManager.getGameMode(), entityPlayer.playerInteractManager.c(), worldserver.isDebugWorld(), worldserver.isFlatWorld(), true);
}
Also used : EntityPlayer(net.minecraft.server.v1_16_R3.EntityPlayer) WorldServer(net.minecraft.server.v1_16_R3.WorldServer) PacketPlayOutRespawn(net.minecraft.server.v1_16_R3.PacketPlayOutRespawn)

Aggregations

UUID (java.util.UUID)4 Player (org.bukkit.entity.Player)4 BukkitRunnable (org.bukkit.scheduler.BukkitRunnable)4 EntityPlayer (net.minecraft.server.v1_10_R1.EntityPlayer)2 PacketPlayOutRespawn (net.minecraft.server.v1_10_R1.PacketPlayOutRespawn)2 EntityPlayer (net.minecraft.server.v1_11_R1.EntityPlayer)2 PacketPlayOutRespawn (net.minecraft.server.v1_11_R1.PacketPlayOutRespawn)2 EntityPlayer (net.minecraft.server.v1_8_R3.EntityPlayer)2 PacketPlayOutRespawn (net.minecraft.server.v1_8_R3.PacketPlayOutRespawn)2 PacketPlayOutEntityDestroy (net.minecraft.server.v1_10_R1.PacketPlayOutEntityDestroy)1 PacketPlayOutNamedEntitySpawn (net.minecraft.server.v1_10_R1.PacketPlayOutNamedEntitySpawn)1 PacketPlayOutPlayerInfo (net.minecraft.server.v1_10_R1.PacketPlayOutPlayerInfo)1 WorldServer (net.minecraft.server.v1_10_R1.WorldServer)1 PacketPlayOutEntityDestroy (net.minecraft.server.v1_11_R1.PacketPlayOutEntityDestroy)1 PacketPlayOutNamedEntitySpawn (net.minecraft.server.v1_11_R1.PacketPlayOutNamedEntitySpawn)1 PacketPlayOutPlayerInfo (net.minecraft.server.v1_11_R1.PacketPlayOutPlayerInfo)1 WorldServer (net.minecraft.server.v1_11_R1.WorldServer)1 EntityPlayer (net.minecraft.server.v1_12_R1.EntityPlayer)1 PacketPlayOutRespawn (net.minecraft.server.v1_12_R1.PacketPlayOutRespawn)1 WorldServer (net.minecraft.server.v1_12_R1.WorldServer)1