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.class_481
net.minecraft.client.gui.screen.ingame.CreativeInventoryScreen

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private boolean
hasPermissions(Player player)
method_47419(class_1657 arg0)
shouldShowOperatorTab(PlayerEntity player)
private void
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)
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)
method_47421(Collection<class_1799> arg0)
refreshSelectedTab(Collection<ItemStack> displayStacks)
public void
containerTick()
method_37432()
handledScreenTick()
protected void
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)
method_2470(class_1735 arg0)
isCreativeInventorySlot(Slot slot)
protected void
init()
method_25426()
init()
public void
resize(int width, int height)
method_25410(int arg0, int arg1)
resize(int arg0, int arg1)
public void
removed()
method_25432()
removed()
public boolean
charTyped(CharacterEvent event)
method_25400(class_11905 arg0)
charTyped(CharInput arg0)
public boolean
preeditUpdated(PreeditEvent event)
method_1_2559(class_1_359 arg0)
preEdit(ImePreEditInput arg0)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public boolean
keyReleased(KeyEvent event)
method_16803(class_11908 arg0)
keyReleased(KeyInput arg0)
private void
refreshSearchResults()
method_2464()
search()
private void
updateVisibleTags(String searchTerm)
method_15871(String arg0)
searchForTags(String id)
protected void
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)
method_25402(class_11909 arg0, boolean arg1)
mouseClicked(Click arg0, boolean arg1)
public boolean
mouseReleased(MouseButtonEvent event)
method_25406(class_11909 arg0)
mouseReleased(Click arg0)
private boolean
canScroll()
method_2465()
hasScrollbar()
private void
selectTab(CreativeModeTab tab)
method_2466(class_1761 arg0)
setSelectedTab(ItemGroup group)
public boolean
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)
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)
method_2467(double arg0, double arg1)
isClickInScrollbar(double mouseX, double mouseY)
public boolean
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)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public boolean
showsActiveEffects()
method_64507()
showsStatusEffects()
public List<Text>
getTooltipFromContainerItem(ItemStack itemStack)
method_51454(class_1799 arg0)
getTooltipFromItem(ItemStack arg0)
public void
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)
method_47422(class_1761 arg0)
getTabX(ItemGroup group)
private int
getTabY(CreativeModeTab tab)
method_47423(class_1761 arg0)
getTabY(ItemGroup group)
protected boolean
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)
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)
method_2468(class_332 arg0, int arg1, int arg2, class_1761 arg3)
renderTabIcon(DrawContext context, int mouseX, int mouseY, ItemGroup tab)
public boolean
isInventoryOpen()
method_47424()
isInventoryTabSelected()
public static void
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)
private static void
lambda$getTooltipFromContainerItem$0(ItemStack arg0, List arg1, TagKey arg2)
method_51455(class_1799 arg0, List arg1, class_6862 arg2)
method_51455(ItemStack arg0, List arg1, TagKey tagKey)
private static boolean
lambda$updateVisibleTags$2(Predicate arg0, TagKey arg1)
method_15873(Predicate arg0, class_6862 arg1)
method_15873(Predicate arg0, TagKey tag)
private static boolean
lambda$updateVisibleTags$1(String arg0, String arg1, Identifier arg2)
method_15874(String arg0, String arg1, class_2960 arg2)
method_15874(String arg0, String arg1, Identifier id)
private static boolean
lambda$updateVisibleTags$0(String arg0, Identifier arg1)
method_15875(String arg0, class_2960 arg1)
method_15875(String arg0, Identifier id)