List of usage examples for io.netty.buffer ByteBuf writeShort
public abstract ByteBuf writeShort(int value);
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnDroneClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getX()); buf.writeShort(getY());/*from w w w .java2s .c o m*/ buf.writeShort(getOId()); buf.writeShort(getMId()); buf.writeShort(getMasterMId()); buf.writeShort(getXx()); buf.writeShort(getYy()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnGhostClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getX()); buf.writeShort(getY());/*from ww w .j a v a2s . c o m*/ buf.writeFloat(getDamageCoefficient()); buf.writeFloat(getHealthCoefficient()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SpawnImpmClientboundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getX()); buf.writeShort(getY());/* www .j a va 2 s.c om*/ buf.writeShort(getParentId()); buf.writeByte(getUnknown1()); buf.writeByte(getUnknown2()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.StopTimeClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getDuration()); }
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());/* www. ja v a 2s . c o m*/ buf.writeShort(getUnknown2()); buf.writeShort(getUnknown3()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.UpdateChest4ClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getItemId()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.UpdateHpClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getHp()); }
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());/*w w w. j a va2 s . co m*/ buf.writeShort(getTargetMId()); buf.writeShort(getDamage()); }
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());/*from ww w . j a v a 2 s . c o m*/ buf.writeShort(getmId()); 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());/*from ww w . j a v a 2 s .c o m*/ buf.writeDouble(getY()); buf.writeShort(getDamage()); buf.writeShort(getDirection()); buf.writeShort(getAlarm0()); }