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.itemproc.HornItemProcFrame.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  . co m*/
    buf.writeByte(getDirection());
    buf.writeDouble(getDamage());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.LightningItemProcFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());//from   ww w.  j av  a2s . c o m
    buf.writeShort(getDamage());
    for (byte b : getTeam().getBytes()) {
        buf.writeByte(b);
    }
    buf.writeByte(0);
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.MissileItemProcFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeInt(getLength());//from w  ww.  ja v  a 2  s.co m
    buf.writeDouble(getX());
    buf.writeDouble(getY());
    buf.writeShort(getDamage());
    buf.writeShort(getDirection());
    buf.writeShort(getAlarm0());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.MortarItemProcFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());/*from   w w  w .  j  ava  2 s .c  o m*/
    buf.writeDouble(getDamage());
    buf.writeShort(getDirection());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.PauldronItemProcFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());/* ww  w  .j  a  va 2s. c  o m*/
    buf.writeDouble(getDamage());
    buf.writeShort(getAlarm0());
    for (byte b : team.getBytes()) {
        buf.writeByte(b);
    }
    buf.writeByte(0);
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.PlasmaChainItemProcFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeShort(getMId());//from   w  w  w .j  a va2  s  .  co m
    buf.writeDouble(getObjectIndex());
    buf.writeShort(getTargetMId());
    buf.writeShort(getDamageCoefficient());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.ScopeItemProcFrame.java

License:Apache License

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

From source file:io.github.stormcloud_dev.stormcloud.frame.serverbound.ActivateObjectServerBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getPlayerX());
    buf.writeDouble(getPlayerY());//from   ww  w . java  2  s  .c o  m
    buf.writeShort(getObjectActivated());
    buf.writeShort(getObjectMId());
    buf.writeByte(getIntendedActiveState());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.serverbound.CreateObjectServerBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getX());
    buf.writeDouble(getY());//from   ww w .ja va 2  s.  co m
    buf.writeDouble(getUnknown());
}

From source file:io.github.stormcloud_dev.stormcloud.frame.serverbound.TransportServerBoundFrame.java

License:Apache License

@Override
public void writeData(ByteBuf buf) {
    super.writeData(buf);
    buf.writeDouble(getUnknown1());
    buf.writeDouble(getUnknown2());/*ww w .j a  va 2  s.  co m*/
    buf.writeDouble(getUnknown3());
    buf.writeDouble(getUnknown4());
    buf.writeDouble(getUnknown5());
    buf.writeByte(getUnknown6());
}