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 bkw
intermediary net/minecraft/class_1728
named net/minecraft/screen/MerchantScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private boolean
canRefreshTrades
private boolean
leveled
private int
levelProgress
private Merchant
merchant
private MerchantInventory
merchantInventory
Fields 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 void
autofill(int slot, ItemStack stack)
boolean
canInsertIntoSlot(ItemStack stack, Slot slot)
boolean
canRefreshTrades()
boolean
canUse(PlayerEntity player)
void
close(PlayerEntity player)
int
getExperience()
int
getLevelProgress()
int
getMerchantRewardedExperience()
TradeOfferList
getRecipes()
boolean
isLeveled()
void
onContentChanged(Inventory inventory)
private void
playYesSound()
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)
ItemStack
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, 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 c
Lbkw;c:Lbsr;
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 d
Lbkw;d:Lbkv;
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
- Mappings:
Namespace Name Mixin selector official e
Lbkw;e:I
intermediary field_18669
Lnet/minecraft/class_1728;field_18669:I
named levelProgress
Lnet/minecraft/screen/MerchantScreenHandler;levelProgress:I
-
leveled
- Mappings:
Namespace Name Mixin selector official f
Lbkw;f:Z
intermediary field_18670
Lnet/minecraft/class_1728;field_18670:Z
named leveled
Lnet/minecraft/screen/MerchantScreenHandler;leveled:Z
-
canRefreshTrades
- Mappings:
Namespace Name Mixin selector official g
Lbkw;g: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>
Lbkw;<init>(ILbhk;)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>
Lbkw;<init>(ILbhk;Lbsr;)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
- Mappings:
Namespace Name Mixin selector official a
Lbkw;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
Lbjr;a(Lapj;)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
Lbkw;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
Lbjr;a(Lbhl;)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
- Mappings:
Namespace Name Mixin selector official e
Lbkw;e()I
intermediary method_19254
Lnet/minecraft/class_1728;method_19254()I
named getExperience
Lnet/minecraft/screen/MerchantScreenHandler;getExperience()I
-
getMerchantRewardedExperience
- Mappings:
Namespace Name Mixin selector official f
Lbkw;f()I
intermediary method_19256
Lnet/minecraft/class_1728;method_19256()I
named getMerchantRewardedExperience
Lnet/minecraft/screen/MerchantScreenHandler;getMerchantRewardedExperience()I
-
setExperienceFromServer
- Mappings:
Namespace Name Mixin selector official e
Lbkw;e(I)V
intermediary method_19255
Lnet/minecraft/class_1728;method_19255(I)V
named setExperienceFromServer
Lnet/minecraft/screen/MerchantScreenHandler;setExperienceFromServer(I)V
-
getLevelProgress
- Mappings:
Namespace Name Mixin selector official g
Lbkw;g()I
intermediary method_19258
Lnet/minecraft/class_1728;method_19258()I
named getLevelProgress
Lnet/minecraft/screen/MerchantScreenHandler;getLevelProgress()I
-
setLevelProgress
- Mappings:
Namespace Name Mixin selector official f
Lbkw;f(I)V
intermediary method_19257
Lnet/minecraft/class_1728;method_19257(I)V
named setLevelProgress
Lnet/minecraft/screen/MerchantScreenHandler;setLevelProgress(I)V
-
setRefreshTrades
- Mappings:
Namespace Name Mixin selector official b
Lbkw;b(Z)V
intermediary method_20700
Lnet/minecraft/class_1728;method_20700(Z)V
named setRefreshTrades
Lnet/minecraft/screen/MerchantScreenHandler;setRefreshTrades(Z)V
-
canRefreshTrades
- Mappings:
Namespace Name Mixin selector official h
Lbkw;h()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
Lbjr;a(Lbnv;Lblh;)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
Lbjr;b(Lbhl;I)Lbnv;
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 k
Lbkw;k()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
Lbjr;b(Lbhl;)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
Lbkw;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 b
Lbkw;b(ILbnv;)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
Lbkw;a(Lbst;)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 i
Lbkw;i()Lbst;
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
- Mappings:
Namespace Name Mixin selector official j
Lbkw;j()Z
intermediary method_19259
Lnet/minecraft/class_1728;method_19259()Z
named isLeveled
Lnet/minecraft/screen/MerchantScreenHandler;isLeveled()Z
-