Class FletchingScreenHandler

java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.FletchingScreenHandler

public class FletchingScreenHandler extends ScreenHandler
Mappings:
Namespace Name
official cqb
intermediary net/minecraft/class_9519
named net/minecraft/screen/FletchingScreenHandler
  • Field Details

    • field_50530

      public static final int field_50530
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcqb;k:I
      intermediary field_50530 Lnet/minecraft/class_9519;field_50530:I
      named field_50530 Lnet/minecraft/screen/FletchingScreenHandler;field_50530:I
    • field_50531

      public static final int field_50531
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcqb;l:I
      intermediary field_50531 Lnet/minecraft/class_9519;field_50531:I
      named field_50531 Lnet/minecraft/screen/FletchingScreenHandler;field_50531:I
    • field_50532

      public static final int field_50532
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcqb;m:I
      intermediary field_50532 Lnet/minecraft/class_9519;field_50532:I
      named field_50532 Lnet/minecraft/screen/FletchingScreenHandler;field_50532:I
    • field_50534

      private static final int field_50534
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lcqb;o:I
      intermediary field_50534 Lnet/minecraft/class_9519;field_50534:I
      named field_50534 Lnet/minecraft/screen/FletchingScreenHandler;field_50534:I
    • field_50535

      private static final int field_50535
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lcqb;p:I
      intermediary field_50535 Lnet/minecraft/class_9519;field_50535:I
      named field_50535 Lnet/minecraft/screen/FletchingScreenHandler;field_50535:I
    • field_50536

      private static final int field_50536
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Lcqb;q:I
      intermediary field_50536 Lnet/minecraft/class_9519;field_50536:I
      named field_50536 Lnet/minecraft/screen/FletchingScreenHandler;field_50536:I
    • field_50537

      private static final int field_50537
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Lcqb;r:I
      intermediary field_50537 Lnet/minecraft/class_9519;field_50537:I
      named field_50537 Lnet/minecraft/screen/FletchingScreenHandler;field_50537:I
    • field_50538

      private static final int field_50538
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official s Lcqb;s:I
      intermediary field_50538 Lnet/minecraft/class_9519;field_50538:I
      named field_50538 Lnet/minecraft/screen/FletchingScreenHandler;field_50538:I
    • field_50533

      public static final int field_50533
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lcqb;n:I
      intermediary field_50533 Lnet/minecraft/class_9519;field_50533:I
      named field_50533 Lnet/minecraft/screen/FletchingScreenHandler;field_50533:I
    • inventory

      private final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official t Lcqb;t:Lbpt;
      intermediary field_50539 Lnet/minecraft/class_9519;field_50539:Lnet/minecraft/class_1263;
      named inventory Lnet/minecraft/screen/FletchingScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
    • propertyDelegate

      private final PropertyDelegate propertyDelegate
      Mappings:
      Namespace Name Mixin selector
      official u Lcqb;u:Lcpq;
      intermediary field_50540 Lnet/minecraft/class_9519;field_50540:Lnet/minecraft/class_3913;
      named propertyDelegate Lnet/minecraft/screen/FletchingScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
    • inputSlot

      private final Slot inputSlot
      Mappings:
      Namespace Name Mixin selector
      official v Lcqb;v:Lcre;
      intermediary field_50541 Lnet/minecraft/class_9519;field_50541:Lnet/minecraft/class_1735;
      named inputSlot Lnet/minecraft/screen/FletchingScreenHandler;inputSlot:Lnet/minecraft/screen/slot/Slot;
  • Constructor Details

    • FletchingScreenHandler

      public FletchingScreenHandler(int syncId, PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqb;<init>(ILclx;)V
      intermediary <init> Lnet/minecraft/class_9519;<init>(ILnet/minecraft/class_1661;)V
      named <init> Lnet/minecraft/screen/FletchingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
    • FletchingScreenHandler

      public FletchingScreenHandler(int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqb;<init>(ILclx;Lbpt;Lcpq;)V
      intermediary <init> Lnet/minecraft/class_9519;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)V
      named <init> Lnet/minecraft/screen/FletchingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
  • Method Details

    • canUse

      public boolean canUse(PlayerEntity player)
      Returns whether the screen handler can be used.

      Subclasses should call #canUse(ScreenHandlerContext, PlayerEntity, Block)} or implement the check itself. The implementation should check that the player is near the screen handler's source position (e.g. block position) and that the source (e.g. block) is not destroyed.

      Specified by:
      canUse in class ScreenHandler
      Returns:
      whether the screen handler can be used
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a(Lcly;)Z
      intermediary method_7597 Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • quickMove

      public ItemStack quickMove(PlayerEntity player, int slot)
      Quick-moves the stack at slot to other slots of the screen handler that belong to a different inventory or another section of the same inventory. For example, items can be quick-moved between a chest's slots and the player inventory or between the main player inventory and the hotbar.

      Subclasses should call ScreenHandler.insertItem(net.minecraft.item.ItemStack, int, int, boolean), and if the insertion was successful, clear the slot (if the stack is exhausted) or mark it as dirty. See the vanilla subclasses for basic implementation.

      Quick-moving is also known as "shift-clicking" since it's usually triggered using Shift+left click.

      Specified by:
      quickMove in class ScreenHandler
      Parameters:
      slot - the index of the slot to quick-move from
      Returns:
      ItemStack.EMPTY when no stack can be transferred, otherwise the original stack
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lcpg;a(Lcly;I)Lcuh;
      intermediary method_7601 Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
      named quickMove Lnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
    • getProgress

      public int getProgress()
      Mappings:
      Namespace Name Mixin selector
      official l Lcqb;l()I
      intermediary method_59001 Lnet/minecraft/class_9519;method_59001()I
      named getProgress Lnet/minecraft/screen/FletchingScreenHandler;getProgress()I
    • getQuality

      public char getQuality()
      Mappings:
      Namespace Name Mixin selector
      official m Lcqb;m()C
      intermediary method_59002 Lnet/minecraft/class_9519;method_59002()C
      named getQuality Lnet/minecraft/screen/FletchingScreenHandler;getQuality()C
    • getImpurities

      public char getImpurities()
      Mappings:
      Namespace Name Mixin selector
      official n Lcqb;n()C
      intermediary method_59003 Lnet/minecraft/class_9519;method_59003()C
      named getImpurities Lnet/minecraft/screen/FletchingScreenHandler;getImpurities()C
    • getNextLevelImpurities

      public char getNextLevelImpurities()
      Mappings:
      Namespace Name Mixin selector
      official o Lcqb;o()C
      intermediary method_59004 Lnet/minecraft/class_9519;method_59004()C
      named getNextLevelImpurities Lnet/minecraft/screen/FletchingScreenHandler;getNextLevelImpurities()C
    • getProcessTime

      public int getProcessTime()
      Mappings:
      Namespace Name Mixin selector
      official p Lcqb;p()I
      intermediary method_59005 Lnet/minecraft/class_9519;method_59005()I
      named getProcessTime Lnet/minecraft/screen/FletchingScreenHandler;getProcessTime()I
    • isExplored

      public boolean isExplored()
      Mappings:
      Namespace Name Mixin selector
      official q Lcqb;q()Z
      intermediary method_59006 Lnet/minecraft/class_9519;method_59006()Z
      named isExplored Lnet/minecraft/screen/FletchingScreenHandler;isExplored()Z