Search in sources :

Example 1 with ServerboundTransactionRequestPacket

use of com.almuradev.almura.feature.exchange.network.ServerboundTransactionRequestPacket in project Almura by AlmuraDev.

the class ClientExchangeManager method purchase.

public void purchase(final String id, final int listItemRecNo, final int quantity) {
    checkNotNull(id);
    checkState(listItemRecNo >= 0);
    checkState(quantity >= 1);
    this.network.sendToServer(new ServerboundTransactionRequestPacket(id, listItemRecNo, quantity));
}
Also used : ServerboundTransactionRequestPacket(com.almuradev.almura.feature.exchange.network.ServerboundTransactionRequestPacket)

Aggregations

ServerboundTransactionRequestPacket (com.almuradev.almura.feature.exchange.network.ServerboundTransactionRequestPacket)1