net.minecraft.client.gui.screen.ingame

public class CreativeInventoryScreen

extends HandledScreen<CreativeInventoryScreen$CreativeScreenHandler>

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable, ScreenHandlerProvider

net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen
net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen
net.minecraft.class_481
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen

Field summary

Modifier and TypeField
private static final Identifier
SCROLLER_SPRITE
SCROLLER_SPRITE
field_45459
SCROLLER_TEXTURE
private static final Identifier
SCROLLER_DISABLED_SPRITE
SCROLLER_DISABLED_SPRITE
field_45460
SCROLLER_DISABLED_TEXTURE
private static final Identifier[]
UNSELECTED_TOP_TABS
UNSELECTED_TOP_TABS
field_45461
TAB_TOP_UNSELECTED_TEXTURES
private static final Identifier[]
SELECTED_TOP_TABS
SELECTED_TOP_TABS
field_45456
TAB_TOP_SELECTED_TEXTURES
private static final Identifier[]
UNSELECTED_BOTTOM_TABS
UNSELECTED_BOTTOM_TABS
field_45457
TAB_BOTTOM_UNSELECTED_TEXTURES
private static final Identifier[]
SELECTED_BOTTOM_TABS
SELECTED_BOTTOM_TABS
field_45458
TAB_BOTTOM_SELECTED_TEXTURES
private static final int
NUM_ROWS
NUM_ROWS
field_32337
ROWS_COUNT
private static final int
NUM_COLS
NUM_COLS
field_32338
COLUMNS_COUNT
private static final int
TAB_WIDTH
TAB_WIDTH
field_32339
TAB_WIDTH
private static final int
TAB_HEIGHT
TAB_HEIGHT
field_32340
TAB_HEIGHT
private static final int
SCROLLER_WIDTH
SCROLLER_WIDTH
field_32341
SCROLLBAR_WIDTH
private static final int
SCROLLER_HEIGHT
SCROLLER_HEIGHT
field_32342
SCROLLBAR_HEIGHT
private static final SimpleInventory
CONTAINER
CONTAINER
field_2895
INVENTORY
private static final Text
TRASH_SLOT_TOOLTIP
TRASH_SLOT_TOOLTIP
field_26563
DELETE_ITEM_SLOT_TEXT
private static ItemGroup
selectedTab
selectedTab
field_2896
selectedTab
private float
scrollOffs
scrollOffs
field_2890
scrollPosition
private boolean
scrolling
scrolling
field_2892
scrolling
private TextFieldWidget
searchBox
searchBox
field_2894
searchBox
private List<Slot>
originalSlots
originalSlots
field_2886
slots
private Slot
destroyItemSlot
destroyItemSlot
field_2889
deleteItemSlot
private CreativeInventoryListener
listener
listener
field_2891
listener
private boolean
ignoreTextInput
ignoreTextInput
field_2888
ignoreTypedCharacter
private boolean
hasClickedOutside
hasClickedOutside
field_2887
lastClickOutsideBounds
private final Set<TagKey<Item>>
visibleTags
visibleTags
field_16201
searchResultTags
private final boolean
displayOperatorCreativeTab
displayOperatorCreativeTab
field_41112
operatorTabEnabled
private final StatusEffectsDisplay
effects
effects
field_54476
statusEffectsDisplay

Constructor summary

ModifierConstructor
public (ClientPlayerEntity player, FeatureSet enabledFeatures, boolean operatorTabEnabled)

Method summary

Modifier and TypeMethod
private boolean
hasPermissions(Player player)
hasPermissions(Player player)
method_47419(class_1657 arg0)
shouldShowOperatorTab(PlayerEntity player)
private void
tryRefreshInvalidatedTabs(FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup$Provider holders)
tryRefreshInvalidatedTabs(FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup$Provider holders)
method_47420(class_7699 arg0, boolean arg1, class_7225$class_7874 arg2)
updateDisplayParameters(FeatureSet enabledFeatures, boolean showOperatorTab, RegistryWrapper$WrapperLookup registries)
private boolean
tryRebuildTabContents(SessionSearchTrees searchTrees, FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup$Provider holders)
tryRebuildTabContents(SessionSearchTrees searchTrees, FeatureFlagSet enabledFeatures, boolean hasPermissions, HolderLookup$Provider holders)
method_60324(class_1124 arg0, class_7699 arg1, boolean arg2, class_7225$class_7874 arg3)
populateDisplay(SearchManager searchManager, FeatureSet enabledFeatures, boolean showOperatorTab, RegistryWrapper$WrapperLookup registries)
private void
refreshCurrentTabContents(Collection<ItemStack> displayList)
refreshCurrentTabContents(Collection<ItemStack> displayList)
method_47421(Collection<class_1799> arg0)
refreshSelectedTab(Collection<ItemStack> displayStacks)
public void
containerTick()
containerTick()
method_37432()
handledScreenTick()
protected void
slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput)
slotClicked(Slot slot, int slotId, int buttonNum, ContainerInput containerInput)
method_2383(class_1735 arg0, int arg1, int arg2, class_1713 arg3)
onMouseClick(Slot arg0, int arg1, int arg2, SlotActionType arg3)
private boolean
isCreativeSlot(Slot slot)
isCreativeSlot(Slot slot)
method_2470(class_1735 arg0)
isCreativeInventorySlot(Slot slot)
protected void
init()
init()
method_25426()
init()
public void
resize(int width, int height)
resize(int width, int height)
method_25410(int arg0, int arg1)
resize(int arg0, int arg1)
public void
removed()
removed()
method_25432()
removed()
public boolean
charTyped(CharacterEvent event)
charTyped(CharacterEvent event)
method_25400(class_11905 arg0)
charTyped(CharInput arg0)
public boolean
preeditUpdated(PreeditEvent event)
preeditUpdated(PreeditEvent event)
method_1_2559(class_1_359 arg0)
preEdit(ImePreEditInput arg0)
public boolean
keyPressed(KeyEvent event)
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public boolean
keyReleased(KeyEvent event)
keyReleased(KeyEvent event)
method_16803(class_11908 arg0)
keyReleased(KeyInput arg0)
private void
refreshSearchResults()
refreshSearchResults()
method_2464()
search()
private void
updateVisibleTags(String searchTerm)
updateVisibleTags(String searchTerm)
method_15871(String arg0)
searchForTags(String id)
protected void
extractLabels(GuiGraphicsExtractor graphics, int xm, int ym)
extractLabels(GuiGraphicsExtractor graphics, int xm, int ym)
method_2388(class_332 arg0, int arg1, int arg2)
drawForeground(DrawContext arg0, int arg1, int arg2)
public boolean
mouseClicked(MouseButtonEvent event, boolean doubleClick)
mouseClicked(MouseButtonEvent event, boolean doubleClick)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
public boolean
mouseReleased(MouseButtonEvent event)
mouseReleased(MouseButtonEvent event)
method_25406(class_11909 arg0)
mouseReleased(Click arg0)
private boolean
canScroll()
canScroll()
method_2465()
hasScrollbar()
private void
selectTab(CreativeModeTab tab)
selectTab(CreativeModeTab tab)
method_2466(class_1761 arg0)
setSelectedTab(ItemGroup group)
public boolean
mouseScrolled(double x, double y, double scrollX, double scrollY)
mouseScrolled(double x, double y, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
protected boolean
hasClickedOutside(double mx, double my, int xo, int yo)
hasClickedOutside(double mx, double my, int xo, int yo)
method_2381(double arg0, double arg1, int arg2, int arg3)
isClickOutsideBounds(double arg0, double arg1, int arg2, int arg3)
protected boolean
insideScrollbar(double xm, double ym)
insideScrollbar(double xm, double ym)
method_2467(double arg0, double arg1)
isClickInScrollbar(double mouseX, double mouseY)
public boolean
mouseDragged(MouseButtonEvent event, double dx, double dy)
mouseDragged(MouseButtonEvent event, double dx, double dy)
method_25403(class_11909 arg0, double arg1, double arg2)
mouseDragged(Click arg0, double arg1, double arg2)
public void
extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public boolean
showsActiveEffects()
showsActiveEffects()
method_64507()
showsStatusEffects()
public List<Text>
getTooltipFromContainerItem(ItemStack itemStack)
getTooltipFromContainerItem(ItemStack itemStack)
method_51454(class_1799 arg0)
getTooltipFromItem(ItemStack arg0)
public void
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
private int
getTabX(CreativeModeTab tab)
getTabX(CreativeModeTab tab)
method_47422(class_1761 arg0)
getTabX(ItemGroup group)
private int
getTabY(CreativeModeTab tab)
getTabY(CreativeModeTab tab)
method_47423(class_1761 arg0)
getTabY(ItemGroup group)
protected boolean
checkTabClicked(CreativeModeTab tab, double xm, double ym)
checkTabClicked(CreativeModeTab tab, double xm, double ym)
method_2463(class_1761 arg0, double arg1, double arg2)
isClickInTab(ItemGroup group, double mouseX, double mouseY)
protected boolean
checkTabHovering(GuiGraphicsExtractor graphics, CreativeModeTab tab, int xm, int ym)
checkTabHovering(GuiGraphicsExtractor graphics, CreativeModeTab tab, int xm, int ym)
method_2471(class_332 arg0, class_1761 arg1, int arg2, int arg3)
renderTabTooltipIfHovered(DrawContext context, ItemGroup group, int mouseX, int mouseY)
protected void
extractTabButton(GuiGraphicsExtractor graphics, int mouseX, int mouseY, CreativeModeTab tab)
extractTabButton(GuiGraphicsExtractor graphics, int mouseX, int mouseY, CreativeModeTab tab)
method_2468(class_332 arg0, int arg1, int arg2, class_1761 arg3)
renderTabIcon(DrawContext context, int mouseX, int mouseY, ItemGroup tab)
public boolean
isInventoryOpen()
isInventoryOpen()
method_47424()
isInventoryTabSelected()
public static void
handleHotbarLoadOrSave(Minecraft minecraft, int index, boolean isLoadPressed, boolean isSavePressed)
handleHotbarLoadOrSave(Minecraft minecraft, int index, boolean isLoadPressed, boolean isSavePressed)
method_2462(class_310 arg0, int arg1, boolean arg2, boolean arg3)
onHotbarKeyPress(MinecraftClient client, int index, boolean restore, boolean save)