Enum Class GuiBackgroundRepeat

java.lang.Object
java.lang.Enum<GuiBackgroundRepeat>
com.render.api.gui.paint.GuiBackgroundRepeat
All Implemented Interfaces:
Serializable, Comparable<GuiBackgroundRepeat>, Constable

public enum GuiBackgroundRepeat extends Enum<GuiBackgroundRepeat>
Background, mask and border-image repetition policy. Space preserves tile size and distributes gaps; round resizes tiles to fit a whole number in the origin. Axis-specific policies place a single image on the other axis.
  • Enum Constant Details

    • NO_REPEAT

      public static final GuiBackgroundRepeat NO_REPEAT
    • REPEAT_X

      public static final GuiBackgroundRepeat REPEAT_X
    • REPEAT_Y

      public static final GuiBackgroundRepeat REPEAT_Y
    • REPEAT

      public static final GuiBackgroundRepeat REPEAT
    • SPACE

      public static final GuiBackgroundRepeat SPACE
      Preserve tile size, distributing gaps along both axes.
    • SPACE_X

      public static final GuiBackgroundRepeat SPACE_X
      Preserve tile width, distributing horizontal gaps.
    • SPACE_Y

      public static final GuiBackgroundRepeat SPACE_Y
      Preserve tile height, distributing vertical gaps.
    • ROUND

      public static final GuiBackgroundRepeat ROUND
      Resize each axis to fit its nearest positive whole number of tiles.
    • ROUND_X

      public static final GuiBackgroundRepeat ROUND_X
      Resize tile width to fit; AUTO sizing preserves the source aspect ratio.
    • ROUND_Y

      public static final GuiBackgroundRepeat ROUND_Y
      Resize tile height to fit; AUTO sizing preserves the source aspect ratio.
  • Method Details

    • values

      public static GuiBackgroundRepeat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GuiBackgroundRepeat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • repeatsX

      public boolean repeatsX()
    • repeatsY

      public boolean repeatsY()