Class CreativeInventoryScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.ingame.HandledScreen
net.minecraft.client.gui.screen.ingame.InventoryScreen
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen
- All Implemented Interfaces:
IdentifibleBooleanConsumer
@Environment(CLIENT) public class CreativeInventoryScreen extends InventoryScreen
- Mappings:
Namespace Name official ayuintermediary net/minecraft/class_795named net/minecraft/client/gui/screen/ingame/CreativeInventoryScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classCreativeInventoryScreen.CreativeInventorySlot(package private) static classCreativeInventoryScreen.CreativeScreenHandler -
Field Summary
Fields Modifier and Type Field Description private Slotfield_3464private booleanfield_3471private booleanfield_3472private static SimpleInventoryinventoryprivate static IdentifierITEM_GROUPSprivate CreativeInventoryListenerlistenerprivate booleanscrollingprivate floatscrollPositionprivate TextFieldWidgetsearchFieldprivate static intselectedTabprivate List<Slot>slotsFields inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
backgroundHeight, backgroundWidth, cursorDragSlots, INVENTORY_TEXTURE, isCursorDragging, screenHandler, x, yFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, client, height, itemRenderer, labels, passEvents, textRenderer, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE, zOffset -
Constructor Summary
Constructors Constructor Description CreativeInventoryScreen(PlayerEntity player) -
Method Summary
Modifier and Type Method Description protected voidapplyStatusEffectOffset()protected voidbuttonClicked(ButtonWidget button)protected voiddrawBackground(float delta, int mouseX, int mouseY)protected voiddrawForeground(int mouseX, int mouseY)intgetSelectedTab()voidhandleMouse()private booleanhasScrollbar()voidinit()protected voidkeyPressed(char character, int code)protected voidmethod_2903(Slot slot, int int2, int int3, int int4)protected booleanmethod_2928(ItemGroup itemGroup, int int2, int int3)protected voidmouseClicked(int mouseX, int mouseY, int button)protected voidmouseReleased(int mouseX, int mouseY, int button)voidremoved()voidrender(int mouseX, int mouseY, float delta)protected voidrenderTabIcon(ItemGroup group)protected booleanrenderTabTooltipIfHovered(ItemGroup group, int mouseX, int mouseY)protected voidrenderTooltip(ItemStack stack, int x, int y)private voidsearch()private voidsetSelectedTab(ItemGroup group)voidtick()Methods inherited from class net.minecraft.client.gui.screen.ingame.HandledScreen
method_2905, method_2908, mouseDragged, shouldPauseGameMethods inherited from class net.minecraft.client.gui.screen.Screen
confirmResult, getClipboard, handleInput, handleKeyboard, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isPaste, isSelectAll, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setClipboard, setScreenBoundsMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawHorizontalLine, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, drawWithShadow, fill, fillGradient
-
Field Details
-
ITEM_GROUPS
- Mappings:
Namespace Name Mixin selector official uLayu;u:Ljy;intermediary field_3467Lnet/minecraft/class_795;field_3467:Lnet/minecraft/class_1605;named ITEM_GROUPSLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;ITEM_GROUPS:Lnet/minecraft/util/Identifier;
-
inventory
- Mappings:
Namespace Name Mixin selector official vLayu;v:Loq;intermediary field_3468Lnet/minecraft/class_795;field_3468:Lnet/minecraft/class_1727;named inventoryLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;inventory:Lnet/minecraft/inventory/SimpleInventory;
-
selectedTab
private static int selectedTab- Mappings:
Namespace Name Mixin selector official wLayu;w:Iintermediary field_3469Lnet/minecraft/class_795;field_3469:Inamed selectedTabLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;selectedTab:I
-
scrollPosition
private float scrollPosition- Mappings:
Namespace Name Mixin selector official xLayu;x:Fintermediary field_3470Lnet/minecraft/class_795;field_3470:Fnamed scrollPositionLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;scrollPosition:F
-
field_3471
private boolean field_3471- Mappings:
Namespace Name Mixin selector official yLayu;y:Zintermediary field_3471Lnet/minecraft/class_795;field_3471:Znamed field_3471Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_3471:Z
-
field_3472
private boolean field_3472- Mappings:
Namespace Name Mixin selector official zLayu;z:Zintermediary field_3472Lnet/minecraft/class_795;field_3472:Znamed field_3472Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_3472:Z
-
searchField
- Mappings:
Namespace Name Mixin selector official ALayu;A:Lavw;intermediary field_3462Lnet/minecraft/class_795;field_3462:Lnet/minecraft/class_689;named searchFieldLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;searchField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
slots
- Mappings:
Namespace Name Mixin selector official BLayu;B:Ljava/util/List;intermediary field_3463Lnet/minecraft/class_795;field_3463:Ljava/util/List;named slotsLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;slots:Ljava/util/List;
-
field_3464
- Mappings:
Namespace Name Mixin selector official CLayu;C:Lyg;intermediary field_3464Lnet/minecraft/class_795;field_3464:Lnet/minecraft/class_2010;named field_3464Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;field_3464:Lnet/minecraft/inventory/slot/Slot;
-
scrolling
private boolean scrolling- Mappings:
Namespace Name Mixin selector official DLayu;D:Zintermediary field_3465Lnet/minecraft/class_795;field_3465:Znamed scrollingLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;scrolling:Z
-
listener
- Mappings:
Namespace Name Mixin selector official ELayu;E:Layt;intermediary field_3466Lnet/minecraft/class_795;field_3466:Lnet/minecraft/class_794;named listenerLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;listener:Lnet/minecraft/client/gui/CreativeInventoryListener;
-
-
Constructor Details
-
CreativeInventoryScreen
- Mappings:
Namespace Name Mixin selector official <init>Layu;<init>(Lwn;)Vintermediary <init>Lnet/minecraft/class_795;<init>(Lnet/minecraft/class_1963;)Vnamed <init>Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;<init>(Lnet/minecraft/entity/player/PlayerEntity;)V
-
-
Method Details
-
tick
public void tick()- Overrides:
tickin classHandledScreen- Mappings:
Namespace Name Mixin selector official eLaxu;e()Vintermediary method_2804Lnet/minecraft/class_754;method_2804()Vnamed tickLnet/minecraft/client/gui/screen/Screen;tick()V
-
method_2903
- Overrides:
method_2903in classHandledScreen- Mappings:
Namespace Name Mixin selector official aLayl;a(Lyg;III)Vintermediary method_2903Lnet/minecraft/class_781;method_2903(Lnet/minecraft/class_2010;III)Vnamed method_2903Lnet/minecraft/client/gui/screen/ingame/HandledScreen;method_2903(Lnet/minecraft/inventory/slot/Slot;III)V
-
applyStatusEffectOffset
protected void applyStatusEffectOffset()- Overrides:
applyStatusEffectOffsetin classInventoryScreen- Mappings:
Namespace Name Mixin selector official aLayw;a()Vintermediary method_2938Lnet/minecraft/class_799;method_2938()Vnamed applyStatusEffectOffsetLnet/minecraft/client/gui/screen/ingame/InventoryScreen;applyStatusEffectOffset()V
-
init
public void init()- Overrides:
initin classInventoryScreen- Mappings:
Namespace Name Mixin selector official bLaxu;b()Vintermediary method_2795Lnet/minecraft/class_754;method_2795()Vnamed initLnet/minecraft/client/gui/screen/Screen;init()V
-
removed
public void removed()- Overrides:
removedin classHandledScreen- Mappings:
Namespace Name Mixin selector official mLaxu;m()Vintermediary method_2812Lnet/minecraft/class_754;method_2812()Vnamed removedLnet/minecraft/client/gui/screen/Screen;removed()V
-
keyPressed
protected void keyPressed(char character, int code)- Overrides:
keyPressedin classHandledScreen- Mappings:
Namespace Name Mixin selector official aLaxu;a(CI)Vintermediary method_2781Lnet/minecraft/class_754;method_2781(CI)Vnamed keyPressedLnet/minecraft/client/gui/screen/Screen;keyPressed(CI)V
-
search
private void search()- Mappings:
Namespace Name Mixin selector official hLayu;h()Vintermediary method_2933Lnet/minecraft/class_795;method_2933()Vnamed searchLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;search()V
-
drawForeground
protected void drawForeground(int mouseX, int mouseY)- Overrides:
drawForegroundin classHandledScreen- Mappings:
Namespace Name Mixin selector official bLayl;b(II)Vintermediary method_2906Lnet/minecraft/class_781;method_2906(II)Vnamed drawForegroundLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawForeground(II)V
-
mouseClicked
protected void mouseClicked(int mouseX, int mouseY, int button)- Overrides:
mouseClickedin classHandledScreen- Mappings:
Namespace Name Mixin selector official aLaxu;a(III)Vintermediary method_2784Lnet/minecraft/class_754;method_2784(III)Vnamed mouseClickedLnet/minecraft/client/gui/screen/Screen;mouseClicked(III)V
-
mouseReleased
protected void mouseReleased(int mouseX, int mouseY, int button)- Overrides:
mouseReleasedin classHandledScreen- Mappings:
Namespace Name Mixin selector official bLaxu;b(III)Vintermediary method_2796Lnet/minecraft/class_754;method_2796(III)Vnamed mouseReleasedLnet/minecraft/client/gui/screen/Screen;mouseReleased(III)V
-
hasScrollbar
private boolean hasScrollbar()- Mappings:
Namespace Name Mixin selector official iLayu;i()Zintermediary method_2934Lnet/minecraft/class_795;method_2934()Znamed hasScrollbarLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;hasScrollbar()Z
-
setSelectedTab
- Mappings:
Namespace Name Mixin selector official bLayu;b(Lyz;)Vintermediary method_2929Lnet/minecraft/class_795;method_2929(Lnet/minecraft/class_2029;)Vnamed setSelectedTabLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;setSelectedTab(Lnet/minecraft/item/ItemGroup;)V
-
handleMouse
public void handleMouse()- Overrides:
handleMousein classScreen- Mappings:
Namespace Name Mixin selector official kLaxu;k()Vintermediary method_2810Lnet/minecraft/class_754;method_2810()Vnamed handleMouseLnet/minecraft/client/gui/screen/Screen;handleMouse()V
-
render
public void render(int mouseX, int mouseY, float delta)- Overrides:
renderin classInventoryScreen- Mappings:
Namespace Name Mixin selector official aLaxu;a(IIF)Vintermediary method_2783Lnet/minecraft/class_754;method_2783(IIF)Vnamed renderLnet/minecraft/client/gui/screen/Screen;render(IIF)V
-
renderTooltip
- Overrides:
renderTooltipin classScreen- Mappings:
Namespace Name Mixin selector official aLaxu;a(Lzx;II)Vintermediary method_2794Lnet/minecraft/class_754;method_2794(Lnet/minecraft/class_2056;II)Vnamed renderTooltipLnet/minecraft/client/gui/screen/Screen;renderTooltip(Lnet/minecraft/item/ItemStack;II)V
-
drawBackground
protected void drawBackground(float delta, int mouseX, int mouseY)- Specified by:
drawBackgroundin classHandledScreen- Mappings:
Namespace Name Mixin selector official aLayl;a(FII)Vintermediary method_2900Lnet/minecraft/class_781;method_2900(FII)Vnamed drawBackgroundLnet/minecraft/client/gui/screen/ingame/HandledScreen;drawBackground(FII)V
-
method_2928
- Mappings:
Namespace Name Mixin selector official aLayu;a(Lyz;II)Zintermediary method_2928Lnet/minecraft/class_795;method_2928(Lnet/minecraft/class_2029;II)Znamed method_2928Lnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;method_2928(Lnet/minecraft/item/ItemGroup;II)Z
-
renderTabTooltipIfHovered
- Mappings:
Namespace Name Mixin selector official bLayu;b(Lyz;II)Zintermediary method_2930Lnet/minecraft/class_795;method_2930(Lnet/minecraft/class_2029;II)Znamed renderTabTooltipIfHoveredLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;renderTabTooltipIfHovered(Lnet/minecraft/item/ItemGroup;II)Z
-
renderTabIcon
- Mappings:
Namespace Name Mixin selector official aLayu;a(Lyz;)Vintermediary method_2927Lnet/minecraft/class_795;method_2927(Lnet/minecraft/class_2029;)Vnamed renderTabIconLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;renderTabIcon(Lnet/minecraft/item/ItemGroup;)V
-
buttonClicked
- Overrides:
buttonClickedin classScreen- Mappings:
Namespace Name Mixin selector official aLaxu;a(Lavs;)Vintermediary method_2787Lnet/minecraft/class_754;method_2787(Lnet/minecraft/class_685;)Vnamed buttonClickedLnet/minecraft/client/gui/screen/Screen;buttonClicked(Lnet/minecraft/client/gui/widget/ButtonWidget;)V
-
getSelectedTab
public int getSelectedTab()- Mappings:
Namespace Name Mixin selector official fLayu;f()Iintermediary method_2931Lnet/minecraft/class_795;method_2931()Inamed getSelectedTabLnet/minecraft/client/gui/screen/ingame/CreativeInventoryScreen;getSelectedTab()I
-