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 ccwintermediary net/minecraft/class_4862named net/minecraft/screen/SmithingScreenHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable SmithingRecipestatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprivate static final intprivate final List<SmithingRecipe>private final WorldFields inherited from class net.minecraft.screen.ForgingScreenHandler
context, input, output, playerFields 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
ConstructorsConstructorDescriptionSmithingScreenHandler(int syncId, PlayerInventory playerInventory) SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) -
Method Summary
Modifier 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.ForgingScreenHandler
canUse, getResultSlotIndex, onClosed, onContentChanged, quickMoveMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, 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
-
field_41924
public static final int field_41924- See Also:
- Mappings:
Namespace Name Mixin selector official kLccw;k:Iintermediary field_41924Lnet/minecraft/class_4862;field_41924:Inamed field_41924Lnet/minecraft/screen/SmithingScreenHandler;field_41924:I
-
field_41925
public static final int field_41925- See Also:
- Mappings:
Namespace Name Mixin selector official lLccw;l:Iintermediary field_41925Lnet/minecraft/class_4862;field_41925:Inamed field_41925Lnet/minecraft/screen/SmithingScreenHandler;field_41925:I
-
field_41926
public static final int field_41926- See Also:
- Mappings:
Namespace Name Mixin selector official mLccw;m:Iintermediary field_41926Lnet/minecraft/class_4862;field_41926:Inamed field_41926Lnet/minecraft/screen/SmithingScreenHandler;field_41926:I
-
field_41927
public static final int field_41927- See Also:
- Mappings:
Namespace Name Mixin selector official nLccw;n:Iintermediary field_41927Lnet/minecraft/class_4862;field_41927:Inamed field_41927Lnet/minecraft/screen/SmithingScreenHandler;field_41927:I
-
field_41928
public static final int field_41928- See Also:
- Mappings:
Namespace Name Mixin selector official sLccw;s:Iintermediary field_41928Lnet/minecraft/class_4862;field_41928:Inamed field_41928Lnet/minecraft/screen/SmithingScreenHandler;field_41928:I
-
field_41929
public static final int field_41929- See Also:
- Mappings:
Namespace Name Mixin selector official tLccw;t:Iintermediary field_41929Lnet/minecraft/class_4862;field_41929:Inamed field_41929Lnet/minecraft/screen/SmithingScreenHandler;field_41929:I
-
field_41930
public static final int field_41930- See Also:
- Mappings:
Namespace Name Mixin selector official uLccw;u:Iintermediary field_41930Lnet/minecraft/class_4862;field_41930:Inamed field_41930Lnet/minecraft/screen/SmithingScreenHandler;field_41930:I
-
field_41932
private static final int field_41932- See Also:
- Mappings:
Namespace Name Mixin selector official wLccw;w:Iintermediary field_41932Lnet/minecraft/class_4862;field_41932:Inamed field_41932Lnet/minecraft/screen/SmithingScreenHandler;field_41932:I
-
field_41931
public static final int field_41931- See Also:
- Mappings:
Namespace Name Mixin selector official vLccw;v:Iintermediary field_41931Lnet/minecraft/class_4862;field_41931:Inamed field_41931Lnet/minecraft/screen/SmithingScreenHandler;field_41931:I
-
world
- Mappings:
Namespace Name Mixin selector official xLccw;x:Lcmk;intermediary field_25385Lnet/minecraft/class_4862;field_25385:Lnet/minecraft/class_1937;named worldLnet/minecraft/screen/SmithingScreenHandler;world:Lnet/minecraft/world/World;
-
currentRecipe
- Mappings:
Namespace Name Mixin selector official yLccw;y:Lcjn;intermediary field_25386Lnet/minecraft/class_4862;field_25386:Lnet/minecraft/class_8059;named currentRecipeLnet/minecraft/screen/SmithingScreenHandler;currentRecipe:Lnet/minecraft/recipe/SmithingRecipe;
-
recipes
- Mappings:
Namespace Name Mixin selector official zLccw;z:Ljava/util/List;intermediary field_25668Lnet/minecraft/class_4862;field_25668:Ljava/util/List;named recipesLnet/minecraft/screen/SmithingScreenHandler;recipes:Ljava/util/List;
-
-
Constructor Details
-
SmithingScreenHandler
- Mappings:
Namespace Name Mixin selector official <init>Lccw;<init>(ILbyl;)Vintermediary <init>Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;)Vnamed <init>Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;)V
-
SmithingScreenHandler
public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context) - Mappings:
Namespace Name Mixin selector official <init>Lccw;<init>(ILbyl;Lcbo;)Vintermediary <init>Lnet/minecraft/class_4862;<init>(ILnet/minecraft/class_1661;Lnet/minecraft/class_3914;)Vnamed <init>Lnet/minecraft/screen/SmithingScreenHandler;<init>(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/screen/ScreenHandlerContext;)V
-
-
Method Details
-
getForgingSlotsManager
- Specified by:
getForgingSlotsManagerin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official lLccd;l()Lcce;intermediary method_48352Lnet/minecraft/class_4861;method_48352()Lnet/minecraft/class_8047;named getForgingSlotsManagerLnet/minecraft/screen/ForgingScreenHandler;getForgingSlotsManager()Lnet/minecraft/screen/slot/ForgingSlotsManager;
-
canUse
- Specified by:
canUsein classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLccd;a(Ldby;)Zintermediary method_24925Lnet/minecraft/class_4861;method_24925(Lnet/minecraft/class_2680;)Znamed canUseLnet/minecraft/screen/ForgingScreenHandler;canUse(Lnet/minecraft/block/BlockState;)Z
-
canTakeOutput
- Specified by:
canTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLccd;a(Lbym;Z)Zintermediary method_24927Lnet/minecraft/class_4861;method_24927(Lnet/minecraft/class_1657;Z)Znamed canTakeOutputLnet/minecraft/screen/ForgingScreenHandler;canTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Z)Z
-
onTakeOutput
- Specified by:
onTakeOutputin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official aLccd;a(Lbym;Lcfx;)Vintermediary method_24923Lnet/minecraft/class_4861;method_24923(Lnet/minecraft/class_1657;Lnet/minecraft/class_1799;)Vnamed onTakeOutputLnet/minecraft/screen/ForgingScreenHandler;onTakeOutput(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;)V
-
getInputStacks
- Mappings:
Namespace Name Mixin selector official nLccw;n()Ljava/util/List;intermediary method_51307Lnet/minecraft/class_4862;method_51307()Ljava/util/List;named getInputStacksLnet/minecraft/screen/SmithingScreenHandler;getInputStacks()Ljava/util/List;
-
decrementStack
private void decrementStack(int slot) - Mappings:
Namespace Name Mixin selector official eLccw;e(I)Vintermediary method_29539Lnet/minecraft/class_4862;method_29539(I)Vnamed decrementStackLnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)V
-
updateResult
public void updateResult()- Specified by:
updateResultin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official mLccd;m()Vintermediary method_24928Lnet/minecraft/class_4861;method_24928()Vnamed updateResultLnet/minecraft/screen/ForgingScreenHandler;updateResult()V
-
getSlotFor
- Overrides:
getSlotForin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official dLccd;d(Lcfx;)Iintermediary method_48357Lnet/minecraft/class_4861;method_48357(Lnet/minecraft/class_1799;)Inamed getSlotForLnet/minecraft/screen/ForgingScreenHandler;getSlotFor(Lnet/minecraft/item/ItemStack;)I
-
getQuickMoveSlot
- Mappings:
Namespace Name Mixin selector official aLccw;a(Lcjn;Lcfx;)Ljava/util/Optional;intermediary method_48389Lnet/minecraft/class_4862;method_48389(Lnet/minecraft/class_8059;Lnet/minecraft/class_1799;)Ljava/util/Optional;named getQuickMoveSlotLnet/minecraft/screen/SmithingScreenHandler;getQuickMoveSlot(Lnet/minecraft/recipe/SmithingRecipe;Lnet/minecraft/item/ItemStack;)Ljava/util/Optional;
-
canInsertIntoSlot
Returns whetherstackcan be inserted toslot.Subclasses should override this to return
falseif the slot is used for output.- Overrides:
canInsertIntoSlotin classScreenHandler- Returns:
- whether
stackcan be inserted toslot - Mappings:
Namespace Name Mixin selector official aLcbd;a(Lcfx;Lccv;)Zintermediary method_7613Lnet/minecraft/class_1703;method_7613(Lnet/minecraft/class_1799;Lnet/minecraft/class_1735;)Znamed canInsertIntoSlotLnet/minecraft/screen/ScreenHandler;canInsertIntoSlot(Lnet/minecraft/item/ItemStack;Lnet/minecraft/screen/slot/Slot;)Z
-
isValidIngredient
- Overrides:
isValidIngredientin classForgingScreenHandler- Mappings:
Namespace Name Mixin selector official cLccd;c(Lcfx;)Zintermediary method_48356Lnet/minecraft/class_4861;method_48356(Lnet/minecraft/class_1799;)Znamed isValidIngredientLnet/minecraft/screen/ForgingScreenHandler;isValidIngredient(Lnet/minecraft/item/ItemStack;)Z
-