mirror of https://github.com/FabricMC/yarn.git
168 lines
7.1 KiB
Plaintext
168 lines
7.1 KiB
Plaintext
CLASS net/minecraft/class_1914 net/minecraft/village/TradeOffer
|
|
FIELD field_18676 specialPrice I
|
|
FIELD field_18677 demandBonus I
|
|
FIELD field_18678 priceMultiplier F
|
|
FIELD field_18679 merchantExperience I
|
|
FIELD field_48371 PACKET_CODEC Lnet/minecraft/class_9139;
|
|
FIELD field_48849 CODEC Lcom/mojang/serialization/Codec;
|
|
FIELD field_9143 secondBuyItem Ljava/util/Optional;
|
|
FIELD field_9144 maxUses I
|
|
FIELD field_9145 rewardingPlayerExperience Z
|
|
FIELD field_9146 firstBuyItem Lnet/minecraft/class_9306;
|
|
FIELD field_9147 uses I
|
|
FIELD field_9148 sellItem Lnet/minecraft/class_1799;
|
|
METHOD <init> (Lnet/minecraft/class_1914;)V
|
|
ARG 1 offer
|
|
METHOD <init> (Lnet/minecraft/class_9306;Ljava/util/Optional;Lnet/minecraft/class_1799;IIF)V
|
|
ARG 1 firstBuyItem
|
|
ARG 2 secondBuyItem
|
|
ARG 3 sellItem
|
|
ARG 4 maxUses
|
|
ARG 5 merchantExperience
|
|
ARG 6 priceMultiplier
|
|
METHOD <init> (Lnet/minecraft/class_9306;Ljava/util/Optional;Lnet/minecraft/class_1799;IIIF)V
|
|
ARG 1 firstBuyItem
|
|
ARG 2 secondBuyItem
|
|
ARG 3 sellItem
|
|
ARG 4 uses
|
|
ARG 5 maxUses
|
|
ARG 6 merchantExperience
|
|
ARG 7 priceMultiplier
|
|
METHOD <init> (Lnet/minecraft/class_9306;Ljava/util/Optional;Lnet/minecraft/class_1799;IIIFI)V
|
|
ARG 1 firstBuyItem
|
|
ARG 2 secondBuyItem
|
|
ARG 3 sellItem
|
|
ARG 4 uses
|
|
ARG 5 maxUses
|
|
ARG 6 merchantExperience
|
|
ARG 7 priceMultiplier
|
|
ARG 8 demandBonus
|
|
METHOD <init> (Lnet/minecraft/class_9306;Ljava/util/Optional;Lnet/minecraft/class_1799;IIZIIFI)V
|
|
ARG 1 firstBuyItem
|
|
ARG 2 secondBuyItem
|
|
ARG 3 sellItem
|
|
ARG 4 uses
|
|
ARG 5 maxUses
|
|
ARG 6 rewardingPlayerExperience
|
|
ARG 7 specialPrice
|
|
ARG 8 demandBonus
|
|
ARG 9 priceMultiplier
|
|
ARG 10 merchantExperience
|
|
METHOD <init> (Lnet/minecraft/class_9306;Lnet/minecraft/class_1799;IIF)V
|
|
ARG 1 buyItem
|
|
ARG 2 sellItem
|
|
ARG 3 maxUses
|
|
ARG 4 merchantExperience
|
|
ARG 5 priceMultiplier
|
|
METHOD method_16952 matchesBuyItems (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
|
|
ARG 1 stack
|
|
ARG 2 buyItem
|
|
METHOD method_16953 depleteBuyItems (Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
|
|
ARG 1 firstBuyStack
|
|
ARG 2 secondBuyStack
|
|
METHOD method_18019 copySellItem ()Lnet/minecraft/class_1799;
|
|
COMMENT Returns a copy of the sell item of this trade offer.
|
|
METHOD method_19272 getDisplayedFirstBuyItem ()Lnet/minecraft/class_1799;
|
|
COMMENT Returns a copy of the first buy item of this trade offer,
|
|
COMMENT with its price adjusted depending on the demand bonus, the
|
|
COMMENT special price and the price multiplier.
|
|
METHOD method_19273 setSpecialPrice (I)V
|
|
COMMENT Sets the special price of this trade offer to {@code specialPrice}.
|
|
ARG 1 specialPrice
|
|
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_19276 clearSpecialPrice ()V
|
|
COMMENT Resets the special price of this trade offer.
|
|
METHOD method_19277 getSpecialPrice ()I
|
|
COMMENT Returns the special price of this trade offer. It is used to
|
|
COMMENT adjust the price of its first buy item.
|
|
COMMENT
|
|
COMMENT <p>The less the special price is, the more the price will be low.
|
|
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_53881 copy ()Lnet/minecraft/class_1914;
|
|
METHOD method_56110 read (Lnet/minecraft/class_9129;)Lnet/minecraft/class_1914;
|
|
ARG 0 buf
|
|
METHOD method_56111 write (Lnet/minecraft/class_9129;Lnet/minecraft/class_1914;)V
|
|
ARG 0 buf
|
|
ARG 1 offer
|
|
METHOD method_56705 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
|
|
ARG 0 instance
|
|
METHOD method_56707 (Lnet/minecraft/class_1914;)Ljava/lang/Integer;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56708 (Lnet/minecraft/class_1914;)Ljava/lang/Float;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56709 (Lnet/minecraft/class_1914;)Ljava/lang/Integer;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56710 (Lnet/minecraft/class_1914;)Ljava/lang/Integer;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56711 (Lnet/minecraft/class_1914;)Ljava/lang/Boolean;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56712 (Lnet/minecraft/class_1914;)Ljava/lang/Integer;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56713 (Lnet/minecraft/class_1914;)Ljava/lang/Integer;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56714 (Lnet/minecraft/class_1914;)Lnet/minecraft/class_1799;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56715 (Lnet/minecraft/class_1914;)Ljava/util/Optional;
|
|
ARG 0 tradeOffer
|
|
METHOD method_56716 (Lnet/minecraft/class_1914;)Lnet/minecraft/class_9306;
|
|
ARG 0 tradeOffer
|
|
METHOD method_57555 getFirstBuyItemCount (Lnet/minecraft/class_9306;)I
|
|
ARG 1 firstBuyItem
|
|
METHOD method_57556 getFirstBuyItem ()Lnet/minecraft/class_9306;
|
|
METHOD method_57557 getSecondBuyItem ()Ljava/util/Optional;
|
|
METHOD method_8244 use ()V
|
|
COMMENT Increments the number of times this trade offer has been used.
|
|
METHOD method_8245 increaseSpecialPrice (I)V
|
|
COMMENT Increases the special price of this trade offer by {@code increment}.
|
|
COMMENT
|
|
COMMENT <p>A negative {@code increment} value will decrease the special price.
|
|
ARG 1 increment
|
|
METHOD method_8246 getOriginalFirstBuyItem ()Lnet/minecraft/class_1799;
|
|
COMMENT Returns the first buy item of this trade offer.
|
|
METHOD method_8247 getDisplayedSecondBuyItem ()Lnet/minecraft/class_1799;
|
|
COMMENT Returns the second buy item of this trade offer.
|
|
COMMENT
|
|
COMMENT <p>If there is no second buy item, this returns the {@linkplain ItemStack#EMPTY empty
|
|
COMMENT item stack}.
|
|
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_1799;
|
|
COMMENT Returns the sell item of this trade offer.
|
|
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.
|