Package net.minecraft.screen
Class AbstractFurnaceScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler
net.minecraft.screen.AbstractFurnaceScreenHandler
- Direct Known Subclasses:
BlastFurnaceScreenHandler,FurnaceScreenHandler,SmokerScreenHandler
- Mappings:
Namespace Name named net/minecraft/screen/AbstractFurnaceScreenHandlerintermediary net/minecraft/class_1720official cwd
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.screen.AbstractRecipeScreenHandler
AbstractRecipeScreenHandler.PostFillAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RecipeBookTypestatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate static final intprivate static final intprivate static final int(package private) final Inventoryprivate final PropertyDelegateprivate final RecipePropertySetprivate 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, field_52557, field_52558, slots, syncId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory playerInventory) protectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanUse(PlayerEntity player) Returns whether the screen handler can be used.fillInputSlots(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) floatfloatbooleanprotected booleanprotected booleanisSmeltable(ItemStack itemStack) voidpopulateRecipeFinder(RecipeFinder finder) quickMove(PlayerEntity player, int slot) Quick-moves the stack atslotto other slots of the screen handler that belong to a different inventory or another section of the same inventory.Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addPlayerHotbarSlots, addPlayerInventorySlots, addPlayerSlots, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onClosed, onContentChanged, onSlotClick, packQuickCraftData, removeListener, selectBundleStack, sendContentUpdates, setCursorStack, setProperty, setReceivedCursorHash, setReceivedHash, setReceivedStack, 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 named field_30738Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30738:Iintermediary field_30738Lnet/minecraft/class_1720;field_30738:Iofficial mLcwd;m:I
-
field_30739
public static final int field_30739- See Also:
- Mappings:
Namespace Name Mixin selector named field_30739Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30739:Iintermediary field_30739Lnet/minecraft/class_1720;field_30739:Iofficial nLcwd;n:I
-
field_30740
public static final int field_30740- See Also:
- Mappings:
Namespace Name Mixin selector named field_30740Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30740:Iintermediary field_30740Lnet/minecraft/class_1720;field_30740:Iofficial oLcwd;o:I
-
field_30741
public static final int field_30741- See Also:
- Mappings:
Namespace Name Mixin selector named field_30741Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30741:Iintermediary field_30741Lnet/minecraft/class_1720;field_30741:Iofficial pLcwd;p:I
-
field_30742
public static final int field_30742- See Also:
- Mappings:
Namespace Name Mixin selector named field_30742Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30742:Iintermediary field_30742Lnet/minecraft/class_1720;field_30742:Iofficial qLcwd;q:I
-
field_30743
private static final int field_30743- See Also:
- Mappings:
Namespace Name Mixin selector named field_30743Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30743:Iintermediary field_30743Lnet/minecraft/class_1720;field_30743:Iofficial sLcwd;s:I
-
field_30744
private static final int field_30744- See Also:
- Mappings:
Namespace Name Mixin selector named field_30744Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30744:Iintermediary field_30744Lnet/minecraft/class_1720;field_30744:Iofficial tLcwd;t:I
-
field_30745
private static final int field_30745- See Also:
- Mappings:
Namespace Name Mixin selector named field_30745Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30745:Iintermediary field_30745Lnet/minecraft/class_1720;field_30745:Iofficial uLcwd;u:I
-
field_30746
private static final int field_30746- See Also:
- Mappings:
Namespace Name Mixin selector named field_30746Lnet/minecraft/screen/AbstractFurnaceScreenHandler;field_30746:Iintermediary field_30746Lnet/minecraft/class_1720;field_30746:Iofficial vLcwd;v:I
-
inventory
- Mappings:
Namespace Name Mixin selector named inventoryLnet/minecraft/screen/AbstractFurnaceScreenHandler;inventory:Lnet/minecraft/inventory/Inventory;intermediary field_7824Lnet/minecraft/class_1720;field_7824:Lnet/minecraft/class_1263;official wLcwd;w:Lbuv;
-
propertyDelegate
- Mappings:
Namespace Name Mixin selector named propertyDelegateLnet/minecraft/screen/AbstractFurnaceScreenHandler;propertyDelegate:Lnet/minecraft/screen/PropertyDelegate;intermediary field_17286Lnet/minecraft/class_1720;field_17286:Lnet/minecraft/class_3913;official xLcwd;x:Lcwn;
-
world
- Mappings:
Namespace Name Mixin selector named worldLnet/minecraft/screen/AbstractFurnaceScreenHandler;world:Lnet/minecraft/world/World;intermediary field_7822Lnet/minecraft/class_1720;field_7822:Lnet/minecraft/class_1937;official rLcwd;r:Ldkj;
-
recipeType
- Mappings:
Namespace Name Mixin selector named recipeTypeLnet/minecraft/screen/AbstractFurnaceScreenHandler;recipeType:Lnet/minecraft/recipe/RecipeType;intermediary field_17494Lnet/minecraft/class_1720;field_17494:Lnet/minecraft/class_3956;official yLcwd;y:Ldfm;
-
recipePropertySet
- Mappings:
Namespace Name Mixin selector named recipePropertySetLnet/minecraft/screen/AbstractFurnaceScreenHandler;recipePropertySet:Lnet/minecraft/recipe/RecipePropertySet;intermediary field_54593Lnet/minecraft/class_1720;field_54593:Lnet/minecraft/class_10290;official zLcwd;z:Ldfk;
-
category
- Mappings:
Namespace Name Mixin selector named categoryLnet/minecraft/screen/AbstractFurnaceScreenHandler;category:Lnet/minecraft/recipe/book/RecipeBookType;intermediary field_25762Lnet/minecraft/class_1720;field_25762:Lnet/minecraft/class_5421;official ALcwd;A:Lcxr;
-
-
Constructor Details
-
AbstractFurnaceScreenHandler
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory playerInventory) - 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;)Vintermediary <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;)Vofficial <init>Lcwd;<init>(Lcxk;Ldfm;Lalq;Lcxr;ILcsh;)V
-
AbstractFurnaceScreenHandler
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RegistryKey<RecipePropertySet> recipePropertySetKey, RecipeBookType category, int syncId, PlayerInventory playerInventory, 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;)Vintermediary <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;)Vofficial <init>Lcwd;<init>(Lcxk;Ldfm;Lalq;Lcxr;ILcsh;Lbuv;Lcwn;)V
-
-
Method Details
-
populateRecipeFinder
- Specified by:
populateRecipeFinderin classAbstractRecipeScreenHandler- Mappings:
Namespace Name Mixin selector named populateRecipeFinderLnet/minecraft/screen/AbstractRecipeScreenHandler;populateRecipeFinder(Lnet/minecraft/recipe/RecipeFinder;)Vintermediary method_7654Lnet/minecraft/class_1729;method_7654(Lnet/minecraft/class_9875;)Vofficial aLcxq;a(Lcso;)V
-
getOutputSlot
- Mappings:
Namespace Name Mixin selector named getOutputSlotLnet/minecraft/screen/AbstractFurnaceScreenHandler;getOutputSlot()Lnet/minecraft/screen/slot/Slot;intermediary method_61632Lnet/minecraft/class_1720;method_61632()Lnet/minecraft/class_1735;official lLcwd;l()Lcxz;
-
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 named canUseLnet/minecraft/screen/ScreenHandler;canUse(Lnet/minecraft/entity/player/PlayerEntity;)Zintermediary method_7597Lnet/minecraft/class_1703;method_7597(Lnet/minecraft/class_1657;)Zofficial bLcwb;b(Lcsi;)Z
-
quickMove
Quick-moves the stack atslotto 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:
quickMovein classScreenHandler- Parameters:
slot- the index of the slot to quick-move from- Returns:
ItemStack.EMPTYwhen no stack can be transferred, otherwise the original stack- See Also:
- Mappings:
Namespace Name Mixin selector named quickMoveLnet/minecraft/screen/ScreenHandler;quickMove(Lnet/minecraft/entity/player/PlayerEntity;I)Lnet/minecraft/item/ItemStack;intermediary method_7601Lnet/minecraft/class_1703;method_7601(Lnet/minecraft/class_1657;I)Lnet/minecraft/class_1799;official bLcwb;b(Lcsi;I)Ldak;
-
isSmeltable
- Mappings:
Namespace Name Mixin selector named isSmeltableLnet/minecraft/screen/AbstractFurnaceScreenHandler;isSmeltable(Lnet/minecraft/item/ItemStack;)Zintermediary method_7640Lnet/minecraft/class_1720;method_7640(Lnet/minecraft/class_1799;)Zofficial bLcwd;b(Ldak;)Z
-
isFuel
- Mappings:
Namespace Name Mixin selector named isFuelLnet/minecraft/screen/AbstractFurnaceScreenHandler;isFuel(Lnet/minecraft/item/ItemStack;)Zintermediary method_16945Lnet/minecraft/class_1720;method_16945(Lnet/minecraft/class_1799;)Zofficial cLcwd;c(Ldak;)Z
-
getCookProgress
public float getCookProgress()- Mappings:
Namespace Name Mixin selector named getCookProgressLnet/minecraft/screen/AbstractFurnaceScreenHandler;getCookProgress()Fintermediary method_17363Lnet/minecraft/class_1720;method_17363()Fofficial mLcwd;m()F
-
getFuelProgress
public float getFuelProgress()- Mappings:
Namespace Name Mixin selector named getFuelProgressLnet/minecraft/screen/AbstractFurnaceScreenHandler;getFuelProgress()Fintermediary method_17364Lnet/minecraft/class_1720;method_17364()Fofficial nLcwd;n()F
-
isBurning
public boolean isBurning()- Mappings:
Namespace Name Mixin selector named isBurningLnet/minecraft/screen/AbstractFurnaceScreenHandler;isBurning()Zintermediary method_17365Lnet/minecraft/class_1720;method_17365()Zofficial oLcwd;o()Z
-
getCategory
- Specified by:
getCategoryin classAbstractRecipeScreenHandler- Mappings:
Namespace Name Mixin selector named getCategoryLnet/minecraft/screen/AbstractRecipeScreenHandler;getCategory()Lnet/minecraft/recipe/book/RecipeBookType;intermediary method_30264Lnet/minecraft/class_1729;method_30264()Lnet/minecraft/class_5421;official aj_Lcxq;aj_()Lcxr;
-
fillInputSlots
public AbstractRecipeScreenHandler.PostFillAction fillInputSlots(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) - Specified by:
fillInputSlotsin classAbstractRecipeScreenHandler- Mappings:
Namespace Name Mixin selector named fillInputSlotsLnet/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_17697Lnet/minecraft/class_1729;method_17697(ZZLnet/minecraft/class_8786;Lnet/minecraft/class_3218;Lnet/minecraft/class_1661;)Lnet/minecraft/class_1729$class_9885;official aLcxq;a(ZZLdfg;Lasb;Lcsh;)Lcxq$a;
-