Interface IOcculusTabManager

All Superinterfaces:
IDataManager<IOcculusTab>, Map<net.minecraft.resources.ResourceLocation,IOcculusTab>

public interface IOcculusTabManager extends IDataManager<IOcculusTab>
Interface representing an occulus tab manager.
  • Method Details

    • getOptional

      Optional<IOcculusTab> getOptional(net.minecraft.resources.ResourceLocation id)
      Specified by:
      getOptional in interface IDataManager<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

      IOcculusTab getNullable(net.minecraft.resources.ResourceLocation id)
      Specified by:
      getNullable in interface IDataManager<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

      IOcculusTab get(net.minecraft.resources.ResourceLocation id)
      Specified by:
      get in interface IDataManager<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

      Returns:
      An unmodifiable collection of all tabs.
    • getByIndex

      IOcculusTab getByIndex(int index) throws ArrayIndexOutOfBoundsException
      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.