@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public void writeBoolean(boolean v) throws IOException { buffer.writeBoolean(v); }
@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public void writeBoolean(boolean v) throws IOException { buffer.writeBoolean(v); }
/** * Creates a new single-byte big-endian buffer that holds the specified boolean value. */ public static ByteBuf copyBoolean(boolean value) { ByteBuf buf = buffer(1); buf.writeBoolean(value); return buf; }
/** * Create a new big-endian buffer that holds a sequence of the specified boolean values. */ public static ByteBuf copyBoolean(boolean... values) { if (values == null || values.length == 0) { return EMPTY_BUFFER; } ByteBuf buffer = buffer(values.length); for (boolean v: values) { buffer.writeBoolean(v); } return buffer; }
@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public ByteBuf writeBoolean(boolean value) { buf.writeBoolean(value); return this; }
@Override public ByteBuf writeBoolean(boolean value) { byteBuf.writeBoolean(value); return this; }
@Override public void writeBoolean(boolean v) throws IOException { buffer.writeBoolean(v); }
/** * Creates a new single-byte big-endian buffer that holds the specified boolean value. */ public static ByteBuf copyBoolean(boolean value) { ByteBuf buf = buffer(1); buf.writeBoolean(value); return buf; }
/** * Create a new big-endian buffer that holds a sequence of the specified boolean values. */ public static ByteBuf copyBoolean(boolean... values) { if (values == null || values.length == 0) { return EMPTY_BUFFER; } ByteBuf buffer = buffer(values.length); for (boolean v: values) { buffer.writeBoolean(v); } return buffer; }
@Override public void write(final ByteBuf buffer) { buffer.writeByte(DataConstants.BOOLEAN); buffer.writeBoolean(val); }
/** * Creates a new single-byte big-endian buffer that holds the specified boolean value. */ public static ByteBuf copyBoolean(boolean value) { ByteBuf buf = buffer(1); buf.writeBoolean(value); return buf; }
/** * Create a new big-endian buffer that holds a sequence of the specified boolean values. */ public static ByteBuf copyBoolean(boolean... values) { if (values == null || values.length == 0) { return EMPTY_BUFFER; } ByteBuf buffer = buffer(values.length); for (boolean v: values) { buffer.writeBoolean(v); } return buffer; }
@Override public void writeTo(FlowRequestData entity, ByteBuf target) { target.writeLong(entity.getFlowId()); target.writeInt(entity.getCount()); target.writeBoolean(entity.isPriority()); } }
@Override public ByteBuf encode(ByteBuf buf, RelativeEntityPositionMessage message) throws IOException { ByteBufUtils.writeVarInt(buf, message.getId()); buf.writeShort(message.getDeltaX()); buf.writeShort(message.getDeltaY()); buf.writeShort(message.getDeltaZ()); buf.writeBoolean(message.isOnGround()); return buf; } }
@Override public ByteBuf encode(ByteBuf buf, CraftRecipeRequestMessage message) throws IOException { buf.writeByte(message.getWindowId()); ByteBufUtils.writeVarInt(buf, message.getRecipeId()); buf.writeBoolean(message.isMakeAll()); return buf; } }