Class BannerRenderer
java.lang.Object
net.mcexpanded.fancytabsections.creativetab.BannerRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic intstatic net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInBanner(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, double mouseX, double mouseY) static booleanisInToggle(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, Section section, double mouseX, double mouseY) static voidrender(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, List<Section<?>> sections, int mouseX, int mouseY)
-
Field Details
-
CURRENT_ROW
public static int CURRENT_ROW -
CURRENT_TAB
public static net.minecraft.resources.Identifier CURRENT_TAB -
ROW_HEIGHT
public static final int ROW_HEIGHT- See Also:
-
GRID_COLS
public static final int GRID_COLS- See Also:
-
GRID_X_OFFSET
public static final int GRID_X_OFFSET- See Also:
-
GRID_Y_OFFSET
public static final int GRID_Y_OFFSET- See Also:
-
VISIBLE_ROWS
public static final int VISIBLE_ROWS- See Also:
-
BANNER_WIDTH
public static final int BANNER_WIDTH- See Also:
-
EXPANDED_BUTTON
public static final net.minecraft.resources.Identifier EXPANDED_BUTTON -
EXPANDED_BUTTON_HIGHLIGHT
public static final net.minecraft.resources.Identifier EXPANDED_BUTTON_HIGHLIGHT -
COLLAPSED_BUTTON
public static final net.minecraft.resources.Identifier COLLAPSED_BUTTON -
COLLAPSED_BUTTON_HIGHLIGHT
public static final net.minecraft.resources.Identifier COLLAPSED_BUTTON_HIGHLIGHT
-
-
Constructor Details
-
BannerRenderer
public BannerRenderer()
-
-
Method Details
-
render
-
isInToggle
-
isInBanner
@Internal public static boolean isInBanner(net.minecraft.client.gui.screens.inventory.CreativeModeInventoryScreen screen, double mouseX, double mouseY) - Returns:
- true if the given screen-space coordinate falls within a banner
- Since:
- 5.0
-