Examples of SpawnPositionMessage


Examples of net.glowstone.net.message.play.game.SpawnPositionMessage

public final class SpawnPositionCodec implements Codec<SpawnPositionMessage> {
    @Override
    public SpawnPositionMessage decode(ByteBuf buffer) throws IOException {
        BlockVector pos = GlowBufUtils.readBlockPosition(buffer);
        return new SpawnPositionMessage(pos.getBlockX(), pos.getBlockY(), pos.getBlockZ());
    }
View Full Code Here

Examples of net.lightstone.msg.SpawnPositionMessage

  @Override
  public SpawnPositionMessage decode(ChannelBuffer buffer) throws IOException {
    int x = buffer.readInt();
    int y = buffer.readInt();
    int z = buffer.readInt();
    return new SpawnPositionMessage(x, y, z);
  }
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.