mirror of https://github.com/FabricMC/yarn.git
56 lines
2.5 KiB
Plaintext
56 lines
2.5 KiB
Plaintext
CLASS net/minecraft/class_1914 net/minecraft/village/TradeOffer
|
|
FIELD field_18677 demandBonus I
|
|
FIELD field_18678 priceMultiplier F
|
|
FIELD field_18679 merchantExperience I
|
|
FIELD field_9144 maxUses I
|
|
FIELD field_9145 rewardingPlayerExperience Z
|
|
FIELD field_9147 uses I
|
|
METHOD <init> (Lnet/minecraft/class_2487;)V
|
|
ARG 1 nbt
|
|
METHOD method_19274 updateDemandBonus ()V
|
|
COMMENT Updates the demand bonus of this trade offer depending on its
|
|
COMMENT previous demand bonus, the number of times it has been used and
|
|
COMMENT its remaining uses.
|
|
METHOD method_19275 resetUses ()V
|
|
COMMENT Resets the number of times this trade offer has been used.
|
|
METHOD method_19278 getPriceMultiplier ()F
|
|
COMMENT Returns the price multiplier of this trade offer. It is used to
|
|
COMMENT adjust the price of its first buy item.
|
|
METHOD method_19279 getMerchantExperience ()I
|
|
COMMENT Returns the amount of experience that will be given to a merchant
|
|
COMMENT after this trade offer has been used.
|
|
METHOD method_21725 getDemandBonus ()I
|
|
COMMENT Returns the demand bonus of this trade offer. It is used to
|
|
COMMENT adjust the price of its first buy item.
|
|
COMMENT
|
|
COMMENT <p>The more the demand bonus is, the more the price will be high.
|
|
COMMENT
|
|
COMMENT <p>It is updated when a villager restocks.
|
|
COMMENT
|
|
COMMENT @see #updateDemandBonus()
|
|
METHOD method_21834 hasBeenUsed ()Z
|
|
COMMENT Returns whether this trade offer has already been used.
|
|
COMMENT
|
|
COMMENT <p>Checks if the number of times this trade offer has been used
|
|
COMMENT is greater than 0.
|
|
METHOD method_8244 use ()V
|
|
COMMENT Increments the number of times this trade offer has been used.
|
|
METHOD method_8248 getMaxUses ()I
|
|
COMMENT Returns the maximum number of times this trade offer can be used.
|
|
METHOD method_8249 getUses ()I
|
|
COMMENT Returns the number of times this trade offer has been used.
|
|
METHOD method_8250 getSellItem ()Lnet/minecraft/class_7317;
|
|
COMMENT Returns the sell item of this trade offer.
|
|
METHOD method_8251 toNbt ()Lnet/minecraft/class_2487;
|
|
METHOD method_8254 disable ()V
|
|
COMMENT Sets the number of times this trade offer has been used to
|
|
COMMENT its maximum uses, making it disabled.
|
|
METHOD method_8255 isDisabled ()Z
|
|
COMMENT Returns whether this trade offer is disabled.
|
|
COMMENT
|
|
COMMENT <p>Checks if the number of times this trade offer has been used
|
|
COMMENT is greater or equal to its maximum uses.
|
|
METHOD method_8256 shouldRewardPlayerExperience ()Z
|
|
COMMENT Returns whether experience should be given to a player when
|
|
COMMENT they use this trade offer.
|