Package net.minecraft

Class class_9522


public class class_9522 extends AbstractRecipeScreenHandler<Inventory>
Mappings:
Namespace Name
official cqv
intermediary net/minecraft/class_9522
named net/minecraft/class_9522
  • Field Details

    • field_50567

      public static final int field_50567
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcqv;k:I
      intermediary field_50567 Lnet/minecraft/class_9522;field_50567:I
      named field_50567 Lnet/minecraft/class_9522;field_50567:I
    • field_50568

      public static final int field_50568
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcqv;l:I
      intermediary field_50568 Lnet/minecraft/class_9522;field_50568:I
      named field_50568 Lnet/minecraft/class_9522;field_50568:I
    • field_50569

      public static final int field_50569
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcqv;m:I
      intermediary field_50569 Lnet/minecraft/class_9522;field_50569:I
      named field_50569 Lnet/minecraft/class_9522;field_50569:I
    • field_50570

      public static final int field_50570
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lcqv;n:I
      intermediary field_50570 Lnet/minecraft/class_9522;field_50570:I
      named field_50570 Lnet/minecraft/class_9522;field_50570:I
    • field_50571

      public static final int field_50571
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lcqv;o:I
      intermediary field_50571 Lnet/minecraft/class_9522;field_50571:I
      named field_50571 Lnet/minecraft/class_9522;field_50571:I
    • field_50572

      public static final int field_50572
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official p Lcqv;p:I
      intermediary field_50572 Lnet/minecraft/class_9522;field_50572:I
      named field_50572 Lnet/minecraft/class_9522;field_50572:I
    • field_50574

      private static final int field_50574
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Lcqv;r:I
      intermediary field_50574 Lnet/minecraft/class_9522;field_50574:I
      named field_50574 Lnet/minecraft/class_9522;field_50574:I
    • field_50575

      private static final int field_50575
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official s Lcqv;s:I
      intermediary field_50575 Lnet/minecraft/class_9522;field_50575:I
      named field_50575 Lnet/minecraft/class_9522;field_50575:I
    • field_50576

      private static final int field_50576
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Lcqv;t:I
      intermediary field_50576 Lnet/minecraft/class_9522;field_50576:I
      named field_50576 Lnet/minecraft/class_9522;field_50576:I
    • field_50577

      private static final int field_50577
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u Lcqv;u:I
      intermediary field_50577 Lnet/minecraft/class_9522;field_50577:I
      named field_50577 Lnet/minecraft/class_9522;field_50577:I
    • field_50578

      private final Inventory field_50578
      Mappings:
      Namespace Name Mixin selector
      official v Lcqv;v:Lbpt;
      intermediary field_50578 Lnet/minecraft/class_9522;field_50578:Lnet/minecraft/class_1263;
      named field_50578 Lnet/minecraft/class_9522;field_50578:Lnet/minecraft/inventory/Inventory;
    • field_50579

      private final PropertyDelegate field_50579
      Mappings:
      Namespace Name Mixin selector
      official w Lcqv;w:Lcpq;
      intermediary field_50579 Lnet/minecraft/class_9522;field_50579:Lnet/minecraft/class_3913;
      named field_50579 Lnet/minecraft/class_9522;field_50579:Lnet/minecraft/screen/PropertyDelegate;
    • field_50573

      protected final World field_50573
      Mappings:
      Namespace Name Mixin selector
      official q Lcqv;q:Ldca;
      intermediary field_50573 Lnet/minecraft/class_9522;field_50573:Lnet/minecraft/class_1937;
      named field_50573 Lnet/minecraft/class_9522;field_50573:Lnet/minecraft/world/World;
    • field_50580

      private final RecipeType<PotatoRefinementRecipe> field_50580
      Mappings:
      Namespace Name Mixin selector
      official x Lcqv;x:Lczf;
      intermediary field_50580 Lnet/minecraft/class_9522;field_50580:Lnet/minecraft/class_3956;
      named field_50580 Lnet/minecraft/class_9522;field_50580:Lnet/minecraft/recipe/RecipeType;
    • field_50581

      private final RecipeBookCategory field_50581
      Mappings:
      Namespace Name Mixin selector
      official y Lcqv;y:Lcqx;
      intermediary field_50581 Lnet/minecraft/class_9522;field_50581:Lnet/minecraft/class_5421;
      named field_50581 Lnet/minecraft/class_9522;field_50581:Lnet/minecraft/recipe/book/RecipeBookCategory;
  • Constructor Details

  • Method Details

    • populateRecipeFinder

      public void populateRecipeFinder(RecipeMatcher finder)
      Specified by:
      populateRecipeFinder in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official a Lcqw;a(Lcmc;)V
      intermediary method_7654 Lnet/minecraft/class_1729;method_7654(Lnet/minecraft/class_1662;)V
      named populateRecipeFinder Lnet/minecraft/screen/AbstractRecipeScreenHandler;populateRecipeFinder(Lnet/minecraft/recipe/RecipeMatcher;)V
    • clearCraftingSlots

      public void clearCraftingSlots()
      Specified by:
      clearCraftingSlots in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official l Lcqw;l()V
      intermediary method_7657 Lnet/minecraft/class_1729;method_7657()V
      named clearCraftingSlots Lnet/minecraft/screen/AbstractRecipeScreenHandler;clearCraftingSlots()V
    • matches

      public boolean matches(RecipeEntry<? extends Recipe<Inventory>> recipe)
      Specified by:
      matches in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official a Lcqw;a(Lczc;)Z
      intermediary method_7652 Lnet/minecraft/class_1729;method_7652(Lnet/minecraft/class_8786;)Z
      named matches Lnet/minecraft/screen/AbstractRecipeScreenHandler;matches(Lnet/minecraft/recipe/RecipeEntry;)Z
    • getCraftingResultSlotIndex

      public int getCraftingResultSlotIndex()
      Specified by:
      getCraftingResultSlotIndex in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official m Lcqw;m()I
      intermediary method_7655 Lnet/minecraft/class_1729;method_7655()I
      named getCraftingResultSlotIndex Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingResultSlotIndex()I
    • getCraftingWidth

      public int getCraftingWidth()
      Specified by:
      getCraftingWidth in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official n Lcqw;n()I
      intermediary method_7653 Lnet/minecraft/class_1729;method_7653()I
      named getCraftingWidth Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingWidth()I
    • getCraftingHeight

      public int getCraftingHeight()
      Specified by:
      getCraftingHeight in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official o Lcqw;o()I
      intermediary method_7656 Lnet/minecraft/class_1729;method_7656()I
      named getCraftingHeight Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingHeight()I
    • getCraftingSlotCount

      public int getCraftingSlotCount()
      Specified by:
      getCraftingSlotCount in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official p Lcqw;p()I
      intermediary method_7658 Lnet/minecraft/class_1729;method_7658()I
      named getCraftingSlotCount Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingSlotCount()I
    • 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;
    • method_59020

      protected boolean method_59020(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official c Lcqv;c(Lcuh;)Z
      intermediary method_59020 Lnet/minecraft/class_9522;method_59020(Lnet/minecraft/class_1799;)Z
      named method_59020 Lnet/minecraft/class_9522;method_59020(Lnet/minecraft/item/ItemStack;)Z
    • method_59021

      protected boolean method_59021(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official d Lcqv;d(Lcuh;)Z
      intermediary method_59021 Lnet/minecraft/class_9522;method_59021(Lnet/minecraft/class_1799;)Z
      named method_59021 Lnet/minecraft/class_9522;method_59021(Lnet/minecraft/item/ItemStack;)Z
    • method_59022

      public float method_59022()
      Mappings:
      Namespace Name Mixin selector
      official q Lcqv;q()F
      intermediary method_59022 Lnet/minecraft/class_9522;method_59022()F
      named method_59022 Lnet/minecraft/class_9522;method_59022()F
    • method_59023

      public float method_59023()
      Mappings:
      Namespace Name Mixin selector
      official r Lcqv;r()F
      intermediary method_59023 Lnet/minecraft/class_9522;method_59023()F
      named method_59023 Lnet/minecraft/class_9522;method_59023()F
    • method_59024

      public boolean method_59024()
      Mappings:
      Namespace Name Mixin selector
      official s Lcqv;s()Z
      intermediary method_59024 Lnet/minecraft/class_9522;method_59024()Z
      named method_59024 Lnet/minecraft/class_9522;method_59024()Z
    • getCategory

      public RecipeBookCategory getCategory()
      Specified by:
      getCategory in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official t Lcqw;t()Lcqx;
      intermediary method_30264 Lnet/minecraft/class_1729;method_30264()Lnet/minecraft/class_5421;
      named getCategory Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCategory()Lnet/minecraft/recipe/book/RecipeBookCategory;
    • canInsertIntoSlot

      public boolean canInsertIntoSlot(int index)
      Specified by:
      canInsertIntoSlot in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official e Lcqw;e(I)Z
      intermediary method_32339 Lnet/minecraft/class_1729;method_32339(I)Z
      named canInsertIntoSlot Lnet/minecraft/screen/AbstractRecipeScreenHandler;canInsertIntoSlot(I)Z