Class AbstractFurnaceScreenHandler

Direct Known Subclasses:
BlastFurnaceScreenHandler, FurnaceScreenHandler, SmokerScreenHandler

public abstract class AbstractFurnaceScreenHandler extends AbstractRecipeScreenHandler<Inventory>
Mappings:
Namespace Name
official cbg
intermediary net/minecraft/class_1720
named net/minecraft/screen/AbstractFurnaceScreenHandler
  • Field Details

    • field_30738

      public static final int field_30738
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lcbg;k:I
      intermediary field_30738 Lnet/minecraft/class_1720;field_30738:I
      named field_30738 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30738:I
    • field_30739

      public static final int field_30739
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lcbg;l:I
      intermediary field_30739 Lnet/minecraft/class_1720;field_30739:I
      named field_30739 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30739:I
    • field_30740

      public static final int field_30740
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lcbg;m:I
      intermediary field_30740 Lnet/minecraft/class_1720;field_30740:I
      named field_30740 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30740:I
    • field_30741

      public static final int field_30741
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lcbg;n:I
      intermediary field_30741 Lnet/minecraft/class_1720;field_30741:I
      named field_30741 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30741:I
    • field_30742

      public static final int field_30742
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lcbg;o:I
      intermediary field_30742 Lnet/minecraft/class_1720;field_30742:I
      named field_30742 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30742:I
    • field_30743

      private static final int field_30743
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official q Lcbg;q:I
      intermediary field_30743 Lnet/minecraft/class_1720;field_30743:I
      named field_30743 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30743:I
    • field_30744

      private static final int field_30744
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Lcbg;r:I
      intermediary field_30744 Lnet/minecraft/class_1720;field_30744:I
      named field_30744 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30744:I
    • field_30745

      private static final int field_30745
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official s Lcbg;s:I
      intermediary field_30745 Lnet/minecraft/class_1720;field_30745:I
      named field_30745 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30745:I
    • field_30746

      private static final int field_30746
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Lcbg;t:I
      intermediary field_30746 Lnet/minecraft/class_1720;field_30746:I
      named field_30746 Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30746:I
    • inventory

      private final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      official u Lcbg;u:Lbdq;
      intermediary field_7824 Lnet/minecraft/class_1720;field_7824:Lnet/minecraft/class_1263;
      named inventory Lnet/minecraft/screen/AbstractFurnaceScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
    • propertyDelegate

      private final PropertyDelegate propertyDelegate
      Mappings:
      Namespace Name Mixin selector
      official v Lcbg;v:Lcbp;
      intermediary field_17286 Lnet/minecraft/class_1720;field_17286:Lnet/minecraft/class_3913;
      named propertyDelegate Lnet/minecraft/screen/AbstractFurnaceScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
    • world

      protected final World world
      Mappings:
      Namespace Name Mixin selector
      official p Lcbg;p:Lcmm;
      intermediary field_7822 Lnet/minecraft/class_1720;field_7822:Lnet/minecraft/class_1937;
      named world Lnet/minecraft/screen/AbstractFurnaceScreenHandler;world:Lnet/minecraft/world/World;
    • recipeType

      private final RecipeType<? extends AbstractCookingRecipe> recipeType
      Mappings:
      Namespace Name Mixin selector
      official w Lcbg;w:Lcjf;
      intermediary field_17494 Lnet/minecraft/class_1720;field_17494:Lnet/minecraft/class_3956;
      named recipeType Lnet/minecraft/screen/AbstractFurnaceScreenHandler;recipeType:Lnet/minecraft/recipe/RecipeType;
    • category

      private final RecipeBookCategory category
      Mappings:
      Namespace Name Mixin selector
      official x Lcbg;x:Lccq;
      intermediary field_25762 Lnet/minecraft/class_1720;field_25762:Lnet/minecraft/class_5421;
      named category Lnet/minecraft/screen/AbstractFurnaceScreenHandler;category:Lnet/minecraft/recipe/book/RecipeBookCategory;
  • Constructor Details

    • AbstractFurnaceScreenHandler

      protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory category, int syncId, PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbg;<init>(Lcck;Lcjf;Lccq;ILbyn;)V
      intermediary <init> Lnet/minecraft/class_1720;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;)V
      named <init> Lnet/minecraft/screen/AbstractFurnaceScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/recipe/book/RecipeBookCategory;ILnet/minecraft/entity/player/PlayerInventory;)V
    • AbstractFurnaceScreenHandler

      protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory category, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcbg;<init>(Lcck;Lcjf;Lccq;ILbyn;Lbdq;Lcbp;)V
      intermediary <init> Lnet/minecraft/class_1720;<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/AbstractFurnaceScreenHandler;<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 Lccp;a(Lbys;)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 Lccp;l()V
      intermediary method_7657 Lnet/minecraft/class_1729;method_7657()V
      named clearCraftingSlots Lnet/minecraft/screen/AbstractRecipeScreenHandler;clearCraftingSlots()V
    • matches

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

      public int getCraftingResultSlotIndex()
      Specified by:
      getCraftingResultSlotIndex in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official m Lccp;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 Lccp;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 Lccp;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 Lccp;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 Lcbf;a(Lbyo;)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 Lcbf;a(Lbyo;I)Lcfz;
      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;
    • isSmeltable

      protected boolean isSmeltable(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official c Lcbg;c(Lcfz;)Z
      intermediary method_7640 Lnet/minecraft/class_1720;method_7640(Lnet/minecraft/class_1799;)Z
      named isSmeltable Lnet/minecraft/screen/AbstractFurnaceScreenHandler;isSmeltable(Lnet/minecraft/item/ItemStack;)Z
    • isFuel

      protected boolean isFuel(ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      official d Lcbg;d(Lcfz;)Z
      intermediary method_16945 Lnet/minecraft/class_1720;method_16945(Lnet/minecraft/class_1799;)Z
      named isFuel Lnet/minecraft/screen/AbstractFurnaceScreenHandler;isFuel(Lnet/minecraft/item/ItemStack;)Z
    • getCookProgress

      public int getCookProgress()
      Mappings:
      Namespace Name Mixin selector
      official q Lcbg;q()I
      intermediary method_17363 Lnet/minecraft/class_1720;method_17363()I
      named getCookProgress Lnet/minecraft/screen/AbstractFurnaceScreenHandler;getCookProgress()I
    • getFuelProgress

      public int getFuelProgress()
      Mappings:
      Namespace Name Mixin selector
      official r Lcbg;r()I
      intermediary method_17364 Lnet/minecraft/class_1720;method_17364()I
      named getFuelProgress Lnet/minecraft/screen/AbstractFurnaceScreenHandler;getFuelProgress()I
    • isBurning

      public boolean isBurning()
      Mappings:
      Namespace Name Mixin selector
      official s Lcbg;s()Z
      intermediary method_17365 Lnet/minecraft/class_1720;method_17365()Z
      named isBurning Lnet/minecraft/screen/AbstractFurnaceScreenHandler;isBurning()Z
    • getCategory

      public RecipeBookCategory getCategory()
      Specified by:
      getCategory in class AbstractRecipeScreenHandler<Inventory>
      Mappings:
      Namespace Name Mixin selector
      official t Lccp;t()Lccq;
      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 Lccp;e(I)Z
      intermediary method_32339 Lnet/minecraft/class_1729;method_32339(I)Z
      named canInsertIntoSlot Lnet/minecraft/screen/AbstractRecipeScreenHandler;canInsertIntoSlot(I)Z