java.lang.Object
com.minecolonies.core.colony.buildings.modules.settings.SettingKey<T>
All Implemented Interfaces:
ISettingKey<T>

public class SettingKey<T extends ISetting> extends Object implements ISettingKey<T>
Specific Settings key implementation.
  • Constructor Details

    • SettingKey

      public SettingKey(Class<T> type, net.minecraft.resources.ResourceLocation id)
      Create a new settings key.
      Parameters:
      type - the specific ISetting class.
      id - the unique id.
  • Method Details

    • getType

      public Class<T> getType()
      Description copied from interface: ISettingKey
      Get the class type of the key.
      Specified by:
      getType in interface ISettingKey<T extends ISetting>
      Returns:
      the type.
    • getUniqueId

      public net.minecraft.resources.ResourceLocation getUniqueId()
      Description copied from interface: ISettingKey
      Get the unique id of the setting.
      Specified by:
      getUniqueId in interface ISettingKey<T extends ISetting>
      Returns:
      the res location.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object