Class SectionTextured
java.lang.Object
net.mcexpanded.fancytabsections.Section.AbstractSectionWithTitle<SectionTextured>
net.mcexpanded.fancytabsections.Section.SectionTextured
- All Implemented Interfaces:
Section<SectionTextured>,StickySection
- Direct Known Subclasses:
SectionAnimatedTextured
- Since:
- 3.0
-
Field Summary
Fields inherited from class net.mcexpanded.fancytabsections.Section.AbstractSectionWithTitle
textColor, textOutline, textShadow, title, titleOffsetX, titleOffsetY -
Constructor Summary
ConstructorsConstructorDescriptionSectionTextured(net.minecraft.resources.ResourceLocation id) SectionTextured(net.minecraft.resources.ResourceLocation id, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation texture, int textColor, boolean textShadow, boolean collapsible, ConglomerateOfItems items) Backwards compatibility constructor for v3.0 -
Method Summary
Modifier and TypeMethodDescriptioncreate(net.minecraft.resources.ResourceLocation id) static SectionTexturedof(net.minecraft.resources.ResourceLocation id, net.minecraft.network.chat.Component title, int textColor, boolean textShadow, boolean collapsible, ConglomerateOfItems items) The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this buildervoidrender(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, int topLeftX, int topLeftY) setHorizontalSize(int horizontalSize) setTexture(net.minecraft.resources.ResourceLocation texture) The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this buildersetTextureOffset(int x, int y) setTextureOffsetX(int textureOffsetX) setTextureOffsetY(int textureOffsetY) setTextureRaw(net.minecraft.resources.ResourceLocation texture) setTitle(net.minecraft.network.chat.Component title) setVerticalSize(int verticalSize) Methods inherited from class net.mcexpanded.fancytabsections.Section.AbstractSectionWithTitle
collapsible, id, isSticky, items, renderTitle, setCentered, setCollapsible, setItems, setOnRender, setSticky, setTextColor, setTextOutline, setTextShadow, setTitle, setTitleOffset
-
Constructor Details
-
SectionTextured
public SectionTextured(net.minecraft.resources.ResourceLocation id) -
SectionTextured
public SectionTextured(net.minecraft.resources.ResourceLocation id, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation texture, int textColor, boolean textShadow, boolean collapsible, ConglomerateOfItems items) Backwards compatibility constructor for v3.0- Since:
- 3.0
-
-
Method Details
-
render
public void render(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, int topLeftX, int topLeftY) - Specified by:
renderin interfaceSection<SectionTextured>- Overrides:
renderin classAbstractSectionWithTitle<SectionTextured>
-
create
-
of
public static SectionTextured of(net.minecraft.resources.ResourceLocation id, net.minecraft.network.chat.Component title, int textColor, boolean textShadow, boolean collapsible, ConglomerateOfItems items) The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this builder- Since:
- 3.0
-
setTexture
The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this builder- Since:
- 3.0
-
setTextureRaw
-
setTitle
- Overrides:
setTitlein classAbstractSectionWithTitle<SectionTextured>
-
setHorizontalSize
-
setVerticalSize
-
setTextureOffset
-
setTextureOffsetX
-
setTextureOffsetY
-
setTextureInsideRow
-