Search in sources :

Example 1 with ServerboundItemTransactionPacket

use of com.almuradev.almura.feature.store.network.ServerboundItemTransactionPacket in project Almura by AlmuraDev.

the class ClientStoreManager method buy.

public void buy(final String id, final int recNo, final int quantity) {
    checkNotNull(id);
    checkState(recNo >= 0);
    checkState(quantity >= 0);
    this.network.sendToServer(new ServerboundItemTransactionPacket(id, StoreItemSegmentType.BUYING, recNo, quantity));
}
Also used : ServerboundItemTransactionPacket(com.almuradev.almura.feature.store.network.ServerboundItemTransactionPacket)

Example 2 with ServerboundItemTransactionPacket

use of com.almuradev.almura.feature.store.network.ServerboundItemTransactionPacket in project Almura by AlmuraDev.

the class ClientStoreManager method sell.

public void sell(final String id, final int recNo, final int quantity) {
    checkNotNull(id);
    checkState(recNo >= 0);
    checkState(quantity >= 0);
    this.network.sendToServer(new ServerboundItemTransactionPacket(id, StoreItemSegmentType.SELLING, recNo, quantity));
}
Also used : ServerboundItemTransactionPacket(com.almuradev.almura.feature.store.network.ServerboundItemTransactionPacket)

Aggregations

ServerboundItemTransactionPacket (com.almuradev.almura.feature.store.network.ServerboundItemTransactionPacket)2