Interface IOcculusTabManager
- All Superinterfaces:
IDataManager<IOcculusTab>,Map<net.minecraft.resources.ResourceLocation,IOcculusTab>
Interface representing an occulus tab manager.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionget(net.minecraft.resources.ResourceLocation id) getByIndex(int index) getNullable(net.minecraft.resources.ResourceLocation id) getOptional(net.minecraft.resources.ResourceLocation id) getTabs()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
- Specified by:
getOptionalin interfaceIDataManager<IOcculusTab>- Parameters:
id- The id of the occulus tab to get.- Returns:
- An optional of the occulus tab, or an empty optional if the occulus tab is not loaded.
-
getNullable
- Specified by:
getNullablein interfaceIDataManager<IOcculusTab>- Parameters:
id- The id of the occulus tab to get.- Returns:
- The occulus tab, or null if the occulus tab is not loaded.
-
get
- Specified by:
getin interfaceIDataManager<IOcculusTab>- Parameters:
id- The id of the occulus tab to get.- Returns:
- The occulus tab. Throws an exception if the occulus tab is not loaded.
-
getTabs
Collection<IOcculusTab> getTabs()- Returns:
- An unmodifiable collection of all tabs.
-
getByIndex
- Parameters:
index- The index to get the occulus tab for.- Returns:
- The occulus tab at the given index.
- Throws:
ArrayIndexOutOfBoundsException- If no occulus tab exists by that index.
-