Package net.minecraft.screen
Class VillagerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.VillagerScreenHandler
public class VillagerScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official ybintermediary net/minecraft/class_2005named net/minecraft/screen/VillagerScreenHandler
-
Field Summary
Fields Modifier and Type Field Description private Tradertraderprivate TraderInventorytraderInventoryprivate WorldworldFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
Constructors Constructor Description VillagerScreenHandler(PlayerInventory playerInventory, Trader trader, World world) -
Method Summary
Modifier and Type Method Description voidaddListener(ScreenHandlerListener listener)booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)TraderInventorygetTraderInventory()voidonContentChanged(Inventory inventory)voidsendContentUpdates()Sends updates to listeners if any properties or slot stacks have changed.voidsetProperty(int id, int value)voidsetRecipeIndex(int index)ItemStacktransferSlot(PlayerEntity player, int invSlot)Methods inherited from class net.minecraft.screen.ScreenHandler
addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, method_8096, method_8102, onButtonClick, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
trader
- Mappings:
Namespace Name Mixin selector official aLyb;a:Lacy;intermediary field_8513Lnet/minecraft/class_2005;field_8513:Lnet/minecraft/class_83;named traderLnet/minecraft/screen/VillagerScreenHandler;trader:Lnet/minecraft/entity/data/Trader;
-
traderInventory
- Mappings:
Namespace Name Mixin selector official fLyb;f:Lya;intermediary field_8514Lnet/minecraft/class_2005;field_8514:Lnet/minecraft/class_2004;named traderInventoryLnet/minecraft/screen/VillagerScreenHandler;traderInventory:Lnet/minecraft/village/TraderInventory;
-
world
- Mappings:
Namespace Name Mixin selector official gLyb;g:Ladm;intermediary field_8515Lnet/minecraft/class_2005;field_8515:Lnet/minecraft/class_99;named worldLnet/minecraft/screen/VillagerScreenHandler;world:Lnet/minecraft/world/World;
-
-
Constructor Details
-
VillagerScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lyb;<init>(Lwm;Lacy;Ladm;)Vintermediary <init>Lnet/minecraft/class_2005;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_83;Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/screen/VillagerScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/data/Trader;Lnet/minecraft/world/World;)V
-
-
Method Details
-
getTraderInventory
- Mappings:
Namespace Name Mixin selector official eLyb;e()Lya;intermediary method_8148Lnet/minecraft/class_2005;method_8148()Lnet/minecraft/class_2004;named getTraderInventoryLnet/minecraft/screen/VillagerScreenHandler;getTraderInventory()Lnet/minecraft/village/TraderInventory;
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lxn;)Vintermediary method_8107Lnet/minecraft/class_1983;method_8107(Lnet/minecraft/class_1991;)Vnamed addListenerLnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
sendContentUpdates
public void sendContentUpdates()Sends updates to listeners if any properties or slot stacks have changed.- Overrides:
sendContentUpdatesin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b()Vintermediary method_8113Lnet/minecraft/class_1983;method_8113()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Log;)Vintermediary method_8101Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setRecipeIndex
public void setRecipeIndex(int index)- Mappings:
Namespace Name Mixin selector official dLyb;d(I)Vintermediary method_8147Lnet/minecraft/class_2005;method_8147(I)Vnamed setRecipeIndexLnet/minecraft/screen/VillagerScreenHandler;setRecipeIndex(I)V
-
setProperty
- Overrides:
setPropertyin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(II)Vintermediary method_8115Lnet/minecraft/class_1983;method_8115(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lwn;)Zintermediary method_8104Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;I)Lzx;intermediary method_8118Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;)Vintermediary method_8117Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-