All Superinterfaces:
Predicate<net.minecraft.world.entity.player.Player>

public interface IAbilityData extends Predicate<net.minecraft.world.entity.player.Player>
The data holding interface for an affinity ability.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.advancements.critereon.MinMaxBounds.Doubles
     
    default boolean
    test(net.minecraft.world.entity.player.Player player)
     

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • bounds

      net.minecraft.advancements.critereon.MinMaxBounds.Doubles bounds()
      Returns:
      The bounds of affinity depth the ability is active in.
    • affinity

      IAffinity affinity()
      Returns:
      The affinity the ability belongs to.
    • test

      default boolean test(net.minecraft.world.entity.player.Player player)
      Specified by:
      test in interface Predicate<net.minecraft.world.entity.player.Player>