Package net.minecraft.screen
Class AbstractFurnaceScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler<Inventory>
net.minecraft.screen.AbstractFurnaceScreenHandler
- Direct Known Subclasses:
BlastFurnaceScreenHandler,FurnaceScreenHandler,SmokerScreenHandler
- Mappings:
Namespace Name official bwnintermediary net/minecraft/class_1720named net/minecraft/screen/AbstractFurnaceScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeBookCategorystatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final Inventoryprivate final PropertyDelegateprivate final RecipeType<? extends AbstractCookingRecipe>protected final WorldFields inherited from class net.minecraft.screen.ScreenHandler
EMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory category, int syncId, PlayerInventory playerInventory) protectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory category, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanInsertIntoSlot(int index) booleancanUse(PlayerEntity player) Returns whether the screen handler can be used.voidintintintintintintbooleanprotected booleanprotected booleanisSmeltable(ItemStack itemStack) booleanvoidpopulateRecipeFinder(RecipeMatcher finder) transferSlot(PlayerEntity player, int index) Transfers (or "quick-moves") the stack at slotindexto other slots of the screen handler that belong to a different inventory.Methods inherited from class net.minecraft.screen.AbstractRecipeScreenHandler
fillInputSlotsMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, close, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
-
Field Details
-
field_30738
public static final int field_30738- See Also:
- Mappings:
Namespace Name Mixin selector official kLbwn;k:Iintermediary field_30738Lnet/minecraft/class_1720;field_30738:Inamed field_30738Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30738:I
-
field_30739
public static final int field_30739- See Also:
- Mappings:
Namespace Name Mixin selector official lLbwn;l:Iintermediary field_30739Lnet/minecraft/class_1720;field_30739:Inamed field_30739Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30739:I
-
field_30740
public static final int field_30740- See Also:
- Mappings:
Namespace Name Mixin selector official mLbwn;m:Iintermediary field_30740Lnet/minecraft/class_1720;field_30740:Inamed field_30740Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30740:I
-
field_30741
public static final int field_30741- See Also:
- Mappings:
Namespace Name Mixin selector official nLbwn;n:Iintermediary field_30741Lnet/minecraft/class_1720;field_30741:Inamed field_30741Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30741:I
-
field_30742
public static final int field_30742- See Also:
- Mappings:
Namespace Name Mixin selector official oLbwn;o:Iintermediary field_30742Lnet/minecraft/class_1720;field_30742:Inamed field_30742Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30742:I
-
field_30743
private static final int field_30743- See Also:
- Mappings:
Namespace Name Mixin selector official qLbwn;q:Iintermediary field_30743Lnet/minecraft/class_1720;field_30743:Inamed field_30743Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30743:I
-
field_30744
private static final int field_30744- See Also:
- Mappings:
Namespace Name Mixin selector official rLbwn;r:Iintermediary field_30744Lnet/minecraft/class_1720;field_30744:Inamed field_30744Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30744:I
-
field_30745
private static final int field_30745- See Also:
- Mappings:
Namespace Name Mixin selector official sLbwn;s:Iintermediary field_30745Lnet/minecraft/class_1720;field_30745:Inamed field_30745Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30745:I
-
field_30746
private static final int field_30746- See Also:
- Mappings:
Namespace Name Mixin selector official tLbwn;t:Iintermediary field_30746Lnet/minecraft/class_1720;field_30746:Inamed field_30746Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30746:I
-
inventory
- Mappings:
Namespace Name Mixin selector official uLbwn;u:Lbac;intermediary field_7824Lnet/minecraft/class_1720;field_7824:Lnet/minecraft/class_1263;named inventoryLnet/minecraft/screen/AbstractFurnaceScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector official vLbwn;v:Lbww;intermediary field_17286Lnet/minecraft/class_1720;field_17286:Lnet/minecraft/class_3913;named propertyDelegateLnet/minecraft/screen/AbstractFurnaceScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;
-
world
- Mappings:
Namespace Name Mixin selector official pLbwn;p:Lcgx;intermediary field_7822Lnet/minecraft/class_1720;field_7822:Lnet/minecraft/class_1937;named worldLnet/minecraft/screen/AbstractFurnaceScreenHandler;world:Lnet/minecraft/world/World;
-
recipeType
- Mappings:
Namespace Name Mixin selector official wLbwn;w:Lcds;intermediary field_17494Lnet/minecraft/class_1720;field_17494:Lnet/minecraft/class_3956;named recipeTypeLnet/minecraft/screen/AbstractFurnaceScreenHandler;recipeType:Lnet/minecraft/recipe/RecipeType;
-
category
- Mappings:
Namespace Name Mixin selector official xLbwn;x:Lbxw;intermediary field_25762Lnet/minecraft/class_1720;field_25762:Lnet/minecraft/class_5421;named categoryLnet/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>Lbwn;<init>(Lbxq;Lcds;Lbxw;ILbub;)Vintermediary <init>Lnet/minecraft/class_1720;<init>(Lnet/minecraft/class_3917;Lnet/minecraft/class_3956;Lnet/minecraft/class_5421;ILnet/minecraft/class_1661;)Vnamed <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>Lbwn;<init>(Lbxq;Lcds;Lbxw;ILbub;Lbac;Lbww;)Vintermediary <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;)Vnamed <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
- Specified by:
populateRecipeFinderin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official aLbxv;a(Lbug;)Vintermediary method_7654Lnet/minecraft/class_1729;method_7654(Lnet/minecraft/class_1662;)Vnamed populateRecipeFinderLnet/minecraft/screen/AbstractRecipeScreenHandler;populateRecipeFinder(Lnet/minecraft/recipe/RecipeMatcher;)V
-
clearCraftingSlots
public void clearCraftingSlots()- Specified by:
clearCraftingSlotsin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official lLbxv;l()Vintermediary method_7657Lnet/minecraft/class_1729;method_7657()Vnamed clearCraftingSlotsLnet/minecraft/screen/AbstractRecipeScreenHandler;clearCraftingSlots()V
-
matches
- Specified by:
matchesin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official aLbxv;a(Lcdp;)Zintermediary method_7652Lnet/minecraft/class_1729;method_7652(Lnet/minecraft/class_1860;)Znamed matchesLnet/minecraft/screen/AbstractRecipeScreenHandler;matches(Lnet/minecraft/recipe/Recipe;)Z
-
getCraftingResultSlotIndex
public int getCraftingResultSlotIndex()- Specified by:
getCraftingResultSlotIndexin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official mLbxv;m()Iintermediary method_7655Lnet/minecraft/class_1729;method_7655()Inamed getCraftingResultSlotIndexLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingResultSlotIndex()I
-
getCraftingWidth
public int getCraftingWidth()- Specified by:
getCraftingWidthin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official nLbxv;n()Iintermediary method_7653Lnet/minecraft/class_1729;method_7653()Inamed getCraftingWidthLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingWidth()I
-
getCraftingHeight
public int getCraftingHeight()- Specified by:
getCraftingHeightin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official oLbxv;o()Iintermediary method_7656Lnet/minecraft/class_1729;method_7656()Inamed getCraftingHeightLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingHeight()I
-
getCraftingSlotCount
public int getCraftingSlotCount()- Specified by:
getCraftingSlotCountin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official pLbxv;p()Iintermediary method_7658Lnet/minecraft/class_1729;method_7658()Inamed getCraftingSlotCountLnet/minecraft/screen/AbstractRecipeScreenHandler;getCraftingSlotCount()I
-
canUse
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:
canUsein classScreenHandler- Returns:
- whether the screen handler can be used
- Mappings:
Namespace Name Mixin selector official aLbwm;a(Lbuc;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Znamed canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
transferSlot
Transfers (or "quick-moves") the stack at slotindexto other slots of the screen handler that belong to a different inventory.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.- Specified by:
transferSlotin classScreenHandler- Returns:
ItemStack.EMPTYwhen no stack can be transferred, otherwise the original stack- See Also:
- Mappings:
Namespace Name Mixin selector official aLbwm;a(Lbuc;I)Lcax;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;named transferSlotLnet/minecraft/screen/ScreenHandler;transferSlot(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;
-
isSmeltable
- Mappings:
Namespace Name Mixin selector official cLbwn;c(Lcax;)Zintermediary method_7640Lnet/minecraft/class_1720;method_7640(Lnet/minecraft/class_1799;)Znamed isSmeltableLnet/minecraft/screen/AbstractFurnaceScreenHandler;isSmeltable(Lnet/minecraft/item/ItemStack;)Z
-
isFuel
- Mappings:
Namespace Name Mixin selector official dLbwn;d(Lcax;)Zintermediary method_16945Lnet/minecraft/class_1720;method_16945(Lnet/minecraft/class_1799;)Znamed isFuelLnet/minecraft/screen/AbstractFurnaceScreenHandler;isFuel(Lnet/minecraft/item/ItemStack;)Z
-
getCookProgress
public int getCookProgress()- Mappings:
Namespace Name Mixin selector official qLbwn;q()Iintermediary method_17363Lnet/minecraft/class_1720;method_17363()Inamed getCookProgressLnet/minecraft/screen/AbstractFurnaceScreenHandler;getCookProgress()I
-
getFuelProgress
public int getFuelProgress()- Mappings:
Namespace Name Mixin selector official rLbwn;r()Iintermediary method_17364Lnet/minecraft/class_1720;method_17364()Inamed getFuelProgressLnet/minecraft/screen/AbstractFurnaceScreenHandler;getFuelProgress()I
-
isBurning
public boolean isBurning()- Mappings:
Namespace Name Mixin selector official sLbwn;s()Zintermediary method_17365Lnet/minecraft/class_1720;method_17365()Znamed isBurningLnet/minecraft/screen/AbstractFurnaceScreenHandler;isBurning()Z
-
getCategory
- Specified by:
getCategoryin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official tLbxv;t()Lbxw;intermediary method_30264Lnet/minecraft/class_1729;method_30264()Lnet/minecraft/class_5421;named getCategoryLnet/minecraft/screen/AbstractRecipeScreenHandler;getCategory()Lnet/minecraft/recipe/book/RecipeBookCategory;
-
canInsertIntoSlot
public boolean canInsertIntoSlot(int index) - Specified by:
canInsertIntoSlotin classAbstractRecipeScreenHandler<Inventory>- Mappings:
Namespace Name Mixin selector official eLbxv;e(I)Zintermediary method_32339Lnet/minecraft/class_1729;method_32339(I)Znamed canInsertIntoSlotLnet/minecraft/screen/AbstractRecipeScreenHandler;canInsertIntoSlot(I)Z
-