类 BasicItemListing
java.lang.Object
net.neoforged.neoforge.common.BasicItemListing
- 所有已实现的接口:
VillagerTrades.ItemListing
A default, exposed implementation of ITrade. All of the other implementations of ITrade (in VillagerTrades) are not public.
This class contains everything needed to make a MerchantOffer, the actual "trade" object shown in trading guis.
-
字段概要
字段 -
构造器概要
构造器构造器说明BasicItemListing
(int emeralds, ItemStack forSale, int maxTrades, int xp) BasicItemListing
(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult) BasicItemListing
(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult) BasicItemListing
(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult) -
方法概要
-
字段详细资料
-
price
-
price2
-
forSale
-
maxTrades
protected final int maxTrades -
xp
protected final int xp -
priceMult
protected final float priceMult
-
-
构造器详细资料
-
BasicItemListing
-
BasicItemListing
-
BasicItemListing
-
BasicItemListing
-
-
方法详细资料
-
getOffer
- 指定者:
getOffer
在接口中VillagerTrades.ItemListing
-