All Superinterfaces:
Map<net.minecraft.resources.ResourceLocation,T>
All Known Subinterfaces:
IAbilityManager, IOcculusTabManager, ISkillManager

public interface IDataManager<T> extends Map<net.minecraft.resources.ResourceLocation,T>
Interface representing a data manager.
  • Method Details

    • getOptional

      Optional<T> getOptional(net.minecraft.resources.ResourceLocation id)
      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

      T get(net.minecraft.resources.ResourceLocation id)
      Parameters:
      id - The id of the requested value.
      Returns:
      The requested value. Throws an exception if it is not loaded.
    • getNullable

      @Nullable T getNullable(net.minecraft.resources.ResourceLocation id)
      Parameters:
      id - The id of the requested value.
      Returns:
      An optional of the requested value, or null if it is not loaded.