Package net.minecraft.screen
Class AnvilScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AnvilScreenHandler
- Mappings:
Namespace Name official afsintermediary net/minecraft/class_1421named net/minecraft/screen/AnvilScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BlockPosprivate intprivate Stringprivate final Inventoryprivate static final Loggerprivate final PlayerEntityintprivate final Inventoryprivate final WorldFields inherited from class net.minecraft.screen.ScreenHandler
field_15099, listeners, slots, syncId -
Constructor Summary
ConstructorsConstructorDescriptionAnvilScreenHandler(PlayerInventory playerInventory, World world, PlayerEntity player) AnvilScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos, PlayerEntity player) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ScreenHandlerListener listener) booleancanUse(PlayerEntity player) voidclose(PlayerEntity player) voidonContentChanged(Inventory inventory) voidvoidsetProperty(int id, int value) transferSlot(PlayerEntity player, int invSlot) voidMethods inherited from class net.minecraft.screen.ScreenHandler
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, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official fLafs;f:Lorg/apache/logging/log4j/Logger;intermediary field_9144Lnet/minecraft/class_1421;field_9144:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/screen/AnvilScreenHandler;LOGGER:Lorg/apache/logging/log4j/Logger;
-
resultInventory
- Mappings:
Namespace Name Mixin selector official gLafs;g:Ltv;intermediary field_5414Lnet/minecraft/class_1421;field_5414:Lnet/minecraft/class_849;named resultInventoryLnet/minecraft/screen/AnvilScreenHandler;resultInventory:Lnet/minecraft/inventory/Inventory;
-
inventory
- Mappings:
Namespace Name Mixin selector official hLafs;h:Ltv;intermediary field_5415Lnet/minecraft/class_1421;field_5415:Lnet/minecraft/class_849;named inventoryLnet/minecraft/screen/AnvilScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
world
- Mappings:
Namespace Name Mixin selector official iLafs;i:Lamu;intermediary field_5416Lnet/minecraft/class_1421;field_5416:Lnet/minecraft/class_1150;named worldLnet/minecraft/screen/AnvilScreenHandler;world:Lnet/minecraft/world/World;
-
blockPos
- Mappings:
Namespace Name Mixin selector official jLafs;j:Let;intermediary field_12138Lnet/minecraft/class_1421;field_12138:Lnet/minecraft/class_2552;named blockPosLnet/minecraft/screen/AnvilScreenHandler;blockPos:Lnet/minecraft/util/math/BlockPos;
-
repairCost
public int repairCost- Mappings:
Namespace Name Mixin selector official aLafs;a:Iintermediary field_5413Lnet/minecraft/class_1421;field_5413:Inamed repairCostLnet/minecraft/screen/AnvilScreenHandler;repairCost:I
-
field_5420
private int field_5420- Mappings:
Namespace Name Mixin selector official kLafs;k:Iintermediary field_5420Lnet/minecraft/class_1421;field_5420:Inamed field_5420Lnet/minecraft/screen/AnvilScreenHandler;field_5420:I
-
field_5421
- Mappings:
Namespace Name Mixin selector official lLafs;l:Ljava/lang/String;intermediary field_5421Lnet/minecraft/class_1421;field_5421:Ljava/lang/String;named field_5421Lnet/minecraft/screen/AnvilScreenHandler;field_5421:Ljava/lang/String;
-
player
- Mappings:
Namespace Name Mixin selector official mLafs;m:Laed;intermediary field_5422Lnet/minecraft/class_1421;field_5422:Lnet/minecraft/class_988;named playerLnet/minecraft/screen/AnvilScreenHandler;player:Lnet/minecraft/entity/player/PlayerEntity;
-
-
Constructor Details
-
AnvilScreenHandler
@Environment(CLIENT) public AnvilScreenHandler(PlayerInventory playerInventory, World world, PlayerEntity player) - Mappings:
Namespace Name Mixin selector official <init>Lafs;<init>(Laec;Lamu;Laed;)Vintermediary <init>Lnet/minecraft/class_1421;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Vnamed <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
AnvilScreenHandler
public AnvilScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos, PlayerEntity player) - Mappings:
Namespace Name Mixin selector official <init>Lafs;<init>(Laec;Lamu;Let;Laed;)Vintermediary <init>Lnet/minecraft/class_1421;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_988;)Vnamed <init>Lnet/minecraft/screen/AnvilScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/player/PlayerEntity;)V
-
-
Method Details
-
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
-
updateResult
public void updateResult()- Mappings:
Namespace Name Mixin selector official eLafs;e()Vintermediary method_4596Lnet/minecraft/class_1421;method_4596()Vnamed updateResultLnet/minecraft/screen/AnvilScreenHandler;updateResult()V
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLafr;a(Lafx;)Vintermediary method_3260Lnet/minecraft/class_1002;method_3260(Lnet/minecraft/class_1006;)Vnamed addListenerLnet/minecraft/screen/ScreenHandler;addListener(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
setProperty
- Overrides:
setPropertyin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLafr;b(II)Vintermediary method_3266Lnet/minecraft/class_1002;method_3266(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
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
-
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;
-
rename
- Mappings:
Namespace Name Mixin selector official aLafs;a(Ljava/lang/String;)Vintermediary method_4593Lnet/minecraft/class_1421;method_4593(Ljava/lang/String;)Vnamed renameLnet/minecraft/screen/AnvilScreenHandler;rename(Ljava/lang/String;)V
-