Package net.minecraft.screen
Class EnchantingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.EnchantingScreenHandler
- Mappings:
Namespace Name official aiqintermediary net/minecraft/class_1013named net/minecraft/screen/EnchantingScreenHandler
-
Field Summary
FieldsFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
ConstructorsConstructorDescriptionEnchantingScreenHandler(PlayerInventory playerInventory, World world) EnchantingScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ScreenHandlerListener listener) booleancanUse(PlayerEntity player) voidclose(PlayerEntity player) intprivate ListgetRandomEnchantments(ItemStack stack, int modifier, int int2) 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, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, endQuickCraft, getNextActionId, getSlot, getStacks, insertItem, isNotRestricted, method_3255, onSlotClick, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLaiq;a:Lvq;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 iLaiq;i:Laqu;intermediary field_4115Lnet/minecraft/class_1013;field_4115:Lnet/minecraft/class_1150;named worldLnet/minecraft/screen/EnchantingScreenHandler;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official jLaiq;j:Ldt;intermediary field_12147Lnet/minecraft/class_1013;field_12147:Lnet/minecraft/class_2552;named posLnet/minecraft/screen/EnchantingScreenHandler;pos:Lnet/minecraft/util/math/BlockPos;
-
random
- Mappings:
Namespace Name Mixin selector official kLaiq;k:Ljava/util/Random;intermediary field_4119Lnet/minecraft/class_1013;field_4119:Ljava/util/Random;named randomLnet/minecraft/screen/EnchantingScreenHandler;random:Ljava/util/Random;
-
enchantmentPower
public int enchantmentPower- Mappings:
Namespace Name Mixin selector official fLaiq;f:Iintermediary field_12145Lnet/minecraft/class_1013;field_12145:Inamed enchantmentPowerLnet/minecraft/screen/EnchantingScreenHandler;enchantmentPower:I
-
enchantmentId
public int[] enchantmentId- Mappings:
Namespace Name Mixin selector official gLaiq;g:[Iintermediary field_4114Lnet/minecraft/class_1013;field_4114:[Inamed enchantmentIdLnet/minecraft/screen/EnchantingScreenHandler;enchantmentId:[I
-
enchantmentLevel
public int[] enchantmentLevel- Mappings:
Namespace Name Mixin selector official hLaiq;h:[Iintermediary field_12146Lnet/minecraft/class_1013;field_12146:[Inamed enchantmentLevelLnet/minecraft/screen/EnchantingScreenHandler;enchantmentLevel:[I
-
-
Constructor Details
-
EnchantingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Laiq;<init>(Lahb;Laqu;)Vintermediary <init>Lnet/minecraft/class_1013;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/screen/EnchantingScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;)V
-
EnchantingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Laiq;<init>(Lahb;Laqu;Ldt;)Vintermediary <init>Lnet/minecraft/class_1013;<init>(Lnet/minecraft/class_987;Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Vnamed <init>Lnet/minecraft/screen/EnchantingScreenHandler;<init>(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V
-
-
Method Details
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLaib;a(Lail;)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 bLaib;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 bLaib;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 aLaib;a(Lvq;)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 aLaib;a(Lahd;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
-
getRandomEnchantments
- Mappings:
Namespace Name Mixin selector official aLaiq;a(Lamj;II)Ljava/util/List;intermediary method_11261Lnet/minecraft/class_1013;method_11261(Lnet/minecraft/class_1071;II)Ljava/util/List;named getRandomEnchantmentsLnet/minecraft/screen/EnchantingScreenHandler;getRandomEnchantments(Lnet/minecraft/item/ItemStack;II)Ljava/util/List;
-
getLapisCount
- Mappings:
Namespace Name Mixin selector official eLaiq;e()Iintermediary method_11262Lnet/minecraft/class_1013;method_11262()Inamed getLapisCountLnet/minecraft/screen/EnchantingScreenHandler;getLapisCount()I
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLaib;b(Lahd;)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 aLaib;a(Lahd;)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 bLaib;b(Lahd;I)Lamj;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;
-