Class SectionTextured

All Implemented Interfaces:
Section<SectionTextured>, StickySection
Direct Known Subclasses:
SectionAnimatedTextured

public class SectionTextured extends AbstractSectionWithTitle<SectionTextured>
Since:
3.0
  • Constructor Details

    • SectionTextured

      public SectionTextured(net.minecraft.resources.Identifier id)
    • SectionTextured

      public SectionTextured(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, net.minecraft.resources.Identifier 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.GuiGraphicsExtractor guiGraphics, net.minecraft.client.gui.Font font, int topLeftX, int topLeftY)
      Specified by:
      render in interface Section<SectionTextured>
      Overrides:
      render in class AbstractSectionWithTitle<SectionTextured>
    • create

      public SectionTextured create(net.minecraft.resources.Identifier id)
    • of

      public static SectionTextured of(net.minecraft.resources.Identifier 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

      public SectionTextured setTexture(net.minecraft.resources.Identifier texture)
      The texture must be placed at [namespace]:textures/gui/fancy_tab_section/[path].png when using this builder
      Since:
      3.0
    • setTextureRaw

      public SectionTextured setTextureRaw(net.minecraft.resources.Identifier texture)
    • setTitle

      public SectionTextured setTitle(net.minecraft.network.chat.Component title)
      Overrides:
      setTitle in class AbstractSectionWithTitle<SectionTextured>
    • setHorizontalSize

      public SectionTextured setHorizontalSize(int horizontalSize)
    • setVerticalSize

      public SectionTextured setVerticalSize(int verticalSize)
    • setTextureOffset

      public SectionTextured setTextureOffset(int x, int y)
    • setTextureOffsetX

      public SectionTextured setTextureOffsetX(int textureOffsetX)
    • setTextureOffsetY

      public SectionTextured setTextureOffsetY(int textureOffsetY)
    • setTextureInsideRow

      public SectionTextured setTextureInsideRow()