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

public interface IAbilityManager extends IDataManager<IAbilityData>
Provides and manages the data for all abilities and some helper methods.
  • Method Details

    • getAbilitiesForPlayer

      List<net.minecraft.resources.ResourceLocation> getAbilitiesForPlayer(net.minecraft.world.entity.player.Player player)
      Parameters:
      player - The player to check.
      Returns:
      The abilities the given player currently has.
    • getAbilitiesForAffinity

      List<net.minecraft.resources.ResourceLocation> getAbilitiesForAffinity(IAffinity affinity)
      Parameters:
      affinity - The affinity to check.
      Returns:
      All abilities for the given affinity.
    • getAbilitiesForAffinity

      List<net.minecraft.resources.ResourceLocation> getAbilitiesForAffinity(net.minecraft.resources.ResourceLocation affinity)
      Parameters:
      affinity - The id of the affinity to check.
      Returns:
      All abilities for the given affinity.
    • hasAbility

      boolean hasAbility(net.minecraft.world.entity.player.Player player, net.minecraft.resources.ResourceLocation ability)
      Parameters:
      player - The player to check.
      ability - The ability to check.
      Returns:
      Whether the player has the ability.