Package net.minecraft.screen
Class EnchantingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.EnchantingScreenHandler
- Mappings:
Namespace Name official aqfintermediary net/minecraft/class_1013named net/minecraft/screen/EnchantingScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]int[]intint[]private final BlockPosprivate final Randomprivate final WorldFields inherited from class net.minecraft.screen.ScreenHandler
field_15099, listeners, slots, syncId -
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 List<EnchantmentLevelEntry>getRandomEnchantments(ItemStack stack, int modifier, int int2) protected voidmethod_11351(ScreenHandlerListener screenHandlerListener) 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, insertItem, isNotRestricted, method_13641, method_13642, method_14204, method_15965, method_15966, method_3252, method_3255, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLaqf;a:Lade;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 jLaqf;j:Laxy;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 kLaqf;k:Lel;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 lLaqf;l: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 fLaqf;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 gLaqf;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 hLaqf;h:[Iintermediary field_12146Lnet/minecraft/class_1013;field_12146:[Inamed enchantmentLevelLnet/minecraft/screen/EnchantingScreenHandler;enchantmentLevel:[I
-
field_12271
public int[] field_12271- Mappings:
Namespace Name Mixin selector official iLaqf;i:[Iintermediary field_12271Lnet/minecraft/class_1013;field_12271:[Inamed field_12271Lnet/minecraft/screen/EnchantingScreenHandler;field_12271:[I
-
-
Constructor Details
-
EnchantingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Laqf;<init>(Laof;Laxy;)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>Laqf;<init>(Laof;Laxy;Lel;)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
-
method_11351
- Mappings:
Namespace Name Mixin selector official cLaqf;c(Laqb;)Vintermediary method_11351Lnet/minecraft/class_1013;method_11351(Lnet/minecraft/class_1006;)Vnamed method_11351Lnet/minecraft/screen/EnchantingScreenHandler;method_11351(Lnet/minecraft/screen/ScreenHandlerListener;)V
-
addListener
- Overrides:
addListenerin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLapv;a(Laqb;)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 bLapv;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 bLapv;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 aLapv;a(Lade;)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 aLapv;a(Laog;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 aLaqf;a(Late;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 dLaqf;d()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 bLapv;b(Laog;)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 aLapv;a(Laog;)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 bLapv;b(Laog;I)Late;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;
-