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.CreateSlimeClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getX()); buf.writeShort(getY());/*from w ww . ja v a 2 s .co m*/ 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.CrewChoiceClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getCrewMember()); }
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());//from w w w.j a va2 s . c o m buf.writeDouble(getY()); 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.KeyPlayerClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getX()); buf.writeShort(getY());//from w ww.j a v a 2s .co m buf.writeByte(getZAction()); buf.writeByte(getXAction()); buf.writeByte(getCAction()); buf.writeByte(getVAction()); buf.writeShort(getItemUsed()); buf.writeByte(getUnknown()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.LandLizardClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getTargetX()); buf.writeShort(getTargetY()); }
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());//from w ww . java2 s. c o m buf.writeDouble(getX()); 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());//from w w w . j a va2s . c om buf.writeDouble(getY()); buf.writeInt(getTargetParentMId()); buf.writeShort(getDirection()); buf.writeByte(getForceSpeedUp()); }
From source file:io.github.stormcloud_dev.stormcloud.frame.clientbound.SetPriceClientBoundFrame.java
License:Apache License
@Override public void writeData(ByteBuf buf) { super.writeData(buf); buf.writeShort(getUnknown1()); buf.writeShort(getUnknown2()); }
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());/*from w w w. j av a 2 s . com*/ buf.writeDouble(getY()); 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()); buf.writeDouble(getX());//w ww .ja v a 2s . co m buf.writeDouble(getY()); buf.writeByte(getElite()); buf.writeShort(getEliteTier()); buf.writeShort(getPointValue()); buf.writeShort(getImageXScale()); }