Class SettingKey<T extends ISetting>
java.lang.Object
com.minecolonies.core.colony.buildings.modules.settings.SettingKey<T>
- All Implemented Interfaces:
ISettingKey<T>
Specific Settings key implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionSettingKey(Class<T> type, net.minecraft.resources.ResourceLocation id) Create a new settings key. -
Method Summary
-
Constructor Details
-
SettingKey
Create a new settings key.- Parameters:
type- the specific ISetting class.id- the unique id.
-
-
Method Details
-
getType
Description copied from interface:ISettingKeyGet the class type of the key.- Specified by:
getTypein interfaceISettingKey<T extends ISetting>- Returns:
- the type.
-
getUniqueId
public net.minecraft.resources.ResourceLocation getUniqueId()Description copied from interface:ISettingKeyGet the unique id of the setting.- Specified by:
getUniqueIdin interfaceISettingKey<T extends ISetting>- Returns:
- the res location.
-
equals
-
hashCode
public int hashCode()
-