Enum Class Canvas.PopulatorContext.DefaultViewStrategy

java.lang.Object
java.lang.Enum<Canvas.PopulatorContext.DefaultViewStrategy>
com.marcusslover.plus.lib.item.Canvas.PopulatorContext.DefaultViewStrategy
All Implemented Interfaces:
Serializable, Comparable<Canvas.PopulatorContext.DefaultViewStrategy>, Constable
Enclosing class:
Canvas.PopulatorContext<T>

public static enum Canvas.PopulatorContext.DefaultViewStrategy extends Enum<Canvas.PopulatorContext.DefaultViewStrategy>
Default view strategies.
  • Enum Constant Details

  • Method Details

    • 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

      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
    • middleSlots

      @NotNull public static @NotNull List<@NotNull Integer> middleSlots(int rows)
      Gets all middle slots from the given-sized menu. The middle slots are the slots that are not on the edges.
      Parameters:
      rows - the rows
      Returns:
      the middle slots
    • avoidEdges

      @NotNull public static @NotNull List<@NotNull Integer> avoidEdges(int rows)
      Gets all slots that are not on the edges.
      Parameters:
      rows - the rows
      Returns:
      the slots