All Superinterfaces:
Comparable<IAffinity>, net.minecraftforge.registries.IForgeRegistryEntry<IAffinity>, ITranslatable, ITranslatable.OfRegistryEntry<IAffinity>

public interface IAffinity extends net.minecraftforge.registries.IForgeRegistryEntry<IAffinity>, Comparable<IAffinity>, ITranslatable.OfRegistryEntry<IAffinity>
Interface representing an affinity.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable

    ITranslatable.OfRegistryEntry<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>

    Nested classes/interfaces inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable.OfRegistryEntry

    ITranslatable.OfRegistryEntry.WithDescription<T extends net.minecraftforge.registries.IForgeRegistryEntry<T>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
     
    Set<net.minecraft.resources.ResourceLocation>
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    int
     
    net.minecraft.resources.ResourceLocation
     
    @Nullable net.minecraft.sounds.SoundEvent
     
    Set<net.minecraft.resources.ResourceLocation>
     
    Set<net.minecraft.resources.ResourceLocation>
     
    default String
     

    Methods inherited from interface net.minecraftforge.registries.IForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName

    Methods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable

    getDisplayName, getTranslationKey

    Methods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable.OfRegistryEntry

    getId
  • Field Details

    • AFFINITY

      static final String AFFINITY
      See Also:
    • NONE

      static final net.minecraft.resources.ResourceLocation NONE
    • ARCANE

      static final net.minecraft.resources.ResourceLocation ARCANE
    • WATER

      static final net.minecraft.resources.ResourceLocation WATER
    • FIRE

      static final net.minecraft.resources.ResourceLocation FIRE
    • EARTH

      static final net.minecraft.resources.ResourceLocation EARTH
    • AIR

      static final net.minecraft.resources.ResourceLocation AIR
    • LIGHTNING

      static final net.minecraft.resources.ResourceLocation LIGHTNING
    • ICE

      static final net.minecraft.resources.ResourceLocation ICE
    • NATURE

      static final net.minecraft.resources.ResourceLocation NATURE
    • LIFE

      static final net.minecraft.resources.ResourceLocation LIFE
    • ENDER

      static final net.minecraft.resources.ResourceLocation ENDER
  • Method Details

    • getColor

      int getColor()
      Returns:
      The color of this affinity.
    • getMinorOpposingAffinities

      Set<net.minecraft.resources.ResourceLocation> getMinorOpposingAffinities()
      Returns:
      The minor opposing affinities for this affinity.
    • getMajorOpposingAffinities

      Set<net.minecraft.resources.ResourceLocation> getMajorOpposingAffinities()
      Returns:
      The major opposing affinities for this affinity.
    • getAdjacentAffinities

      Set<net.minecraft.resources.ResourceLocation> getAdjacentAffinities()
      Returns:
      The adjacent affinities for this affinity.
    • getDirectOpposingAffinity

      net.minecraft.resources.ResourceLocation getDirectOpposingAffinity()
      Returns:
      The direct opposing affinity for this affinity.
    • getCastSound

      @Nullable @Nullable net.minecraft.sounds.SoundEvent getCastSound()
      Returns:
      The sound that should be played when casting a spell with this affinity.
    • getLoopSound

      @Nullable @Nullable net.minecraft.sounds.SoundEvent getLoopSound()
      Returns:
      The sound that should be played when casting a continuous spell with this affinity.
    • getType

      default String getType()
      Specified by:
      getType in interface ITranslatable
      Returns:
      The type of this object, for example "block" or "item".
    • compareTo

      default int compareTo(IAffinity o)
      Specified by:
      compareTo in interface Comparable<IAffinity>