Package io.netty.buffer

Examples of io.netty.buffer.ByteBuf.writeBoolean()


    ByteBuf data = Unpooled.buffer();

    data.writeInt( getPacketID() );
    data.writeInt( option.ordinal() );
    data.writeBoolean( rotationDirection );

    configureWrite( data );
  }
}
View Full Code Here


    data.writeInt( action.ordinal() );
    data.writeInt( slot );
    data.writeLong( id );

    if ( slotItem == null )
      data.writeBoolean( false );
    else
    {
      data.writeBoolean( true );
      slotItem.writeToPacket( data );
    }
View Full Code Here

    if ( slotItem == null )
      data.writeBoolean( false );
    else
    {
      data.writeBoolean( true );
      slotItem.writeToPacket( data );
    }

    configureWrite( data );
  }
View Full Code Here

    data.writeInt( getPacketID() );
    data.writeInt( action.ordinal() );
    data.writeInt( slot );
    data.writeLong( id );
    data.writeBoolean( false );

    configureWrite( data );
  }
}
View Full Code Here

    this.heldShift = shift;

    ByteBuf data = Unpooled.buffer();

    data.writeInt( getPacketID() );
    data.writeBoolean( shift );
    data.writeLong( amount );

    configureWrite( data );
  }
View Full Code Here

    data.writeLong( this.attunement = req.attunement );
    data.writeInt( this.cx = req.cx );
    data.writeInt( this.cz = req.cz );
    data.writeInt( this.cdy = req.cdy );

    data.writeBoolean( hasResult );
    data.writeBoolean( spin );
    data.writeDouble( radians );

    configureWrite( data );
View Full Code Here

    data.writeInt( this.cx = req.cx );
    data.writeInt( this.cz = req.cz );
    data.writeInt( this.cdy = req.cdy );

    data.writeBoolean( hasResult );
    data.writeBoolean( spin );
    data.writeDouble( radians );

    configureWrite( data );

  }
View Full Code Here

    ByteBuf data = Unpooled.buffer();

    data.writeInt( getPacketID() );

    data.writeBoolean( shift );

    writeItem( slotItem, data );
    for (int x = 0; x < 9; x++)
    {
      pattern[x] = AEApi.instance().storage().createItemStack( pat.getStackInSlot( x ) );
View Full Code Here

    data.writeInt( getPacketID() );
    data.writeFloat( (float) x );
    data.writeFloat( (float) y );
    data.writeFloat( (float) z );
    data.writeByte( this.d.ordinal() );
    data.writeBoolean( wasBlock );

    configureWrite( data );
  }

}
View Full Code Here

     */
    @Test
    public void testGetBoolean() {
        ByteBuf buf = releaseLater(Unpooled.buffer(10));
        while (buf.isWritable()) {
            buf.writeBoolean(true);
        }
        ReplayingDecoderBuffer buffer = new ReplayingDecoderBuffer(buf);

        boolean error;
        int i = 0;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.