Interface ISkillManager
- All Superinterfaces:
IDataManager<ISkill>,Map<net.minecraft.resources.ResourceLocation,ISkill>
Interface representing a skill manager.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionget(net.minecraft.resources.ResourceLocation id) getNullable(net.minecraft.resources.ResourceLocation id) getOptional(net.minecraft.resources.ResourceLocation id) getSkillsForOcculusTab(net.minecraft.resources.ResourceLocation id) Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Method Details
-
getSkillsForOcculusTab
- Parameters:
id- The id of the occulus tab to get the skills for.- Returns:
- The skills in the given occulus tab.
-
getSkillsForOcculusTab
- Parameters:
tab- The occulus tab to get the skills for.- Returns:
- The skills in the given occulus tab.
-
getOptional
- Specified by:
getOptionalin interfaceIDataManager<ISkill>- Parameters:
id- The id of the skill to get.- Returns:
- The skill, or null if the skill is not loaded.
-
getNullable
- Specified by:
getNullablein interfaceIDataManager<ISkill>- Parameters:
id- The id of the skill to get.- Returns:
- The skill, or null if the skill is not loaded.
-
get
- Specified by:
getin interfaceIDataManager<ISkill>- Parameters:
id- The id of the skill to get.- Returns:
- The skill. Throws an exception if the skill is not loaded.
-
getSkills
Collection<ISkill> getSkills()- Returns:
- An unmodifiable collection of all skills.
-