net.minecraft.village

public class VillagerTrade

implements LootTableReportable

net.minecraft.world.item.trading.VillagerTrade
net.minecraft.world.item.trading.VillagerTrade
net.minecraft.class_1_30
net.minecraft.village.VillagerTrade

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<VillagerTrade>
CODEC
CODEC
field_1_226
CODEC
private final TradedItemFactory
wants
wants
field_1_234
wants
private final Optional<TradedItemFactory>
additionalWants
additionalWants
field_1_227
additionalWants
private final SimpleItemStackView
gives
gives
field_1_230
gives
private final Optional<RegistryEntry<LootCondition>>
merchantPredicate
merchantPredicate
field_1_232
merchantPredicate
private final Optional<RegistryEntry<LootFunction>>
givenItemModifier
givenItemModifier
field_1_229
givenItemModifier
private final RegistryEntry<LootIntProvider>
maxUses
maxUses
field_1_231
maxUses
private final RegistryEntry<LootIntProvider>
xp
xp
field_1_235
xp
private final RegistryEntry<LootFloatProvider>
reputationDiscount
reputationDiscount
field_1_233
reputationDiscount
private final Optional<RegistryEntryList<Enchantment>>
doubleTradePriceEnchantments
doubleTradePriceEnchantments
field_1_228
doubleTradePriceEnchantments

Constructor summary

ModifierConstructor
private (TradedItemFactory wants, Optional<TradedItemFactory> additionalWants, SimpleItemStackView gives, RegistryEntry<LootIntProvider> maxUses, RegistryEntry<LootIntProvider> xp, RegistryEntry<LootFloatProvider> reputationDiscount, Optional<RegistryEntry<LootCondition>> merchantPredicate, Optional<RegistryEntry<LootFunction>> givenItemModifier, Optional<RegistryEntryList<Enchantment>> doubleTradePriceEnchantments)

Method summary

Modifier and TypeMethod
public void
validate(ValidationContext context)
validate(ValidationContext context)
method_292(class_58 arg0)
report(LootTableReporter arg0)
public TradeOffer
getOffer(LootContext lootContext)
getOffer(LootContext lootContext)
method_1_513(class_47 arg0)
createOffer(LootContext context)
public static VillagerTrade$Builder
builder(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount)
builder(TradeCost wants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount)
method_1_8670(class_1_25 arg0, class_1_107 arg1, int arg2, int arg3, float arg4)
builder(TradedItemFactory wants, SimpleItemStackView gives, int maxUses, int xp, float reputationDiscount)
public static VillagerTrade$Builder
builder(TradeCost wants, TradeCost additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount)
builder(TradeCost wants, TradeCost additionalWants, ItemStackTemplate gives, int maxUses, int xp, float reputationDiscount)
method_1_8671(class_1_25 arg0, class_1_25 arg1, class_1_107 arg2, int arg3, int arg4, float arg5)
builder(TradedItemFactory wants, TradedItemFactory additionalWants, SimpleItemStackView gives, int maxUses, int xp, float reputationDiscount)