Package net.minecraft.screen
Class VillagerScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.VillagerScreenHandler
- Mappings:
Namespace Name official agkintermediary net/minecraft/class_1021named net/minecraft/screen/VillagerScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Traderprivate final TraderInventoryprivate final WorldFields inherited from class net.minecraft.screen.ScreenHandler
field_15099, listeners, slots, syncId -
Constructor Summary
ConstructorsConstructorDescriptionVillagerScreenHandler(PlayerInventory playerInventory, Trader trader, World world) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) voidclose(PlayerEntity player) voidonContentChanged(Inventory inventory) voidsetRecipeIndex(int index) transferSlot(PlayerEntity player, int invSlot) Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, insertItem, isNotRestricted, method_13641, method_13642, method_14204, method_14205, method_3252, method_3255, onButtonClick, packClickData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage
-
Field Details
-
trader
- Mappings:
Namespace Name Mixin selector official aLagk;a:Lamf;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 fLagk;f:Lagj;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 gLagk;g:Lamu;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>Lagk;<init>(Laec;Lamf;Lamu;)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 eLagk;e()Lagj;intermediary method_3286Lnet/minecraft/class_1021;method_3286()Lnet/minecraft/class_1020;named getTraderInventoryLnet/minecraft/screen/VillagerScreenHandler;getTraderInventory()Lnet/minecraft/village/TraderInventory;
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLafr;a(Ltv;)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 dLagk;d(I)Vintermediary method_3285Lnet/minecraft/class_1021;method_3285(I)Vnamed setRecipeIndexLnet/minecraft/screen/VillagerScreenHandler;setRecipeIndex(I)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLafr;a(Laed;)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 bLafr;b(Laed;I)Laip;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 bLafr;b(Laed;)Vintermediary method_3257Lnet/minecraft/class_1002;method_3257(Lnet/minecraft/class_988;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-