Class SmithingScreenHandler


public class SmithingScreenHandler extends ForgingScreenHandler
Mappings:
Namespace Name
official cay
intermediary net/minecraft/class_4862
named net/minecraft/screen/SmithingScreenHandler
  • Field Details

    • world

      private final World world
      Mappings:
      Namespace Name Mixin selector
      official k Lcay;k:Lcjw;
      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

      @Nullable private @Nullable SmithingRecipe currentRecipe
      Mappings:
      Namespace Name Mixin selector
      official s Lcay;s:Lchf;
      intermediary field_25386 Lnet/minecraft/class_4862;field_25386:Lnet/minecraft/class_5357;
      named currentRecipe Lnet/minecraft/screen/SmithingScreenHandler;currentRecipe:Lnet/minecraft/recipe/SmithingRecipe;
    • recipes

      private final List<SmithingRecipe> recipes
      Mappings:
      Namespace Name Mixin selector
      official t Lcay;t: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

      public SmithingScreenHandler(int syncId, PlayerInventory playerInventory)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcay;<init>(ILbwo;)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
    • SmithingScreenHandler

      public SmithingScreenHandler(int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcay;<init>(ILbwo;Lbzr;)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

    • canUse

      protected boolean canUse(BlockState state)
      Specified by:
      canUse in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcag;a(Lcyt;)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

      protected boolean canTakeOutput(PlayerEntity player, boolean present)
      Specified by:
      canTakeOutput in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcag;a(Lbwp;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

      protected void onTakeOutput(PlayerEntity player, ItemStack stack)
      Specified by:
      onTakeOutput in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lcag;a(Lbwp;Lcdt;)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
    • decrementStack

      private void decrementStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official e Lcay;e(I)V
      intermediary method_29539 Lnet/minecraft/class_4862;method_29539(I)V
      named decrementStack Lnet/minecraft/screen/SmithingScreenHandler;decrementStack(I)V
    • updateResult

      public void updateResult()
      Specified by:
      updateResult in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official l Lcag;l()V
      intermediary method_24928 Lnet/minecraft/class_4861;method_24928()V
      named updateResult Lnet/minecraft/screen/ForgingScreenHandler;updateResult()V
    • isUsableAsAddition

      protected boolean isUsableAsAddition(ItemStack stack)
      Overrides:
      isUsableAsAddition in class ForgingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official c Lcag;c(Lcdt;)Z
      intermediary method_30025 Lnet/minecraft/class_4861;method_30025(Lnet/minecraft/class_1799;)Z
      named isUsableAsAddition Lnet/minecraft/screen/ForgingScreenHandler;isUsableAsAddition(Lnet/minecraft/item/ItemStack;)Z
    • canInsertIntoSlot

      public boolean canInsertIntoSlot(ItemStack stack, Slot slot)
      Returns whether stack can be inserted to slot.

      Subclasses should override this to return false if the slot is used for output.

      Overrides:
      canInsertIntoSlot in class ScreenHandler
      Returns:
      whether stack can be inserted to slot
      Mappings:
      Namespace Name Mixin selector
      official a Lbzg;a(Lcdt;Lcax;)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