Class CrafterScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement, ScreenHandlerProvider<CrafterScreenHandler>

@Environment(CLIENT) public class CrafterScreen extends HandledScreen<CrafterScreenHandler>
Mappings:
Namespace Name
official fem
intermediary net/minecraft/class_8898
named net/minecraft/client/gui/screen/ingame/CrafterScreen
  • Field Details

    • DISABLED_SLOT_TEXTURE

      private static final Identifier DISABLED_SLOT_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official x Lfem;x:Lahg;
      intermediary field_46882 Lnet/minecraft/class_8898;field_46882:Lnet/minecraft/class_2960;
      named DISABLED_SLOT_TEXTURE Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;DISABLED_SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
    • POWERED_REDSTONE_TEXTURE

      private static final Identifier POWERED_REDSTONE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official y Lfem;y:Lahg;
      intermediary field_46883 Lnet/minecraft/class_8898;field_46883:Lnet/minecraft/class_2960;
      named POWERED_REDSTONE_TEXTURE Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;POWERED_REDSTONE_TEXTURE:Lnet/minecraft/util/Identifier;
    • UNPOWERED_REDSTONE_TEXTURE

      private static final Identifier UNPOWERED_REDSTONE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official z Lfem;z:Lahg;
      intermediary field_46884 Lnet/minecraft/class_8898;field_46884:Lnet/minecraft/class_2960;
      named UNPOWERED_REDSTONE_TEXTURE Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;UNPOWERED_REDSTONE_TEXTURE:Lnet/minecraft/util/Identifier;
    • TEXTURE

      private static final Identifier TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official A Lfem;A:Lahg;
      intermediary field_46879 Lnet/minecraft/class_8898;field_46879:Lnet/minecraft/class_2960;
      named TEXTURE Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;TEXTURE:Lnet/minecraft/util/Identifier;
    • TOGGLEABLE_SLOT_TEXT

      private static final Text TOGGLEABLE_SLOT_TEXT
      Mappings:
      Namespace Name Mixin selector
      official B Lfem;B:Lvf;
      intermediary field_46880 Lnet/minecraft/class_8898;field_46880:Lnet/minecraft/class_2561;
      named TOGGLEABLE_SLOT_TEXT Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;TOGGLEABLE_SLOT_TEXT:Lnet/minecraft/text/Text;
    • player

      private final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      official C Lfem;C:Lcfi;
      intermediary field_46881 Lnet/minecraft/class_8898;field_46881:Lnet/minecraft/class_1657;
      named player Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;player:Lnet/minecraft/entity/player/PlayerEntity;
  • Constructor Details

    • CrafterScreen

      public CrafterScreen(CrafterScreenHandler handler, PlayerInventory playerInventory, Text title)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfem;<init>(Lcip;Lcfh;Lvf;)V
      intermediary <init> Lnet/minecraft/class_8898;<init>(Lnet/minecraft/class_8881;Lnet/minecraft/class_1661;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;<init>(Lnet/minecraft/screen/CrafterScreenHandler;Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/text/Text;)V
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class HandledScreen<CrafterScreenHandler>
      Mappings:
      Namespace Name Mixin selector
      official aN_ Lfdb;aN_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • onMouseClick

      protected void onMouseClick(Slot slot, int slotId, int button, SlotActionType actionType)
      Overrides:
      onMouseClick in class HandledScreen<CrafterScreenHandler>
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfea;a(Lcjw;IILcik;)V
      intermediary method_2383 Lnet/minecraft/class_465;method_2383(Lnet/minecraft/class_1735;IILnet/minecraft/class_1713;)V
      named onMouseClick Lnet/minecraft/client/gui/screen/ingame/HandledScreen;onMouseClick(Lnet/minecraft/screen/slot/Slot;IILnet/minecraft/screen/slot/SlotActionType;)V
    • enableSlot

      private void enableSlot(int slotId)
      Mappings:
      Namespace Name Mixin selector
      official a Lfem;a(I)V
      intermediary method_54797 Lnet/minecraft/class_8898;method_54797(I)V
      named enableSlot Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;enableSlot(I)V
    • disableSlot

      private void disableSlot(int slotId)
      Mappings:
      Namespace Name Mixin selector
      official b Lfem;b(I)V
      intermediary method_54799 Lnet/minecraft/class_8898;method_54799(I)V
      named disableSlot Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;disableSlot(I)V
    • setSlotEnabled

      private void setSlotEnabled(int slotId, boolean enabled)
      Mappings:
      Namespace Name Mixin selector
      official a Lfem;a(IZ)V
      intermediary method_54798 Lnet/minecraft/class_8898;method_54798(IZ)V
      named setSlotEnabled Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;setSlotEnabled(IZ)V
    • drawSlot

      public void drawSlot(DrawContext context, Slot slot)
      Overrides:
      drawSlot in class HandledScreen<CrafterScreenHandler>
      Mappings:
      Namespace Name Mixin selector
      official a Lfea;a(Lewu;Lcjw;)V
      intermediary method_2385 Lnet/minecraft/class_465;method_2385(Lnet/minecraft/class_332;Lnet/minecraft/class_1735;)V
      named drawSlot Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawSlot(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/screen/slot/Slot;)V
    • drawDisabledSlot

      private void drawDisabledSlot(DrawContext context, CrafterInputSlot slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lfem;a(Lewu;Lciq;)V
      intermediary method_54591 Lnet/minecraft/class_8898;method_54591(Lnet/minecraft/class_332;Lnet/minecraft/class_8882;)V
      named drawDisabledSlot Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;drawDisabledSlot(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/screen/slot/CrafterInputSlot;)V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class HandledScreen<CrafterScreenHandler>
      Mappings:
      Namespace Name Mixin selector
      official a Leyj;a(Lewu;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • drawArrowTexture

      private void drawArrowTexture(DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      official c Lfem;c(Lewu;)V
      intermediary method_54592 Lnet/minecraft/class_8898;method_54592(Lnet/minecraft/class_332;)V
      named drawArrowTexture Lnet/minecraft/client/gui/screen/ingame/CrafterScreen;drawArrowTexture(Lnet/minecraft/client/gui/DrawContext;)V
    • drawBackground

      protected void drawBackground(DrawContext context, float delta, int mouseX, int mouseY)
      Specified by:
      drawBackground in class HandledScreen<CrafterScreenHandler>
      Mappings:
      Namespace Name Mixin selector
      official a Lfea;a(Lewu;FII)V
      intermediary method_2389 Lnet/minecraft/class_465;method_2389(Lnet/minecraft/class_332;FII)V
      named drawBackground Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(Lnet/minecraft/client/gui/DrawContext;FII)V