Uses of Class
net.minecraft.world.item.trading.MerchantOffer
Package
Description
-
Uses of MerchantOffer in net.minecraft.client.gui.screens.inventory
Modifier and TypeMethodDescriptionprivate void
MerchantScreen.renderButtonArrows
(GuiGraphics p_283020_, MerchantOffer p_281926_, int p_282752_, int p_282179_) private void
MerchantScreen.renderProgressBar
(GuiGraphics p_281426_, int p_283008_, int p_283085_, MerchantOffer p_282094_) -
Uses of MerchantOffer in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionprivate boolean
ShowTradesToPlayer.playerItemStackMatchesCostOfOffer
(MerchantOffer p_24118_) -
Uses of MerchantOffer in net.minecraft.world.entity.npc
Modifier and TypeMethodDescriptionVillagerTrades.DyedArmorForEmeralds.getOffer
(Entity p_219679_, RandomSource p_219680_) VillagerTrades.EmeraldForItems.getOffer
(Entity p_219682_, RandomSource p_219683_) VillagerTrades.EmeraldsForVillagerTypeItem.getOffer
(Entity p_219685_, RandomSource p_219686_) VillagerTrades.EnchantBookForEmeralds.getOffer
(Entity p_219688_, RandomSource p_219689_) VillagerTrades.EnchantedItemForEmeralds.getOffer
(Entity p_219691_, RandomSource p_219692_) VillagerTrades.FailureItemListing.getOffer
(Entity p_302036_, RandomSource p_301986_) VillagerTrades.ItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) VillagerTrades.ItemsAndEmeraldsToItems.getOffer
(Entity p_219696_, RandomSource p_219697_) VillagerTrades.ItemsForEmeralds.getOffer
(Entity p_219699_, RandomSource p_219700_) VillagerTrades.SuspiciousStewForEmerald.getOffer
(Entity p_219702_, RandomSource p_219703_) VillagerTrades.TippedArrowForItemsAndEmeralds.getOffer
(Entity p_219705_, RandomSource p_219706_) VillagerTrades.TreasureMapForEmeralds.getOffer
(Entity p_219708_, RandomSource p_219709_) VillagerTrades.TypeSpecificTrade.getOffer
(Entity p_296480_, RandomSource p_295729_) Modifier and TypeMethodDescriptionvoid
AbstractVillager.notifyTrade
(MerchantOffer p_35274_) void
ClientSideMerchant.notifyTrade
(MerchantOffer p_35346_) protected abstract void
AbstractVillager.rewardTradeXp
(MerchantOffer p_35299_) protected void
Villager.rewardTradeXp
(MerchantOffer p_35475_) protected void
WanderingTrader.rewardTradeXp
(MerchantOffer p_35859_) -
Uses of MerchantOffer in net.minecraft.world.inventory
-
Uses of MerchantOffer in net.minecraft.world.item.trading
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<MerchantOffer> MerchantOffer.CODEC
static final StreamCodec
<RegistryFriendlyByteBuf, MerchantOffer> MerchantOffer.STREAM_CODEC
Modifier and TypeMethodDescriptionMerchantOffer.copy()
static MerchantOffer
MerchantOffer.createFromStream
(RegistryFriendlyByteBuf p_320207_) MerchantOffers.getRecipeFor
(ItemStack p_45390_, ItemStack p_45391_, int p_45392_) Modifier and TypeMethodDescriptionvoid
Merchant.notifyTrade
(MerchantOffer p_45305_) private static void
MerchantOffer.writeToStream
(RegistryFriendlyByteBuf p_320530_, MerchantOffer p_320384_) -
Uses of MerchantOffer in net.neoforged.neoforge.common
Modifier and TypeMethodDescription@Nullable MerchantOffer
BasicItemListing.getOffer
(Entity p_219693_, RandomSource p_219694_) -
Uses of MerchantOffer in net.neoforged.neoforge.event.entity.player
Modifier and TypeMethodDescriptionTradeWithVillagerEvent.getMerchantOffer()
Returns theMerchantOffer
selected by the player to trade with.ModifierConstructorDescriptionTradeWithVillagerEvent
(Player player, MerchantOffer offer, AbstractVillager abstractVillager)