List of usage examples for io.netty.buffer ByteBuf writeDouble
public abstract ByteBuf writeDouble(double value);
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnItemClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getX()); buf.writeDouble(getY());// w w w.jav a 2 s . co m buf.writeInt(getNumberDropped()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SyncVarClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getValue()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.TransportClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getRoomId()); buf.writeDouble(getUnknown2());// w w w. ja va2s .c om buf.writeDouble(getUnknown3()); buf.writeDouble(getUnknown4()); buf.writeDouble(getUnknown5()); buf.writeByte(getUnknown6()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.UpdateBuffsClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getUnknown1()); buf.writeShort(getUnknown2());/*from w ww. j av a2 s . c o m*/ buf.writeShort(getUnknown3()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.UpdatePlayerClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeInt(getClazz());//from w ww . j a va2 s. co m buf.writeDouble(getX()); buf.writeDouble(getY()); for (byte b : getName().getBytes()) { buf.writeByte(b); } buf.writeByte(0); }
From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.BleedItemProcFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getTargetIndex()); buf.writeShort(getTargetMId());/*from ww w. j a v a 2 s .c om*/ buf.writeShort(getDamage()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.BottleItemProcFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getX()); buf.writeDouble(getY());/*from w w w . ja v a 2 s.c om*/ buf.writeDouble(getDamage()); buf.writeByte(getCrit()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.DebuffsItemProcFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getObjectId()); buf.writeShort(getmId());/*from w w w. j av a 2 s . c o m*/ buf.writeShort(getBuffType()); buf.writeShort(getDuration()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.EnemyMissileItemProcFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeDouble(getX()); buf.writeDouble(getY());//from w w w .java 2s . c o m buf.writeShort(getDamage()); buf.writeShort(getDirection()); buf.writeShort(getAlarm0()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.itemproc.GoldItemProcFrame.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 2 s .com*/ buf.writeDouble(getValue()); }