Package net.minecraft.screen
Class EnchantingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.EnchantingScreenHandler
- Mappings:
Namespace Name official yrintermediary net/minecraft/class_1013named net/minecraft/screen/EnchantingScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]longprivate intprivate intprivate intprivate Randomprivate WorldFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
ConstructorsConstructorDescriptionEnchantingScreenHandler(PlayerInventory playerInventory, World world, int int2, int int3, int int4) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ScreenHandlerListener listener) booleancanUse(PlayerEntity player) voidclose(PlayerEntity player) booleanonButtonClick(PlayerEntity player, int id) voidonContentChanged(Inventory inventory) voidSends updates to listeners if any properties or slot stacks have changed.voidsetProperty(int id, int value) transferSlot(PlayerEntity player, int invSlot) Methods inherited from class net.minecraft.screen.ScreenHandler
addSlot, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, method_3255, method_5455, onSlotClick, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLyr;a:Lpn;intermediary field_4112Lnet/minecraft/class_1013;field_4112:Lnet/minecraft/class_849;named inventoryLnet/minecraft/screen/EnchantingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
world
- Mappings:
Namespace Name Mixin selector official hLyr;h:Lafm;intermediary field_4115Lnet/minecraft/class_1013;field_4115:Lnet/minecraft/class_1150;named worldLnet/minecraft/screen/EnchantingScreenHandler;world:Lnet/minecraft/world/World;
-
field_4116
private int field_4116- Mappings:
Namespace Name Mixin selector official iLyr;i:Iintermediary field_4116Lnet/minecraft/class_1013;field_4116:Inamed field_4116Lnet/minecraft/screen/EnchantingScreenHandler;field_4116:I
-
field_4117
private int field_4117- Mappings:
Namespace Name Mixin selector official jLyr;j:Iintermediary field_4117Lnet/minecraft/class_1013;field_4117:Inamed field_4117Lnet/minecraft/screen/EnchantingScreenHandler;field_4117:I
-
field_4118
private int field_4118- Mappings:
Namespace Name Mixin selector official kLyr;k:Iintermediary field_4118Lnet/minecraft/class_1013;field_4118:Inamed field_4118Lnet/minecraft/screen/EnchantingScreenHandler;field_4118:I
-
random
- Mappings:
Namespace Name Mixin selector official lLyr;l:Ljava/util/Random;intermediary field_4119Lnet/minecraft/class_1013;field_4119:Ljava/util/Random;named randomLnet/minecraft/screen/EnchantingScreenHandler;random:Ljava/util/Random;
-
field_4113
public long field_4113- Mappings:
Namespace Name Mixin selector official fLyr;f:Jintermediary field_4113Lnet/minecraft/class_1013;field_4113:Jnamed field_4113Lnet/minecraft/screen/EnchantingScreenHandler;field_4113:J
-
enchantmentId
public int[] enchantmentId- Mappings:
Namespace Name Mixin selector official gLyr;g:[Iintermediary field_4114Lnet/minecraft/class_1013;field_4114:[Inamed enchantmentIdLnet/minecraft/screen/EnchantingScreenHandler;enchantmentId:[I
-
-
Constructor Details
-
EnchantingScreenHandler
public EnchantingScreenHandler(PlayerInventory playerInventory, World world, int int2, int int3, int int4)
-
-
Method Details
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLyd;a(Lyn;)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 bLyd;b()Vintermediary method_3264Lnet/minecraft/class_1002;method_3264()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
setProperty
- Overrides:
setPropertyin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLyd;b(II)Vintermediary method_3266Lnet/minecraft/class_1002;method_3266(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLyd;a(Lpn;)Vintermediary method_3254Lnet/minecraft/class_1002;method_3254(Lnet/minecraft/class_849;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
onButtonClick
- Overrides:
onButtonClickin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLyd;a(Lxk;I)Zintermediary method_3258Lnet/minecraft/class_1002;method_3258(Lnet/minecraft/class_988;I)Znamed onButtonClickLnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLyd;b(Lxk;)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 aLyd;a(Lxk;)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 bLyd;b(Lxk;I)Labo;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;
-