Example usage for io.netty.buffer ByteBuf writeDouble

List of usage examples for io.netty.buffer ByteBuf writeDouble

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf writeDouble.

Prototype

public abstract ByteBuf writeDouble(double value);

Source Link

Document

Sets the specified 64-bit floating point number at the current writerIndex and increases the writerIndex by 8 in this buffer.

Usage

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.CreateSlimeClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeShort(getX());//  ww  w . jav a2 s  .com
    buf.writeShort(getY());
    buf.writeFloat(getSize());
    buf.writeShort(getMaxHP());
    buf.writeShort(getDamage());
    buf.writeShort(getExpWorth());
    buf.writeByte(getElite());
    buf.writeShort(getEliteTier2());
    buf.writeDouble(getImageBlend());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.HealPlayerClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getUnknown1());
    buf.writeDouble(getUnknown2());//from w  w  w .java 2s . c  o  m
    buf.writeDouble(getUnknown3());
    buf.writeDouble(getUnknown4());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.KeyMonsterClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());/*from  ww w .j a  va 2s. co m*/
    buf.writeByte(getZAction());
    buf.writeByte(getXAction());
    buf.writeByte(getCAction());
    buf.writeByte(getVAction());
    buf.writeShort(getImageXScale());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.NPCHPClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getHp());
    buf.writeDouble(getX());//from   w  w  w  .j a va 2s  . c  o m
    buf.writeDouble(getY());
    buf.writeShort(getXScale());
    buf.writeShort(getKnockback());
    buf.writeShort(getTicksTillChase());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.NPCTargetClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());/*from w  w  w  .jav  a  2  s .  c  o m*/
    buf.writeInt(getTargetParentMId());
    buf.writeShort(getDirection());
    buf.writeByte(getForceSpeedUp());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.PositionInfoClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());/*w ww.jav  a2 s.c  o m*/
    buf.writeByte(getLeft());
    buf.writeByte(getRight());
    buf.writeByte(getJump());
    buf.writeByte(getJumpHeld());
    buf.writeByte(getUp());
    buf.writeByte(getDown());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SetPlayerClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);

    buf.writeDouble(getPlayerId());
    buf.writeDouble(getRoomId());/*ww  w. ja v a  2  s . c  o  m*/
    for (byte b : getVersion().getBytes()) {
        buf.writeByte(b);
    }
    buf.writeByte(0);
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnBossClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());//from  w ww.  j  a  va 2 s.co m
    buf.writeByte(getElite());
    buf.writeDouble(getBlend());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnClassicBossClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());//from  ww  w  . ja  v  a 2s. c o  m
    buf.writeInt(getSprite());
    buf.writeInt(getChildIndex());
    buf.writeDouble(getSoundSpawn());
    buf.writeByte(getElite());
    buf.writeShort(getEliteTier());
    buf.writeShort(getPointValue());
    buf.writeShort(getImageXScale());
    buf.writeDouble(getImageBlend());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnClassicClientBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeShort(getCardChoice());//  w w  w .j  av  a 2  s  .  com
    buf.writeDouble(getX());
    buf.writeDouble(getY());
    buf.writeByte(getElite());
    buf.writeShort(getEliteTier());
    buf.writeShort(getPointValue());
    buf.writeShort(getImageXScale());
}