Package net.minecraft.screen
Class EnchantingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.EnchantingScreenHandler
public class EnchantingScreenHandler extends ScreenHandler
- Mappings:
Namespace Name official xsintermediary net/minecraft/class_1996named net/minecraft/screen/EnchantingScreenHandler
-
Field Summary
Fields Modifier and Type Field Description int[]enchantmentIdint[]enchantmentLevelintenchantmentPowerInventoryinventoryprivate BlockPosposprivate Randomrandomprivate WorldworldFields inherited from class net.minecraft.screen.ScreenHandler
listeners, slots, syncId, trackedStacks -
Constructor Summary
Constructors Constructor Description EnchantingScreenHandler(PlayerInventory playerInventory, World world)EnchantingScreenHandler(PlayerInventory playerInventory, World world, BlockPos pos) -
Method Summary
Modifier and Type Method Description voidaddListener(ScreenHandlerListener listener)booleancanUse(PlayerEntity player)voidclose(PlayerEntity player)intgetLapisCount()private List<EnchantmentInfoEntry>getRandomEnchantments(ItemStack stack, int modifier, int int2)booleanonButtonClick(PlayerEntity player, int id)voidonContentChanged(Inventory inventory)voidsendContentUpdates()Sends updates to listeners if any properties or slot stacks have changed.voidsetProperty(int id, int value)ItemStacktransferSlot(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_8096, method_8102, onSlotClick, packClickData, removeListener, setPlayerRestriction, setStackInSlot, shouldQuickCraftContinue, unpackButtonId, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLxs;a:Log;intermediary field_8479Lnet/minecraft/class_1996;field_8479:Lnet/minecraft/class_1718;named inventoryLnet/minecraft/screen/EnchantingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
world
- Mappings:
Namespace Name Mixin selector official iLxs;i:Ladm;intermediary field_8483Lnet/minecraft/class_1996;field_8483:Lnet/minecraft/class_99;named worldLnet/minecraft/screen/EnchantingScreenHandler;world:Lnet/minecraft/world/World;
-
pos
- Mappings:
Namespace Name Mixin selector official jLxs;j:Lcj;intermediary field_8484Lnet/minecraft/class_1996;field_8484:Lnet/minecraft/class_1372;named posLnet/minecraft/screen/EnchantingScreenHandler;pos:Lnet/minecraft/util/math/BlockPos;
-
random
- Mappings:
Namespace Name Mixin selector official kLxs;k:Ljava/util/Random;intermediary field_8485Lnet/minecraft/class_1996;field_8485:Ljava/util/Random;named randomLnet/minecraft/screen/EnchantingScreenHandler;random:Ljava/util/Random;
-
enchantmentPower
public int enchantmentPower- Mappings:
Namespace Name Mixin selector official fLxs;f:Iintermediary field_8480Lnet/minecraft/class_1996;field_8480:Inamed enchantmentPowerLnet/minecraft/screen/EnchantingScreenHandler;enchantmentPower:I
-
enchantmentId
public int[] enchantmentId- Mappings:
Namespace Name Mixin selector official gLxs;g:[Iintermediary field_8481Lnet/minecraft/class_1996;field_8481:[Inamed enchantmentIdLnet/minecraft/screen/EnchantingScreenHandler;enchantmentId:[I
-
enchantmentLevel
public int[] enchantmentLevel- Mappings:
Namespace Name Mixin selector official hLxs;h:[Iintermediary field_8482Lnet/minecraft/class_1996;field_8482:[Inamed enchantmentLevelLnet/minecraft/screen/EnchantingScreenHandler;enchantmentLevel:[I
-
-
Constructor Details
-
EnchantingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lxs;<init>(Lwm;Ladm;)Vintermediary <init>Lnet/minecraft/class_1996;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_99;)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>Lxs;<init>(Lwm;Ladm;Lcj;)Vintermediary <init>Lnet/minecraft/class_1996;<init>(Lnet/minecraft/class_1962;Lnet/minecraft/class_99;Lnet/minecraft/class_1372;)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 aLxi;a(Lxn;)Vintermediary method_8107Lnet/minecraft/class_1983;method_8107(Lnet/minecraft/class_1991;)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 bLxi;b()Vintermediary method_8113Lnet/minecraft/class_1983;method_8113()Vnamed sendContentUpdatesLnet/minecraft/screen/ScreenHandler;sendContentUpdates()V
-
setProperty
- Overrides:
setPropertyin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(II)Vintermediary method_8115Lnet/minecraft/class_1983;method_8115(II)Vnamed setPropertyLnet/minecraft/screen/ScreenHandler;setProperty(II)V
-
onContentChanged
- Overrides:
onContentChangedin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Log;)Vintermediary method_8101Lnet/minecraft/class_1983;method_8101(Lnet/minecraft/class_1718;)Vnamed onContentChangedLnet/minecraft/screen/ScreenHandler;onContentChanged(Lnet/minecraft/inventory/Inventory;)V
-
onButtonClick
- Overrides:
onButtonClickin classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lwn;I)Zintermediary method_8105Lnet/minecraft/class_1983;method_8105(Lnet/minecraft/class_1963;I)Znamed onButtonClickLnet/minecraft/screen/ScreenHandler;onButtonClick(Lnet/minecraft/entity/player/PlayerEntity;I)Z
-
getRandomEnchantments
- Mappings:
Namespace Name Mixin selector official aLxs;a(Lzx;II)Ljava/util/List;intermediary method_8139Lnet/minecraft/class_1996;method_8139(Lnet/minecraft/class_2056;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 eLxs;e()Iintermediary method_8140Lnet/minecraft/class_1996;method_8140()Inamed getLapisCountLnet/minecraft/screen/EnchantingScreenHandler;getLapisCount()I
-
close
- Overrides:
closein classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;)Vintermediary method_8117Lnet/minecraft/class_1983;method_8117(Lnet/minecraft/class_1963;)Vnamed closeLnet/minecraft/screen/ScreenHandler;close(Lnet/minecraft/entity/player/PlayerEntity;)V
-
canUse
- Specified by:
canUsein classScreenHandler- Mappings:
Namespace Name Mixin selector official aLxi;a(Lwn;)Zintermediary method_8104Lnet/minecraft/class_1983;method_8104(Lnet/minecraft/class_1963;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
- Overrides:
transferSlotin classScreenHandler- Mappings:
Namespace Name Mixin selector official bLxi;b(Lwn;I)Lzx;intermediary method_8118Lnet/minecraft/class_1983;method_8118(Lnet/minecraft/class_1963;I)Lnet/minecraft/class_2056;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-