List of usage examples for io.netty.buffer ByteBuf writeBoolean
public abstract ByteBuf writeBoolean(boolean value);
From source file:caveworld.network.common.RegenerateMessage.java
License:Minecraft Mod Public
@Override public void toBytes(ByteBuf buffer) { buffer.writeBoolean(backup); buffer.writeBoolean(caveworld);//from w ww .ja va 2 s. com buffer.writeBoolean(cavern); buffer.writeBoolean(aquaCavern); buffer.writeBoolean(caveland); buffer.writeBoolean(cavenia); }
From source file:cn.academy.core.block.dev.MsgDeveloper.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeInt(x).writeShort(y).writeInt(z).writeInt(energy); buf.writeBoolean(isStimulating).writeByte(stimSuccess).writeByte(stimFailure); buf.writeByte(nMagIncr);//from ww w .j a v a2 s. c om buf.writeInt(userID); }
From source file:cn.academy.energy.msg.fr.MsgFRAction.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeInt(x).writeInt(y).writeInt(z); if (type == ActionType.REG) { buf.writeBoolean(true); buf.writeInt(coords[0]).writeInt(coords[1]).writeInt(coords[2]); ByteBufUtils.writeUTF8String(buf, pwd); } else {// w ww. ja va 2s .c om buf.writeBoolean(false); } }
From source file:cn.academy.energy.msg.fr.MsgFRActionReply.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeBoolean(suc); }
From source file:cn.academy.energy.msg.matrix.MsgMatGuiLoad.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeBoolean(init); if (init)//from ww w .ja va 2 s . co m ByteBufUtils.writeUTF8String(buf, channel); }
From source file:cn.academy.energy.msg.matrix.ResponseChangePwd.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeBoolean(successful); }
From source file:cn.academy.energy.msg.node.MsgNodeGuiLoad.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeBoolean(loaded); if (loaded)/*from www.j a v a 2s .c o m*/ ByteBufUtils.writeUTF8String(buf, channel); }
From source file:cn.lambdacraft.core.network.MsgKeyUsing.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeBoolean(isUsing); }
From source file:cn.lambdacraft.mob.network.MsgSentrySync.java
License:Open Source License
@Override public void toBytes(ByteBuf outputStream) { outputStream.writeInt(xCoord);//from w w w.j a v a2 s .c om outputStream.writeInt(yCoord); outputStream.writeInt(zCoord); outputStream.writeBoolean(isValid); if (isValid) { outputStream.writeInt(linkX); outputStream.writeInt(linkY); outputStream.writeInt(linkZ); } }
From source file:cn.weaponmod.core.network.MessageWMKey.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeByte(keyid); buf.writeBoolean(keyDown); }