use of com.almuradev.almura.feature.store.network.ServerboundListItemsRequestPacket in project Almura by AlmuraDev.
the class ClientStoreManager method requestListBuyingItem.
/**
* BuyingItem
*/
public void requestListBuyingItem(final String id, final VanillaStack stack, final int index, final BigDecimal price) {
checkNotNull(id);
checkNotNull(stack);
checkState(index >= 0);
checkNotNull(price);
checkState(price.doubleValue() >= 0);
this.network.sendToServer(new ServerboundListItemsRequestPacket(id, StoreItemSegmentType.BUYING, Lists.newArrayList(new ServerboundListItemsRequestPacket.ListCandidate(stack, index, price))));
}
use of com.almuradev.almura.feature.store.network.ServerboundListItemsRequestPacket in project Almura by AlmuraDev.
the class ClientStoreManager method requestListSellingItem.
/**
* SellingItem
*/
public void requestListSellingItem(final String id, final VanillaStack stack, final int index, final BigDecimal price) {
checkNotNull(id);
checkNotNull(stack);
checkState(index >= 0);
checkNotNull(price);
checkState(price.doubleValue() >= 0);
this.network.sendToServer(new ServerboundListItemsRequestPacket(id, StoreItemSegmentType.SELLING, Lists.newArrayList(new ServerboundListItemsRequestPacket.ListCandidate(stack, index, price))));
}
Aggregations