use of net.minecraft.server.v1_13_R1.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_13_R2 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.getWorldServer();
return new PacketPlayOutRespawn(worldserver.dimension, worldserver.getDifficulty(), worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
use of net.minecraft.server.v1_13_R1.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_12_R1 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.x();
byte actualDimension = (byte) worldserver.getWorld().getEnvironment().getId();
return new PacketPlayOutRespawn((byte) ((actualDimension >= 0) ? -1 : 0), worldserver.getDifficulty(), worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
use of net.minecraft.server.v1_13_R1.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_14_R1 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.getWorldServer();
return new PacketPlayOutRespawn(worldserver.worldProvider.getDimensionManager(), entityPlayer.world.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
use of net.minecraft.server.v1_13_R1.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_8_R3 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());
}
use of net.minecraft.server.v1_13_R1.PacketPlayOutRespawn in project TheAPI by TheDevTec.
the class v1_9_R1 method packetRespawn.
@Override
public Object packetRespawn(Player player) {
EntityPlayer entityPlayer = (EntityPlayer) getPlayer(player);
WorldServer worldserver = entityPlayer.x();
byte actualDimension = (byte) worldserver.getWorld().getEnvironment().getId();
return new PacketPlayOutRespawn((byte) ((actualDimension >= 0) ? -1 : 0), worldserver.getDifficulty(), worldserver.getWorldData().getType(), entityPlayer.playerInteractManager.getGameMode());
}
Aggregations