Class SectionAnimatedTextured

All Implemented Interfaces:
Section<SectionTextured>, StickySection

public class SectionAnimatedTextured extends SectionTextured
Since:
3.0
  • Constructor Details

    • SectionAnimatedTextured

      public SectionAnimatedTextured(net.minecraft.resources.Identifier id)
  • 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 SectionTextured
    • of

      public static SectionAnimatedTextured of(net.minecraft.resources.Identifier id, net.minecraft.network.chat.Component title, int frames, float frameTimeInMS, 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
    • setFrames

      public SectionAnimatedTextured setFrames(int frames)
    • setFrameTimeInMS

      public SectionAnimatedTextured setFrameTimeInMS(float frameTimeInMS)