Examples of PlayerRespawnMessage


Examples of org.spout.vanilla.protocol.msg.player.pos.PlayerRespawnMessage

    WorldType worldType = data.get(VanillaData.WORLD_TYPE);

    if (human != null) {
      gamemode = human.getGameMode();
    }
    getSession().send(new PlayerRespawnMessage(0, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
    getSession().send(new PlayerRespawnMessage(1, difficulty.getId(), gamemode.getId(), 256, worldType.toString()));
    getSession().send(new PlayerRespawnMessage(dimension.getId(), difficulty.getId(), gamemode.getId(), 256, worldType.toString()));

    if (human != null) {
      human.updateAbilities();
    }
View Full Code Here

Examples of org.spout.vanilla.protocol.msg.player.pos.PlayerRespawnMessage

    int dimension = buffer.readInt();
    byte difficulty = buffer.readByte();
    byte creative = buffer.readByte();
    int height = buffer.readUnsignedShort();
    String worldType = VanillaByteBufUtils.readString(buffer);
    return new PlayerRespawnMessage(dimension, difficulty, creative, height, worldType);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.