类 CreativeInventoryScreen

    • 字段详细资料

      • TEXTURE

        private static final Identifier TEXTURE
        Mappings:
        Namespace Name Mixin selector
        official C Leap;C:Lwp;
        intermediary field_2893 Lnet/minecraft/class_481;field_2893:Lnet/minecraft/class_2960;
        named TEXTURE Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;TEXTURE:Lnet/minecraft/util/Identifier;
      • field_32335

        private static final String field_32335
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official D Leap;D:Ljava/lang/String;
        intermediary field_32335 Lnet/minecraft/class_481;field_32335:Ljava/lang/String;
        named field_32335 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32335:Ljava/lang/String;
      • field_32336

        private static final String field_32336
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official E Leap;E:Ljava/lang/String;
        intermediary field_32336 Lnet/minecraft/class_481;field_32336:Ljava/lang/String;
        named field_32336 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32336:Ljava/lang/String;
      • field_32337

        private static final int field_32337
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official F Leap;F:I
        intermediary field_32337 Lnet/minecraft/class_481;field_32337:I
        named field_32337 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32337:I
      • field_32338

        private static final int field_32338
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official G Leap;G:I
        intermediary field_32338 Lnet/minecraft/class_481;field_32338:I
        named field_32338 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32338:I
      • field_32339

        private static final int field_32339
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official H Leap;H:I
        intermediary field_32339 Lnet/minecraft/class_481;field_32339:I
        named field_32339 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32339:I
      • field_32340

        private static final int field_32340
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official I Leap;I:I
        intermediary field_32340 Lnet/minecraft/class_481;field_32340:I
        named field_32340 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32340:I
      • field_32341

        private static final int field_32341
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official J Leap;J:I
        intermediary field_32341 Lnet/minecraft/class_481;field_32341:I
        named field_32341 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32341:I
      • field_32342

        private static final int field_32342
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official K Leap;K:I
        intermediary field_32342 Lnet/minecraft/class_481;field_32342:I
        named field_32342 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32342:I
      • INVENTORY

        private static final SimpleInventory INVENTORY
        Mappings:
        Namespace Name Mixin selector
        official L Leap;L:Larl;
        intermediary field_2895 Lnet/minecraft/class_481;field_2895:Lnet/minecraft/class_1277;
        named INVENTORY Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;INVENTORY:Lnet/minecraft/inventory/SimpleInventory;
      • DELETE_ITEM_SLOT_TEXT

        private static final Text DELETE_ITEM_SLOT_TEXT
        Mappings:
        Namespace Name Mixin selector
        official M Leap;M:Lon;
        intermediary field_26563 Lnet/minecraft/class_481;field_26563:Lnet/minecraft/class_2561;
        named DELETE_ITEM_SLOT_TEXT Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;DELETE_ITEM_SLOT_TEXT:Lnet/minecraft/text/Text;
      • field_32343

        private static final int field_32343
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official N Leap;N:I
        intermediary field_32343 Lnet/minecraft/class_481;field_32343:I
        named field_32343 Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_32343:I
      • selectedTab

        private static int selectedTab
        Mappings:
        Namespace Name Mixin selector
        official O Leap;O:I
        intermediary field_2896 Lnet/minecraft/class_481;field_2896:I
        named selectedTab Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;selectedTab:I
      • scrollPosition

        private float scrollPosition
        Mappings:
        Namespace Name Mixin selector
        official P Leap;P:F
        intermediary field_2890 Lnet/minecraft/class_481;field_2890:F
        named scrollPosition Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;scrollPosition:F
      • scrolling

        private boolean scrolling
        Mappings:
        Namespace Name Mixin selector
        official Q Leap;Q:Z
        intermediary field_2892 Lnet/minecraft/class_481;field_2892:Z
        named scrolling Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;scrolling:Z
      • searchBox

        private TextFieldWidget searchBox
        Mappings:
        Namespace Name Mixin selector
        official R Leap;R:Ldwe;
        intermediary field_2894 Lnet/minecraft/class_481;field_2894:Lnet/minecraft/class_342;
        named searchBox Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;searchBox:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      • slots

        @Nullable
        private @Nullable List<Slot> slots
        Mappings:
        Namespace Name Mixin selector
        official S Leap;S:Ljava/util/List;
        intermediary field_2886 Lnet/minecraft/class_481;field_2886:Ljava/util/List;
        named slots Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;slots:Ljava/util/List;
      • deleteItemSlot

        @Nullable
        private @Nullable Slot deleteItemSlot
        Mappings:
        Namespace Name Mixin selector
        official T Leap;T:Lbnc;
        intermediary field_2889 Lnet/minecraft/class_481;field_2889:Lnet/minecraft/class_1735;
        named deleteItemSlot Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;deleteItemSlot:Lnet/minecraft/screen/slot/Slot;
      • listener

        private CreativeInventoryListener listener
        Mappings:
        Namespace Name Mixin selector
        official U Leap;U:Leao;
        intermediary field_2891 Lnet/minecraft/class_481;field_2891:Lnet/minecraft/class_478;
        named listener Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;listener:Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryListener;
      • ignoreTypedCharacter

        private boolean ignoreTypedCharacter
        Mappings:
        Namespace Name Mixin selector
        official V Leap;V:Z
        intermediary field_2888 Lnet/minecraft/class_481;field_2888:Z
        named ignoreTypedCharacter Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;ignoreTypedCharacter:Z
      • lastClickOutsideBounds

        private boolean lastClickOutsideBounds
        Mappings:
        Namespace Name Mixin selector
        official W Leap;W:Z
        intermediary field_2887 Lnet/minecraft/class_481;field_2887:Z
        named lastClickOutsideBounds Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;lastClickOutsideBounds:Z
      • searchResultTags

        private final Map<Identifier,​Tag<Item>> searchResultTags
        Mappings:
        Namespace Name Mixin selector
        official X Leap;X:Ljava/util/Map;
        intermediary field_16201 Lnet/minecraft/class_481;field_16201:Ljava/util/Map;
        named searchResultTags Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;searchResultTags:Ljava/util/Map;
    • 构造器详细资料

      • CreativeInventoryScreen

        public CreativeInventoryScreen​(PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official <init> Leap;<init>(Lbjf;)V
        intermediary <init> Lnet/minecraft/class_481;<init>(Lnet/minecraft/class_1657;)V
        named <init> Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
    • 方法详细资料

      • isCreativeInventorySlot

        private boolean isCreativeInventorySlot​(@Nullable
                                                @Nullable Slot slot)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Lbnc;)Z
        intermediary method_2470 Lnet/minecraft/class_481;method_2470(Lnet/minecraft/class_1735;)Z
        named isCreativeInventorySlot Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;isCreativeInventorySlot(Lnet/minecraft/screen/slot/Slot;)Z
      • init

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

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

        覆盖:
        init 在类中 AbstractInventoryScreen<CreativeInventoryScreen.CreativeScreenHandler>
        Mappings:
        Namespace Name Mixin selector
        official b Ldzg;b()V
        intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
        named init Lnet/minecraft/client/gui/screen/Screen;init()V
      • resize

        public void resize​(MinecraftClient client,
                           int width,
                           int height)
        覆盖:
        resize 在类中 Screen
        Mappings:
        Namespace Name Mixin selector
        official a Ldzg;a(Ldum;II)V
        intermediary method_25410 Lnet/minecraft/class_437;method_25410(Lnet/minecraft/class_310;II)V
        named resize Lnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
      • charTyped

        public boolean charTyped​(char chr,
                                 int modifiers)
        Callback for when a character input has been captured. The key code is identified by the constants in GLFW class.
        参数:
        chr - the captured character
        modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Keyboard.onChar(long, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
        Mappings:
        Namespace Name Mixin selector
        official a Ldwv;a(CI)Z
        intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
        named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
      • keyReleased

        public boolean keyReleased​(int keyCode,
                                   int scanCode,
                                   int modifiers)
        Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
        参数:
        keyCode - the named key code of the event as described in the GLFW class
        scanCode - the unique/platform-specific scan code of the keyboard input
        modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
        Mappings:
        Namespace Name Mixin selector
        official b Ldwv;b(III)Z
        intermediary method_16803 Lnet/minecraft/class_364;method_16803(III)Z
        named keyReleased Lnet/minecraft/client/gui/Element;keyReleased(III)Z
      • search

        private void search()
        Mappings:
        Namespace Name Mixin selector
        official m Leap;m()V
        intermediary method_2464 Lnet/minecraft/class_481;method_2464()V
        named search Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;search()V
      • searchForTags

        private void searchForTags​(String string)
        Mappings:
        Namespace Name Mixin selector
        official b Leap;b(Ljava/lang/String;)V
        intermediary method_15871 Lnet/minecraft/class_481;method_15871(Ljava/lang/String;)V
        named searchForTags Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;searchForTags(Ljava/lang/String;)V
      • drawForeground

        protected void drawForeground​(MatrixStack matrices,
                                      int mouseX,
                                      int mouseY)
        覆盖:
        drawForeground 在类中 HandledScreen<CreativeInventoryScreen.CreativeScreenHandler>
        Mappings:
        Namespace Name Mixin selector
        official b Leac;b(Ldpi;II)V
        intermediary method_2388 Lnet/minecraft/class_465;method_2388(Lnet/minecraft/class_4587;II)V
        named drawForeground Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawForeground(Lnet/minecraft/client/util/math/MatrixStack;II)V
      • hasScrollbar

        private boolean hasScrollbar()
        Mappings:
        Namespace Name Mixin selector
        official n Leap;n()Z
        intermediary method_2465 Lnet/minecraft/class_481;method_2465()Z
        named hasScrollbar Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;hasScrollbar()Z
      • setSelectedTab

        private void setSelectedTab​(ItemGroup group)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Lboh;)V
        intermediary method_2466 Lnet/minecraft/class_481;method_2466(Lnet/minecraft/class_1761;)V
        named setSelectedTab Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;setSelectedTab(Lnet/minecraft/item/ItemGroup;)V
      • mouseScrolled

        public boolean mouseScrolled​(double mouseX,
                                     double mouseY,
                                     double amount)
        Callback for when a mouse button scroll event has been captured.
        参数:
        mouseX - the X coordinate of the mouse
        mouseY - the Y coordinate of the mouse
        amount - value is > 1 if scrolled down, < 1 if scrolled up
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Mouse.onMouseScroll(long, double, double)
        Mappings:
        Namespace Name Mixin selector
        official a Ldwv;a(DDD)Z
        intermediary method_25401 Lnet/minecraft/class_364;method_25401(DDD)Z
        named mouseScrolled Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
      • isClickOutsideBounds

        protected boolean isClickOutsideBounds​(double mouseX,
                                               double mouseY,
                                               int left,
                                               int top,
                                               int button)
        覆盖:
        isClickOutsideBounds 在类中 HandledScreen<CreativeInventoryScreen.CreativeScreenHandler>
        Mappings:
        Namespace Name Mixin selector
        official a Leac;a(DDIII)Z
        intermediary method_2381 Lnet/minecraft/class_465;method_2381(DDIII)Z
        named isClickOutsideBounds Lnet/minecraft/client/gui/screen/ingame/HandledScreen;isClickOutsideBounds(DDIII)Z
      • isClickInScrollbar

        protected boolean isClickInScrollbar​(double mouseX,
                                             double mouseY)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(DD)Z
        intermediary method_2467 Lnet/minecraft/class_481;method_2467(DD)Z
        named isClickInScrollbar Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;isClickInScrollbar(DD)Z
      • mouseDragged

        public boolean mouseDragged​(double mouseX,
                                    double mouseY,
                                    int button,
                                    double deltaX,
                                    double deltaY)
        Callback for when a mouse button drag event has been captured. The button number is identified by the constants in GLFW class.
        指定者:
        mouseDragged 在接口中 Element
        指定者:
        mouseDragged 在接口中 ParentElement
        覆盖:
        mouseDragged 在类中 HandledScreen<CreativeInventoryScreen.CreativeScreenHandler>
        参数:
        mouseX - the current X coordinate of the mouse
        mouseY - the current Y coordinate of the mouse
        button - the mouse button number
        deltaX - the difference of the current X with the previous X coordinate
        deltaY - the difference of the current Y with the previous Y coordinate
        返回:
        true to indicate that the event handling is successful/valid
        另请参阅:
        Mouse.onCursorPos(long, double, double), GLFW.GLFW_MOUSE_BUTTON_1
        Mappings:
        Namespace Name Mixin selector
        official a Ldwv;a(DDIDD)Z
        intermediary method_25403 Lnet/minecraft/class_364;method_25403(DDIDD)Z
        named mouseDragged Lnet/minecraft/client/gui/Element;mouseDragged(DDIDD)Z
      • render

        public void render​(MatrixStack matrices,
                           int mouseX,
                           int mouseY,
                           float delta)
        指定者:
        render 在接口中 Drawable
        覆盖:
        render 在类中 AbstractInventoryScreen<CreativeInventoryScreen.CreativeScreenHandler>
        Mappings:
        Namespace Name Mixin selector
        official a Ldws;a(Ldpi;IIF)V
        intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
        named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
      • renderTooltip

        protected void renderTooltip​(MatrixStack matrices,
                                     ItemStack stack,
                                     int x,
                                     int y)
        覆盖:
        renderTooltip 在类中 Screen
        Mappings:
        Namespace Name Mixin selector
        official a Ldzg;a(Ldpi;Lbpr;II)V
        intermediary method_25409 Lnet/minecraft/class_437;method_25409(Lnet/minecraft/class_4587;Lnet/minecraft/class_1799;II)V
        named renderTooltip Lnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/item/ItemStack;II)V
      • drawBackground

        protected void drawBackground​(MatrixStack matrices,
                                      float delta,
                                      int mouseX,
                                      int mouseY)
        指定者:
        drawBackground 在类中 HandledScreen<CreativeInventoryScreen.CreativeScreenHandler>
        Mappings:
        Namespace Name Mixin selector
        official a Leac;a(Ldpi;FII)V
        intermediary method_2389 Lnet/minecraft/class_465;method_2389(Lnet/minecraft/class_4587;FII)V
        named drawBackground Lnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(Lnet/minecraft/client/util/math/MatrixStack;FII)V
      • isClickInTab

        protected boolean isClickInTab​(ItemGroup group,
                                       double mouseX,
                                       double mouseY)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Lboh;DD)Z
        intermediary method_2463 Lnet/minecraft/class_481;method_2463(Lnet/minecraft/class_1761;DD)Z
        named isClickInTab Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;isClickInTab(Lnet/minecraft/item/ItemGroup;DD)Z
      • renderTabTooltipIfHovered

        protected boolean renderTabTooltipIfHovered​(MatrixStack matrices,
                                                    ItemGroup group,
                                                    int int2,
                                                    int int3)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Ldpi;Lboh;II)Z
        intermediary method_2471 Lnet/minecraft/class_481;method_2471(Lnet/minecraft/class_4587;Lnet/minecraft/class_1761;II)Z
        named renderTabTooltipIfHovered Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;renderTabTooltipIfHovered(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/item/ItemGroup;II)Z
      • renderTabIcon

        protected void renderTabIcon​(MatrixStack matrices,
                                     ItemGroup group)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Ldpi;Lboh;)V
        intermediary method_2468 Lnet/minecraft/class_481;method_2468(Lnet/minecraft/class_4587;Lnet/minecraft/class_1761;)V
        named renderTabIcon Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;renderTabIcon(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/item/ItemGroup;)V
      • getSelectedTab

        public int getSelectedTab()
        Mappings:
        Namespace Name Mixin selector
        official k Leap;k()I
        intermediary method_2469 Lnet/minecraft/class_481;method_2469()I
        named getSelectedTab Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;getSelectedTab()I
      • onHotbarKeyPress

        public static void onHotbarKeyPress​(MinecraftClient client,
                                            int index,
                                            boolean restore,
                                            boolean save)
        Mappings:
        Namespace Name Mixin selector
        official a Leap;a(Ldum;IZZ)V
        intermediary method_2462 Lnet/minecraft/class_481;method_2462(Lnet/minecraft/class_310;IZZ)V
        named onHotbarKeyPress Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;onHotbarKeyPress(Lnet/minecraft/client/MinecraftClient;IZZ)V