Class CustomCategory
java.lang.Object
com.glektarssza.expandedgamerules.api.v1.gamerule.CustomCategory
A class which represents a custom gamerule category.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CustomCategory
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
Get the name which uniquely identifies this instance.- Returns:
- The name which uniquely identifies this instance.
-
getLocalizationKey
Get the localization key to use for this instance.- Returns:
- The localization key to use for this instance.
-
equals
Check if this instance equals another object. -
hashCode
public int hashCode()Get the hash code of this instance.
-