Package net.minecraft.screen
Class EnchantingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.EnchantingScreenHandler
- Mappings:
Namespace Name official abointermediary 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
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 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, getStacks, insertItem, isNotRestricted, method_3252, method_3255, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLabo;a:Lql;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 jLabo;j:Laid;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 kLabo;k:Lcm;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 lLabo;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 fLabo;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 gLabo;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 hLabo;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 iLabo;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>Labo;<init>(Lzr;Laid;)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>Labo;<init>(Lzr;Laid;Lcm;)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 cLabo;c(Labj;)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 aLabd;a(Labj;)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 bLabd;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 bLabd;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 aLabd;a(Lql;)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 aLabd;a(Lzs;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 aLabo;a(Ladz;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 eLabo;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 bLabd;b(Lzs;)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 aLabd;a(Lzs;)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 bLabd;b(Lzs;I)Ladz;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;
-