Record Class GoggleBuilder

java.lang.Object
java.lang.Record
com.cake.azimuth.goggle.builder.GoggleBuilder

public record GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, int initialTooltipSize, String modId, boolean datagen, int indentLevel, boolean active, GoggleBuilder parent) extends Record
  • Constructor Details

    • GoggleBuilder

      public GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, String modId)
    • GoggleBuilder

      public GoggleBuilder(List<net.minecraft.network.chat.Component> tooltip, boolean isPlayerSneaking, int initialTooltipSize, String modId, boolean datagen, int indentLevel, boolean active, GoggleBuilder parent)
      Creates an instance of a GoggleBuilder record class.
      Parameters:
      tooltip - the value for the tooltip record component
      isPlayerSneaking - the value for the isPlayerSneaking record component
      initialTooltipSize - the value for the initialTooltipSize record component
      modId - the value for the modId record component
      datagen - the value for the datagen record component
      indentLevel - the value for the indentLevel record component
      active - the value for the active record component
      parent - the value for the parent record component
  • Method Details

    • datagen

      public static GoggleBuilder datagen(String modId)
    • section

      public GoggleBuilder section(GoggleComponent component)
    • section

      public GoggleBuilder section(String keySuffix, String defaultEnglish)
    • label

      public LabelGoggleBuilder label(GoggleComponent component)
    • label

      public LabelGoggleBuilder label(String keySuffix, String defaultEnglish)
    • statistic

      public StatisticGoggleBuilder statistic(GoggleComponent component, Object value)
    • statistic

      public <T extends StatisticGoggleBuilder> T statistic(GoggleComponent component, Object value, StatisticStyle<T> style)
    • statistic

      public <T extends StatisticGoggleBuilder> T statistic(GoggleComponent component, Object current, Object max, StatisticStyle<T> style)
    • statistic

      public StatisticGoggleBuilder statistic(String keySuffix, String defaultEnglish, Object value)
    • statistic

      public <T extends StatisticGoggleBuilder> T statistic(String keySuffix, String defaultEnglish, Object value, StatisticStyle<T> style)
    • statistic

      public <T extends StatisticGoggleBuilder> T statistic(String keySuffix, String defaultEnglish, Object current, Object max, StatisticStyle<T> style)
    • withRenderCondition

      public GoggleBuilder withRenderCondition(boolean condition)
    • conditional

      public GoggleBuilder conditional(Supplier<Boolean> condition)
    • isSneaking

      public GoggleBuilder isSneaking()
    • isNotSneaking

      public GoggleBuilder isNotSneaking()
    • endConditional

      public GoggleBuilder endConditional()
    • withIndent

      public GoggleBuilder withIndent(int level)
    • getRawTooltip

      public List<net.minecraft.network.chat.Component> getRawTooltip()
    • hasAppendedData

      public boolean hasAppendedData()
    • renderComponent

      public net.minecraft.network.chat.MutableComponent renderComponent(GoggleComponent component)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • tooltip

      public List<net.minecraft.network.chat.Component> tooltip()
      Returns the value of the tooltip record component.
      Returns:
      the value of the tooltip record component
    • isPlayerSneaking

      public boolean isPlayerSneaking()
      Returns the value of the isPlayerSneaking record component.
      Returns:
      the value of the isPlayerSneaking record component
    • initialTooltipSize

      public int initialTooltipSize()
      Returns the value of the initialTooltipSize record component.
      Returns:
      the value of the initialTooltipSize record component
    • modId

      public String modId()
      Returns the value of the modId record component.
      Returns:
      the value of the modId record component
    • datagen

      public boolean datagen()
      Returns the value of the datagen record component.
      Returns:
      the value of the datagen record component
    • indentLevel

      public int indentLevel()
      Returns the value of the indentLevel record component.
      Returns:
      the value of the indentLevel record component
    • active

      public boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • parent

      public GoggleBuilder parent()
      Returns the value of the parent record component.
      Returns:
      the value of the parent record component