Package net.minecraft.screen
Class VillagerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.VillagerScreenHandler
- Mappings:
Namespace Name official abointermediary net/minecraft/class_1021named net/minecraft/screen/VillagerScreenHandler
-
Field Summary
FieldsFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
ConstructorsConstructorDescriptionVillagerScreenHandler(PlayerInventory playerInventory, Trader trader, World world) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ScreenHandlerListener listener) booleancanUse(PlayerEntity player) voidclose(PlayerEntity player) voidonContentChanged(Inventory inventory) voidSends updates to listeners if any properties or slot stacks have changed.voidsetProperty(int id, int value) voidsetRecipeIndex(int index) transferSlot(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_3252, method_3255, onButtonClick, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
trader
- Mappings:
Namespace Name Mixin selector official aLabo;a:Lahf;intermediary field_4138Lnet/minecraft/class_1021;field_4138:Lnet/minecraft/class_1143;named traderLnet/minecraft/screen/VillagerScreenHandler;trader:Lnet/minecraft/entity/data/Trader;
-
traderInventory
- Mappings:
Namespace Name Mixin selector official fLabo;f:Labn;intermediary field_4139Lnet/minecraft/class_1021;field_4139:Lnet/minecraft/class_1020;named traderInventoryLnet/minecraft/screen/VillagerScreenHandler;traderInventory:Lnet/minecraft/village/TraderInventory;
-
world
- Mappings:
Namespace Name Mixin selector official gLabo;g:Laht;intermediary field_4140Lnet/minecraft/class_1021;field_4140:Lnet/minecraft/class_1150;named worldLnet/minecraft/screen/VillagerScreenHandler;world:Lnet/minecraft/world/World;
-
-
Constructor Details
-
VillagerScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Labo;<init>(Lzi;Lahf;Laht;)Vintermediary <init>Lnet/minecraft/class_1021;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1143;Lnet/minecraft/class_1150;)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 eLabo;e()Labn;intermediary method_3286Lnet/minecraft/class_1021;method_3286()Lnet/minecraft/class_1020;named getTraderInventoryLnet/minecraft/screen/VillagerScreenHandler;getTraderInventory()Lnet/minecraft/village/TraderInventory;
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLaau;a(Laba;)Vintermediary method_3260Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)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 bLaau;b()Vintermediary method_3264Lnet/minecraft/class_1002;method_3264()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLaau;a(Lqg;)Vintermediary method_3254Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
setRecipeIndex
public void setRecipeIndex(int index) - Mappings:
Namespace Name Mixin selector official dLabo;d(I)Vintermediary method_3285Lnet/minecraft/class_1021;method_3285(I)Vnamed setRecipeIndexLnet/minecraft/screen/VillagerScreenHandler;setRecipeIndex(I)V
-
setProperty
- Overrides:
setPropertyin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLaau;b(II)Vintermediary method_3266Lnet/minecraft/class_1002;method_3266(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLaau;a(Lzj;)Zintermediary method_3269Lnet/minecraft/class_1002;method_3269(Lnet/minecraft/class_988;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLaau;b(Lzj;I)Ladq;intermediary method_3265Lnet/minecraft/class_1002;method_3265(Lnet/minecraft/class_988;I)Lnet/minecraft/class_1071;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 bLaau;b(Lzj;)Vintermediary method_3257Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-