Package net.minecraft.screen
Class SmithingScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.ForgingScreenHandler
net.minecraft.screen.SmithingScreenHandler
- Mappings:
- Namespace - Name - official - ccy- intermediary - net/minecraft/class_4862- named - net/minecraft/screen/SmithingScreenHandler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate @Nullable SmithingRecipestatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate final List<SmithingRecipe>static final intstatic final intstatic final intprivate final WorldFields inherited from class net.minecraft.screen.ForgingScreenHandlercontext, input, output, playerFields inherited from class net.minecraft.screen.ScreenHandlerEMPTY_SPACE_SLOT_INDEX, field_30731, field_30732, field_30733, field_30734, field_30735, field_30736, field_30737, slots, syncId
- 
Constructor SummaryConstructorsConstructorDescriptionSmithingScreenHandler(int syncId, PlayerInventory playerInventory) SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanInsertIntoSlot(ItemStack stack, Slot slot) Returns whetherstackcan be inserted toslot.protected booleancanTakeOutput(PlayerEntity player, boolean present) protected booleancanUse(BlockState state) private voiddecrementStack(int slot) protected ForgingSlotsManagergetQuickMoveSlot(SmithingRecipe recipe, ItemStack stack) intgetSlotFor(ItemStack stack) booleanisValidIngredient(ItemStack stack) protected voidonTakeOutput(PlayerEntity player, ItemStack stack) voidMethods inherited from class net.minecraft.screen.ForgingScreenHandlercanUse, getResultSlotIndex, onClosed, onContentChanged, quickMoveMethods inherited from class net.minecraft.screen.ScreenHandleraddListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, copySharedSlots, disableSyncing, dropInventory, enableSyncing, endQuickCraft, getCursorStack, getRevision, getSlot, getSlotIndex, getStacks, getType, insertItem, isValid, nextRevision, onButtonClick, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setCursorStack, setPreviousCursorStack, setPreviousTrackedSlot, setPreviousTrackedSlotMutable, setProperty, setStackInSlot, shouldQuickCraftContinue, syncState, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks, updateSyncHandler, updateToClient
- 
Field Details- 
TEMPLATE_IDpublic static final int TEMPLATE_ID- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lccy;k:I- intermediary - field_41924- Lnet/minecraft/class_4862;field_41924:I- named - TEMPLATE_ID- Lnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_ID:I
 
- 
EQUIPMENT_IDpublic static final int EQUIPMENT_ID- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lccy;l:I- intermediary - field_41925- Lnet/minecraft/class_4862;field_41925:I- named - EQUIPMENT_ID- Lnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_ID:I
 
- 
MATERIAL_IDpublic static final int MATERIAL_ID- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lccy;m:I- intermediary - field_41926- Lnet/minecraft/class_4862;field_41926:I- named - MATERIAL_ID- Lnet/minecraft/screen/SmithingScreenHandler;MATERIAL_ID:I
 
- 
OUTPUT_IDpublic static final int OUTPUT_ID- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - n- Lccy;n:I- intermediary - field_41927- Lnet/minecraft/class_4862;field_41927:I- named - OUTPUT_ID- Lnet/minecraft/screen/SmithingScreenHandler;OUTPUT_ID:I
 
- 
TEMPLATE_Xpublic static final int TEMPLATE_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - s- Lccy;s:I- intermediary - field_41928- Lnet/minecraft/class_4862;field_41928:I- named - TEMPLATE_X- Lnet/minecraft/screen/SmithingScreenHandler;TEMPLATE_X:I
 
- 
EQUIPMENT_Xpublic static final int EQUIPMENT_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - t- Lccy;t:I- intermediary - field_41929- Lnet/minecraft/class_4862;field_41929:I- named - EQUIPMENT_X- Lnet/minecraft/screen/SmithingScreenHandler;EQUIPMENT_X:I
 
- 
MATERIAL_Xpublic static final int MATERIAL_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - u- Lccy;u:I- intermediary - field_41930- Lnet/minecraft/class_4862;field_41930:I- named - MATERIAL_X- Lnet/minecraft/screen/SmithingScreenHandler;MATERIAL_X:I
 
- 
OUTPUT_Xprivate static final int OUTPUT_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - w- Lccy;w:I- intermediary - field_41932- Lnet/minecraft/class_4862;field_41932:I- named - OUTPUT_X- Lnet/minecraft/screen/SmithingScreenHandler;OUTPUT_X:I
 
- 
SLOT_Ypublic static final int SLOT_Y- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - v- Lccy;v:I- intermediary - field_41931- Lnet/minecraft/class_4862;field_41931:I- named - SLOT_Y- Lnet/minecraft/screen/SmithingScreenHandler;SLOT_Y:I
 
- 
world- Mappings:
- Namespace - Name - Mixin selector - official - x- Lccy;x:Lcmm;- intermediary - field_25385- Lnet/minecraft/class_4862;field_25385:Lnet/minecraft/class_1937;- named - world- Lnet/minecraft/screen/SmithingScreenHandler;world:Lnet/minecraft/world/World;
 
- 
currentRecipe- Mappings:
- Namespace - Name - Mixin selector - official - y- Lccy;y:Lcjp;- intermediary - field_25386- Lnet/minecraft/class_4862;field_25386:Lnet/minecraft/class_8059;- named - currentRecipe- Lnet/minecraft/screen/SmithingScreenHandler;currentRecipe:Lnet/minecraft/recipe/SmithingRecipe;
 
- 
recipes- Mappings:
- Namespace - Name - Mixin selector - official - z- Lccy;z:Ljava/util/List;- intermediary - field_25668- Lnet/minecraft/class_4862;field_25668:Ljava/util/List;- named - recipes- Lnet/minecraft/screen/SmithingScreenHandler;recipes:Ljava/util/List;
 
 
- 
- 
Constructor Details- 
SmithingScreenHandler- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lccy;<init>(ILbyn;)V- intermediary - <init>- Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;)V- named - <init>- Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
 
- 
SmithingScreenHandlerpublic SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lccy;<init>(ILbyn;Lcbq;)V- intermediary - <init>- Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)V- named - <init>- Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
 
 
- 
- 
Method Details- 
getForgingSlotsManager- Specified by:
- getForgingSlotsManagerin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lccf;l()Lccg;- intermediary - method_48352- Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;- named - getForgingSlotsManager- Lnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
 
- 
canUse- Specified by:
- canUsein class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lccf;a(Ldcb;)Z- intermediary - method_24925- Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Z- named - canUse- Lnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
 
- 
canTakeOutput- Specified by:
- canTakeOutputin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lccf;a(Lbyo;Z)Z- intermediary - method_24927- Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Z- named - canTakeOutput- Lnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
 
- 
onTakeOutput- Specified by:
- onTakeOutputin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lccf;a(Lbyo;Lcfz;)V- intermediary - method_24923- Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)V- named - onTakeOutput- Lnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
 
- 
getInputStacks- Mappings:
- Namespace - Name - Mixin selector - official - n- Lccy;n()Ljava/util/List;- intermediary - method_51307- Lnet/minecraft/class_4862;method_51307()Ljava/util/List;- named - getInputStacks- Lnet/minecraft/screen/SmithingScreenHandler;getInputStacks()Ljava/util/List;
 
- 
decrementStackprivate void decrementStack(int slot) - Mappings:
- Namespace - Name - Mixin selector - official - e- Lccy;e(I)V- intermediary - method_29539- Lnet/minecraft/class_4862;method_29539(I)V- named - decrementStack- Lnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)V
 
- 
updateResultpublic void updateResult()- Specified by:
- updateResultin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lccf;m()V- intermediary - method_24928- Lnet/minecraft/class_4861;method_24928()V- named - updateResult- Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
 
- 
getSlotFor- Overrides:
- getSlotForin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lccf;d(Lcfz;)I- intermediary - method_48357- Lnet/minecraft/class_4861;method_48357(Lnet/minecraft/class_1799;)I- named - getSlotFor- Lnet/minecraft/screen/ForgingScreenHandler;getSlotFor(Lnet/minecraft/item/ItemStack;)I
 
- 
getQuickMoveSlot- Mappings:
- Namespace - Name - Mixin selector - official - a- Lccy;a(Lcjp;Lcfz;)Ljava/util/Optional;- intermediary - method_48389- Lnet/minecraft/class_4862;method_48389(Lnet/minecraft/class_8059;Lnet/minecraft/class_1799;)Ljava/util/Optional;- named - getQuickMoveSlot- Lnet/minecraft/screen/SmithingScreenHandler;getQuickMoveSlot(Lnet/minecraft/recipe/SmithingRecipe;Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
 
- 
canInsertIntoSlotReturns whetherstackcan be inserted toslot.Subclasses should override this to return falseif the slot is used for output.- Overrides:
- canInsertIntoSlotin class- ScreenHandler
- Returns:
- whether stackcan be inserted toslot
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lcbf;a(Lcfz;Lccx;)Z- intermediary - method_7613- Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Z- named - canInsertIntoSlot- Lnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
 
- 
isValidIngredient- Overrides:
- isValidIngredientin class- ForgingScreenHandler
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lccf;c(Lcfz;)Z- intermediary - method_48356- Lnet/minecraft/class_4861;method_48356(Lnet/minecraft/class_1799;)Z- named - isValidIngredient- Lnet/minecraft/screen/ForgingScreenHandler;isValidIngredient(Lnet/minecraft/item/ItemStack;)Z
 
 
-