Class PotatoRefineryScreenHandler


public class PotatoRefineryScreenHandler extends AbstractRecipeScreenHandler<Inventory>
Mappings:
Namespace Name
official cqv
intermediary net/minecraft/class_9522
named net/minecraft/screen/PotatoRefineryScreenHandler
  • 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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;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/screen/PotatoRefineryScreenHandler;field_50577:I
    • inventory

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

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

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

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

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

    • PotatoRefineryScreenHandler

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

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

      private PotatoRefineryScreenHandler(ScreenHandlerType<?> type, RecipeType<PotatoRefinementRecipe> recipeType, RecipeBookCategory recipeBookCategory, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcqv;<init>(Lcqo;Lczf;Lcqx;ILclx;Lbpt;Lcpq;)V
      intermediary <init> Lnet/minecraft/class_9522;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)V
      named <init> Lnet/minecraft/screen/PotatoRefineryScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/recipe/book/RecipeBookCategory;ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
  • 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;
    • isRefinable

      protected boolean isRefinable(ItemStack stack)
      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 isRefinable Lnet/minecraft/screen/PotatoRefineryScreenHandler;isRefinable(Lnet/minecraft/item/ItemStack;)Z
    • isFuel

      protected boolean isFuel(ItemStack stack)
      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 isFuel Lnet/minecraft/screen/PotatoRefineryScreenHandler;isFuel(Lnet/minecraft/item/ItemStack;)Z
    • getRefiningProgress

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

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

      public boolean isBurning()
      Mappings:
      Namespace Name Mixin selector
      official s Lcqv;s()Z
      intermediary method_59024 Lnet/minecraft/class_9522;method_59024()Z
      named isBurning Lnet/minecraft/screen/PotatoRefineryScreenHandler;isBurning()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