Class AbstractFurnaceScreenHandler

Direct Known Subclasses:
BlastFurnaceScreenHandler, FurnaceScreenHandler, SmokerScreenHandler

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

    • field_30738

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

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

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

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

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

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

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

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

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

      final Inventory inventory
      Mappings:
      Namespace Name Mixin selector
      named inventory Lnet/minecraft/screen/AbstractFurnaceScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
      intermediary field_7824 Lnet/minecraft/class_1720;field_7824:Lnet/minecraft/class_1263;
      official w Lctd;w:Lbtb;
    • propertyDelegate

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

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

      private final RecipeType<? extends AbstractCookingRecipe> recipeType
      Mappings:
      Namespace Name Mixin selector
      named recipeType Lnet/minecraft/screen/AbstractFurnaceScreenHandler;recipeType:Lnet/minecraft/recipe/RecipeType;
      intermediary field_17494 Lnet/minecraft/class_1720;field_17494:Lnet/minecraft/class_3956;
      official y Lctd;y:Ldco;
    • recipePropertySet

      private final RecipePropertySet recipePropertySet
      Mappings:
      Namespace Name Mixin selector
      named recipePropertySet Lnet/minecraft/screen/AbstractFurnaceScreenHandler;recipePropertySet:Lnet/minecraft/recipe/RecipePropertySet;
      intermediary field_54593 Lnet/minecraft/class_1720;field_54593:Lnet/minecraft/class_10290;
      official z Lctd;z:Ldcm;
    • category

      private final RecipeBookType category
      Mappings:
      Namespace Name Mixin selector
      named category Lnet/minecraft/screen/AbstractFurnaceScreenHandler;category:Lnet/minecraft/recipe/book/RecipeBookType;
      intermediary field_25762 Lnet/minecraft/class_1720;field_25762:Lnet/minecraft/class_5421;
      official A Lctd;A:Lcur;
  • Constructor Details

    • AbstractFurnaceScreenHandler

      protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory platerInventory)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/screen/AbstractFurnaceScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/recipe/book/RecipeBookType;ILnet/minecraft/entity/player/PlayerInventory;)V
      intermediary <init> Lnet/minecraft/class_1720;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5321;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;)V
      official <init> Lctd;<init>(Lcuk;Ldco;Laly;Lcur;ILcpv;)V
    • AbstractFurnaceScreenHandler

      protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory platerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/screen/AbstractFurnaceScreenHandler;<init>(Lnet/minecraft/screen/ScreenHandlerType;Lnet/minecraft/recipe/RecipeType;Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/recipe/book/RecipeBookType;ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/inventory/Inventory;Lnet/minecraft/screen/PropertyDelegate;)V
      intermediary <init> Lnet/minecraft/class_1720;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5321;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;Lnet/minecraft/class_1263;Lnet/minecraft/class_3913;)V
      official <init> Lctd;<init>(Lcuk;Ldco;Laly;Lcur;ILcpv;Lbtb;Lctn;)V
  • Method Details

    • populateRecipeFinder

      public void populateRecipeFinder(RecipeFinder finder)
      Specified by:
      populateRecipeFinder in class AbstractRecipeScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named populateRecipeFinder Lnet/minecraft/screen/AbstractRecipeScreenHandler;populateRecipeFinder(Lnet/minecraft/recipe/RecipeFinder;)V
      intermediary method_7654 Lnet/minecraft/class_1729;method_7654(Lnet/minecraft/class_9875;)V
      official a Lcuq;a(Lcqb;)V
    • getOutputSlot

      public Slot getOutputSlot()
      Mappings:
      Namespace Name Mixin selector
      named getOutputSlot Lnet/minecraft/screen/AbstractFurnaceScreenHandler;getOutputSlot()Lnet/minecraft/screen/slot/Slot;
      intermediary method_61632 Lnet/minecraft/class_1720;method_61632()Lnet/minecraft/class_1735;
      official l Lctd;l()Lcuy;
    • 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
      named canUse Lnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_7597 Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Z
      official b Lctb;b(Lcpw;)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
      named quickMove Lnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
      intermediary method_7601 Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;
      official b Lctb;b(Lcpw;I)Lcxo;
    • isSmeltable

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

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

      public float getCookProgress()
      Mappings:
      Namespace Name Mixin selector
      named getCookProgress Lnet/minecraft/screen/AbstractFurnaceScreenHandler;getCookProgress()F
      intermediary method_17363 Lnet/minecraft/class_1720;method_17363()F
      official m Lctd;m()F
    • getFuelProgress

      public float getFuelProgress()
      Mappings:
      Namespace Name Mixin selector
      named getFuelProgress Lnet/minecraft/screen/AbstractFurnaceScreenHandler;getFuelProgress()F
      intermediary method_17364 Lnet/minecraft/class_1720;method_17364()F
      official n Lctd;n()F
    • isBurning

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

      public RecipeBookType getCategory()
      Specified by:
      getCategory in class AbstractRecipeScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named getCategory Lnet/minecraft/screen/AbstractRecipeScreenHandler;getCategory()Lnet/minecraft/recipe/book/RecipeBookType;
      intermediary method_30264 Lnet/minecraft/class_1729;method_30264()Lnet/minecraft/class_5421;
      official an_ Lcuq;an_()Lcur;
    • fillInputSlots

      public AbstractRecipeScreenHandler.PostFillAction fillInputSlots(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory)
      Specified by:
      fillInputSlots in class AbstractRecipeScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named fillInputSlots Lnet/minecraft/screen/AbstractRecipeScreenHandler;fillInputSlots(ZZLnet/minecraft/recipe/RecipeEntry;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/AbstractRecipeScreenHandler$PostFillAction;
      intermediary method_17697 Lnet/minecraft/class_1729;method_17697(ZZLnet/minecraft/class_8786;Lnet/minecraft/class_3218;Lnet/minecraft/class_1661;)Lnet/minecraft/class_1729$class_9885;
      official a Lcuq;a(ZZLdci;Lash;Lcpv;)Lcuq$a;