Class HandleUtil.Names

java.lang.Object
com.blamejared.crafttweaker.api.util.HandleUtil.Names
All Implemented Interfaces:
Iterable<String>
Enclosing class:
HandleUtil

public static final class HandleUtil.Names extends Object implements Iterable<String>
Holds the names that are supposed to be used to locate the target.

This is useful in case of mixed mappings, where one platform might require a name such as field_123, whereas other platforms prefer f_456_. An instance of this class can be obtained through the static method of(String...).

Since:
10.0.0
  • Method Details

    • of

      public static HandleUtil.Names of(String... names)
      Obtains a new instance of this class wrapping the defined names.

      Name duplicates are automatically removed.

      Parameters:
      names - The names to wrap.
      Returns:
      An instance of this class.
      Since:
      10.0.0
    • iterator

      public Iterator<String> iterator()
      Specified by:
      iterator in interface Iterable<String>
    • toString

      public String toString()
      Overrides:
      toString in class Object