Package net.minecraft.screen
Class MerchantScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.MerchantScreenHandler
public class MerchantScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official bkxintermediary net/minecraft/class_1728named net/minecraft/screen/MerchantScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private booleancanRefreshTradesprivate booleanleveledprivate intlevelProgressprivate Merchantmerchantprivate MerchantInventorymerchantInventoryFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description MerchantScreenHandler(int syncId, PlayerInventory playerInventory)MerchantScreenHandler(int syncId, PlayerInventory playerInventory, Merchant merchant) -
Method Summary
Modifier and Type Method Description private voidautofill(int slot, ItemStack stack)booleancanInsertIntoSlot(ItemStack stack, Slot slot)booleancanRefreshTrades()booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)intgetExperience()intgetLevelProgress()intgetMerchantRewardedExperience()TradeOfferListgetRecipes()booleanisLeveled()voidonContentChanged(Inventory inventory)private voidplayYesSound()voidsetCanLevel(boolean canLevel)voidsetExperienceFromServer(int experience)voidsetLevelProgress(int progress)voidsetOffers(TradeOfferList offers)voidsetRecipeIndex(int index)voidsetRefreshTrades(boolean refreshable)voidswitchTo(int recipeIndex)ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
merchant
- Mappings:
Namespace Name Mixin selector official cLbkx;c:Lbss;intermediary field_7863Lnet/minecraft/class_1728;field_7863:Lnet/minecraft/class_1915;named merchantLnet/minecraft/screen/MerchantScreenHandler;merchant:Lnet/minecraft/village/Merchant;
-
merchantInventory
- Mappings:
Namespace Name Mixin selector official dLbkx;d:Lbkw;intermediary field_7861Lnet/minecraft/class_1728;field_7861:Lnet/minecraft/class_1725;named merchantInventoryLnet/minecraft/screen/MerchantScreenHandler;merchantInventory:Lnet/minecraft/village/MerchantInventory;
-
levelProgress
- Mappings:
Namespace Name Mixin selector official eLbkx;e:Iintermediary field_18669Lnet/minecraft/class_1728;field_18669:Inamed levelProgressLnet/minecraft/screen/MerchantScreenHandler;levelProgress:I
-
leveled
- Mappings:
Namespace Name Mixin selector official fLbkx;f:Zintermediary field_18670Lnet/minecraft/class_1728;field_18670:Znamed leveledLnet/minecraft/screen/MerchantScreenHandler;leveled:Z
-
canRefreshTrades
- Mappings:
Namespace Name Mixin selector official gLbkx;g:Zintermediary field_19358Lnet/minecraft/class_1728;field_19358:Znamed canRefreshTradesLnet/minecraft/screen/MerchantScreenHandler;canRefreshTrades:Z
-
-
Constructor Details
-
MerchantScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lbkx;<init>(ILbhl;)Vintermediary <init>Lnet/minecraft/class_1728;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/MerchantScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
MerchantScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lbkx;<init>(ILbhl;Lbss;)Vintermediary <init>Lnet/minecraft/class_1728;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_1915;)Vnamed <init>Lnet/minecraft/screen/MerchantScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/village/Merchant;)V
-
-
Method Details
-
setCanLevel
- Mappings:
Namespace Name Mixin selector official aLbkx;a(Z)Vintermediary method_19253Lnet/minecraft/class_1728;method_19253(Z)Vnamed setCanLevelLnet/minecraft/screen/MerchantScreenHandler;setCanLevel(Z)V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLbjs;a(Lapk;)Vintermediary method_7609Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setRecipeIndex
public void setRecipeIndex(int index)- Mappings:
Namespace Name Mixin selector official dLbkx;d(I)Vintermediary method_7650Lnet/minecraft/class_1728;method_7650(I)Vnamed setRecipeIndexLnet/minecraft/screen/MerchantScreenHandler;setRecipeIndex(I)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLbjs;a(Lbhm;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getExperience
- Mappings:
Namespace Name Mixin selector official eLbkx;e()Iintermediary method_19254Lnet/minecraft/class_1728;method_19254()Inamed getExperienceLnet/minecraft/screen/MerchantScreenHandler;getExperience()I
-
getMerchantRewardedExperience
- Mappings:
Namespace Name Mixin selector official fLbkx;f()Iintermediary method_19256Lnet/minecraft/class_1728;method_19256()Inamed getMerchantRewardedExperienceLnet/minecraft/screen/MerchantScreenHandler;getMerchantRewardedExperience()I
-
setExperienceFromServer
- Mappings:
Namespace Name Mixin selector official eLbkx;e(I)Vintermediary method_19255Lnet/minecraft/class_1728;method_19255(I)Vnamed setExperienceFromServerLnet/minecraft/screen/MerchantScreenHandler;setExperienceFromServer(I)V
-
getLevelProgress
- Mappings:
Namespace Name Mixin selector official gLbkx;g()Iintermediary method_19258Lnet/minecraft/class_1728;method_19258()Inamed getLevelProgressLnet/minecraft/screen/MerchantScreenHandler;getLevelProgress()I
-
setLevelProgress
- Mappings:
Namespace Name Mixin selector official fLbkx;f(I)Vintermediary method_19257Lnet/minecraft/class_1728;method_19257(I)Vnamed setLevelProgressLnet/minecraft/screen/MerchantScreenHandler;setLevelProgress(I)V
-
setRefreshTrades
- Mappings:
Namespace Name Mixin selector official bLbkx;b(Z)Vintermediary method_20700Lnet/minecraft/class_1728;method_20700(Z)Vnamed setRefreshTradesLnet/minecraft/screen/MerchantScreenHandler;setRefreshTrades(Z)V
-
canRefreshTrades
- Mappings:
Namespace Name Mixin selector official hLbkx;h()Zintermediary method_20701Lnet/minecraft/class_1728;method_20701()Znamed canRefreshTradesLnet/minecraft/screen/MerchantScreenHandler;canRefreshTrades()Z
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLbjs;a(Lbnw;Lbli;)Zintermediary method_7613Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLbjs;b(Lbhm;I)Lbnw;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
playYesSound
private void playYesSound()- Mappings:
Namespace Name Mixin selector official kLbkx;k()Vintermediary method_20595Lnet/minecraft/class_1728;method_20595()Vnamed playYesSoundLnet/minecraft/screen/MerchantScreenHandler;playYesSound()V
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLbjs;b(Lbhm;)Vintermediary method_7595Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
switchTo
public void switchTo(int recipeIndex)- Mappings:
Namespace Name Mixin selector official gLbkx;g(I)Vintermediary method_20215Lnet/minecraft/class_1728;method_20215(I)Vnamed switchToLnet/minecraft/screen/MerchantScreenHandler;switchTo(I)V
-
autofill
- Mappings:
Namespace Name Mixin selector official bLbkx;b(ILbnw;)Vintermediary method_20214Lnet/minecraft/class_1728;method_20214(ILnet/minecraft/class_1799;)Vnamed autofillLnet/minecraft/screen/MerchantScreenHandler;autofill(ILnet/minecraft/item/ItemStack;)V
-
setOffers
- Mappings:
Namespace Name Mixin selector official aLbkx;a(Lbsu;)Vintermediary method_17437Lnet/minecraft/class_1728;method_17437(Lnet/minecraft/class_1916;)Vnamed setOffersLnet/minecraft/screen/MerchantScreenHandler;setOffers(Lnet/minecraft/village/TradeOfferList;)V
-
getRecipes
- Mappings:
Namespace Name Mixin selector official iLbkx;i()Lbsu;intermediary method_17438Lnet/minecraft/class_1728;method_17438()Lnet/minecraft/class_1916;named getRecipesLnet/minecraft/screen/MerchantScreenHandler;getRecipes()Lnet/minecraft/village/TradeOfferList;
-
isLeveled
- Mappings:
Namespace Name Mixin selector official jLbkx;j()Zintermediary method_19259Lnet/minecraft/class_1728;method_19259()Znamed isLeveledLnet/minecraft/screen/MerchantScreenHandler;isLeveled()Z
-