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));
}
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));
}
Aggregations