Interface IDataManager<T>
- All Superinterfaces:
Map<net.minecraft.resources.ResourceLocation,T>
- All Known Subinterfaces:
IAbilityManager,IOcculusTabManager,ISkillManager
Interface representing a data 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) 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
-
getOptional
- Parameters:
id- The id of the requested value.- Returns:
- An optional of the requested value, or an empty optional if it is not loaded.
-
get
- Parameters:
id- The id of the requested value.- Returns:
- The requested value. Throws an exception if it is not loaded.
-
getNullable
- Parameters:
id- The id of the requested value.- Returns:
- An optional of the requested value, or null if it is not loaded.
-