Package net.minecraft.screen
Class MerchantScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.MerchantScreenHandler
- Mappings:
Namespace Name official bnp
intermediary net/minecraft/class_1728
named net/minecraft/screen/MerchantScreenHandler
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
protected static int
protected static int
protected static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private boolean
private int
private Merchant
private MerchantInventory
Fields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
-
Constructor Summary
ConstructorDescriptionMerchantScreenHandler(int syncId, PlayerInventory playerInventory)
MerchantScreenHandler(int syncId, PlayerInventory playerInventory, Merchant merchant)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
boolean
canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
boolean
canUse(PlayerEntity player)
void
close(PlayerEntity playerEntity)
int
int
int
boolean
void
onContentChanged(Inventory inventory)
private void
void
setCanLevel(boolean canLevel)
void
setExperienceFromServer(int experience)
void
setLevelProgress(int progress)
void
setOffers(TradeOfferList offers)
void
setRecipeIndex(int index)
void
setRefreshTrades(boolean refreshable)
void
switchTo(int recipeIndex)
transferSlot(PlayerEntity player, int index)
Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getSlot, getStacks, getType, insertItem, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler
-
Field Details
-
field_30830
protected static final int field_30830- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official k
Lbnp;k:I
intermediary field_30830
Lnet/minecraft/class_1728;field_30830:I
named field_30830
Lnet/minecraft/screen/MerchantScreenHandler;field_30830:I
-
field_30831
protected static final int field_30831- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official l
Lbnp;l:I
intermediary field_30831
Lnet/minecraft/class_1728;field_30831:I
named field_30831
Lnet/minecraft/screen/MerchantScreenHandler;field_30831:I
-
field_30832
protected static final int field_30832- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official m
Lbnp;m:I
intermediary field_30832
Lnet/minecraft/class_1728;field_30832:I
named field_30832
Lnet/minecraft/screen/MerchantScreenHandler;field_30832:I
-
field_30833
private static final int field_30833- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official n
Lbnp;n:I
intermediary field_30833
Lnet/minecraft/class_1728;field_30833:I
named field_30833
Lnet/minecraft/screen/MerchantScreenHandler;field_30833:I
-
field_30834
private static final int field_30834- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official o
Lbnp;o:I
intermediary field_30834
Lnet/minecraft/class_1728;field_30834:I
named field_30834
Lnet/minecraft/screen/MerchantScreenHandler;field_30834:I
-
field_30835
private static final int field_30835- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official p
Lbnp;p:I
intermediary field_30835
Lnet/minecraft/class_1728;field_30835:I
named field_30835
Lnet/minecraft/screen/MerchantScreenHandler;field_30835:I
-
field_30836
private static final int field_30836- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official q
Lbnp;q:I
intermediary field_30836
Lnet/minecraft/class_1728;field_30836:I
named field_30836
Lnet/minecraft/screen/MerchantScreenHandler;field_30836:I
-
field_30837
private static final int field_30837- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official r
Lbnp;r:I
intermediary field_30837
Lnet/minecraft/class_1728;field_30837:I
named field_30837
Lnet/minecraft/screen/MerchantScreenHandler;field_30837:I
-
field_30838
private static final int field_30838- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official s
Lbnp;s:I
intermediary field_30838
Lnet/minecraft/class_1728;field_30838:I
named field_30838
Lnet/minecraft/screen/MerchantScreenHandler;field_30838:I
-
field_30839
private static final int field_30839- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official t
Lbnp;t:I
intermediary field_30839
Lnet/minecraft/class_1728;field_30839:I
named field_30839
Lnet/minecraft/screen/MerchantScreenHandler;field_30839:I
-
field_30840
private static final int field_30840- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official u
Lbnp;u:I
intermediary field_30840
Lnet/minecraft/class_1728;field_30840:I
named field_30840
Lnet/minecraft/screen/MerchantScreenHandler;field_30840:I
-
merchant
- Mappings:
Namespace Name Mixin selector official v
Lbnp;v:Lbvl;
intermediary field_7863
Lnet/minecraft/class_1728;field_7863:Lnet/minecraft/class_1915;
named merchant
Lnet/minecraft/screen/MerchantScreenHandler;merchant:Lnet/minecraft/village/Merchant;
-
merchantInventory
- Mappings:
Namespace Name Mixin selector official w
Lbnp;w:Lbno;
intermediary field_7861
Lnet/minecraft/class_1728;field_7861:Lnet/minecraft/class_1725;
named merchantInventory
Lnet/minecraft/screen/MerchantScreenHandler;merchantInventory:Lnet/minecraft/village/MerchantInventory;
-
levelProgress
private int levelProgress- Mappings:
Namespace Name Mixin selector official x
Lbnp;x:I
intermediary field_18669
Lnet/minecraft/class_1728;field_18669:I
named levelProgress
Lnet/minecraft/screen/MerchantScreenHandler;levelProgress:I
-
leveled
private boolean leveled- Mappings:
Namespace Name Mixin selector official y
Lbnp;y:Z
intermediary field_18670
Lnet/minecraft/class_1728;field_18670:Z
named leveled
Lnet/minecraft/screen/MerchantScreenHandler;leveled:Z
-
canRefreshTrades
private boolean canRefreshTrades- Mappings:
Namespace Name Mixin selector official z
Lbnp;z:Z
intermediary field_19358
Lnet/minecraft/class_1728;field_19358:Z
named canRefreshTrades
Lnet/minecraft/screen/MerchantScreenHandler;canRefreshTrades:Z
-
-
Constructor Details
-
MerchantScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lbnp;<init>(ILbkc;)V
intermediary <init>
Lnet/minecraft/class_1728;<init>(ILnet/minecraft/class_1661;)V
named <init>
Lnet/minecraft/screen/MerchantScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
MerchantScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>
Lbnp;<init>(ILbkc;Lbvl;)V
intermediary <init>
Lnet/minecraft/class_1728;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_1915;)V
named <init>
Lnet/minecraft/screen/MerchantScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/village/Merchant;)V
-
-
Method Details
-
setCanLevel
public void setCanLevel(boolean canLevel)- Mappings:
Namespace Name Mixin selector official a
Lbnp;a(Z)V
intermediary method_19253
Lnet/minecraft/class_1728;method_19253(Z)V
named setCanLevel
Lnet/minecraft/screen/MerchantScreenHandler;setCanLevel(Z)V
-
onContentChanged
- Overrides:
onContentChanged
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbmj;a(Lart;)V
intermediary method_7609
Lnet/minecraft/class_1703;method_7609(Lnet/minecraft/class_1263;)V
named onContentChanged
Lnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setRecipeIndex
public void setRecipeIndex(int index)- Mappings:
Namespace Name Mixin selector official d
Lbnp;d(I)V
intermediary method_7650
Lnet/minecraft/class_1728;method_7650(I)V
named setRecipeIndex
Lnet/minecraft/screen/MerchantScreenHandler;setRecipeIndex(I)V
-
canUse
- Specified by:
canUse
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbmj;a(Lbkd;)Z
intermediary method_7597
Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
named canUse
Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
getExperience
public int getExperience()- Mappings:
Namespace Name Mixin selector official i
Lbnp;i()I
intermediary method_19254
Lnet/minecraft/class_1728;method_19254()I
named getExperience
Lnet/minecraft/screen/MerchantScreenHandler;getExperience()I
-
getMerchantRewardedExperience
public int getMerchantRewardedExperience()- Mappings:
Namespace Name Mixin selector official j
Lbnp;j()I
intermediary method_19256
Lnet/minecraft/class_1728;method_19256()I
named getMerchantRewardedExperience
Lnet/minecraft/screen/MerchantScreenHandler;getMerchantRewardedExperience()I
-
setExperienceFromServer
public void setExperienceFromServer(int experience)- Mappings:
Namespace Name Mixin selector official e
Lbnp;e(I)V
intermediary method_19255
Lnet/minecraft/class_1728;method_19255(I)V
named setExperienceFromServer
Lnet/minecraft/screen/MerchantScreenHandler;setExperienceFromServer(I)V
-
getLevelProgress
public int getLevelProgress()- Mappings:
Namespace Name Mixin selector official k
Lbnp;k()I
intermediary method_19258
Lnet/minecraft/class_1728;method_19258()I
named getLevelProgress
Lnet/minecraft/screen/MerchantScreenHandler;getLevelProgress()I
-
setLevelProgress
public void setLevelProgress(int progress)- Mappings:
Namespace Name Mixin selector official f
Lbnp;f(I)V
intermediary method_19257
Lnet/minecraft/class_1728;method_19257(I)V
named setLevelProgress
Lnet/minecraft/screen/MerchantScreenHandler;setLevelProgress(I)V
-
setRefreshTrades
public void setRefreshTrades(boolean refreshable)- Mappings:
Namespace Name Mixin selector official b
Lbnp;b(Z)V
intermediary method_20700
Lnet/minecraft/class_1728;method_20700(Z)V
named setRefreshTrades
Lnet/minecraft/screen/MerchantScreenHandler;setRefreshTrades(Z)V
-
canRefreshTrades
public boolean canRefreshTrades()- Mappings:
Namespace Name Mixin selector official l
Lbnp;l()Z
intermediary method_20701
Lnet/minecraft/class_1728;method_20701()Z
named canRefreshTrades
Lnet/minecraft/screen/MerchantScreenHandler;canRefreshTrades()Z
-
canInsertIntoSlot
- Overrides:
canInsertIntoSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official a
Lbmj;a(Lbqp;Lboa;)Z
intermediary method_7613
Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z
named canInsertIntoSlot
Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
-
transferSlot
- Overrides:
transferSlot
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbmj;b(Lbkd;I)Lbqp;
intermediary method_7601
Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
named transferSlot
Lnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
playYesSound
private void playYesSound()- Mappings:
Namespace Name Mixin selector official o
Lbnp;o()V
intermediary method_20595
Lnet/minecraft/class_1728;method_20595()V
named playYesSound
Lnet/minecraft/screen/MerchantScreenHandler;playYesSound()V
-
close
- Overrides:
close
in classScreenHandler
- Mappings:
Namespace Name Mixin selector official b
Lbmj;b(Lbkd;)V
intermediary method_7595
Lnet/minecraft/class_1703;method_7595(Lnet/minecraft/class_1657;)V
named close
Lnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
switchTo
public void switchTo(int recipeIndex)- Mappings:
Namespace Name Mixin selector official g
Lbnp;g(I)V
intermediary method_20215
Lnet/minecraft/class_1728;method_20215(I)V
named switchTo
Lnet/minecraft/screen/MerchantScreenHandler;switchTo(I)V
-
autofill
- Mappings:
Namespace Name Mixin selector official c
Lbnp;c(ILbqp;)V
intermediary method_20214
Lnet/minecraft/class_1728;method_20214(ILnet/minecraft/class_1799;)V
named autofill
Lnet/minecraft/screen/MerchantScreenHandler;autofill(ILnet/minecraft/item/ItemStack;)V
-
setOffers
- Mappings:
Namespace Name Mixin selector official a
Lbnp;a(Lbvn;)V
intermediary method_17437
Lnet/minecraft/class_1728;method_17437(Lnet/minecraft/class_1916;)V
named setOffers
Lnet/minecraft/screen/MerchantScreenHandler;setOffers(Lnet/minecraft/village/TradeOfferList;)V
-
getRecipes
- Mappings:
Namespace Name Mixin selector official m
Lbnp;m()Lbvn;
intermediary method_17438
Lnet/minecraft/class_1728;method_17438()Lnet/minecraft/class_1916;
named getRecipes
Lnet/minecraft/screen/MerchantScreenHandler;getRecipes()Lnet/minecraft/village/TradeOfferList;
-
isLeveled
public boolean isLeveled()- Mappings:
Namespace Name Mixin selector official n
Lbnp;n()Z
intermediary method_19259
Lnet/minecraft/class_1728;method_19259()Z
named isLeveled
Lnet/minecraft/screen/MerchantScreenHandler;isLeveled()Z
-