java.lang.Object
com.glektarssza.expandedgamerules.api.v1.gamerule.CustomCategory

public final class CustomCategory extends Object
A class which represents a custom gamerule category.
  • Constructor Details

    • CustomCategory

      public CustomCategory(String name, @Nullable String localizationKey)
      Create a new instance.
      Parameters:
      name - The name which will identify the new instance.
      localizationKey - An optional localization key for this instance.
  • Method Details

    • getName

      public String getName()
      Get the name which uniquely identifies this instance.
      Returns:
      The name which uniquely identifies this instance.
    • getLocalizationKey

      public String getLocalizationKey()
      Get the localization key to use for this instance.
      Returns:
      The localization key to use for this instance.
    • equals

      public boolean equals(Object obj)
      Check if this instance equals another object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to check against.
      Returns:
      true if this instance equals the other object; false otherwise.
    • hashCode

      public int hashCode()
      Get the hash code of this instance.
      Overrides:
      hashCode in class Object
      Returns:
      The hash code of this instance.