Class ConfigScreenList.LabeledEntry

java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ConfigScreenList.Entry>
com.simibubi.create.foundation.config.ui.ConfigScreenList.Entry
com.simibubi.create.foundation.config.ui.ConfigScreenList.LabeledEntry
All Implemented Interfaces:
TickableGuiEventListener, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.narration.NarrationSupplier
Direct Known Subclasses:
ConfigModListScreen.ModEntry, SubMenuEntry, ValueEntry
Enclosing class:
ConfigScreenList

public static class ConfigScreenList.LabeledEntry extends ConfigScreenList.Entry
  • Field Details

    • labelWidthMult

      protected static final float labelWidthMult
      See Also:
    • label

      protected TextStencilElement label
    • labelTooltip

      protected List<net.minecraft.network.chat.Component> labelTooltip
    • unit

      protected String unit
    • differenceAnimation

      protected LerpedFloat differenceAnimation
    • highlightAnimation

      protected LerpedFloat highlightAnimation
  • Constructor Details

    • LabeledEntry

      public LabeledEntry(String label)
    • LabeledEntry

      public LabeledEntry(String label, String path)
  • Method Details

    • tick

      public void tick()
      Specified by:
      tick in interface TickableGuiEventListener
      Overrides:
      tick in class ConfigScreenList.Entry
    • render

      public void render(com.mojang.blaze3d.vertex.PoseStack ms, int index, int y, int x, int width, int height, int mouseX, int mouseY, boolean p_230432_9_, float partialTicks)
      Specified by:
      render in class net.minecraft.client.gui.components.AbstractSelectionList.Entry<ConfigScreenList.Entry>
    • getLabelTooltip

      public List<net.minecraft.network.chat.Component> getLabelTooltip()
    • getLabelWidth

      protected int getLabelWidth(int totalWidth)
    • getNarration

      public net.minecraft.network.chat.Component getNarration()
      Specified by:
      getNarration in class net.minecraft.client.gui.components.ObjectSelectionList.Entry<ConfigScreenList.Entry>