Interface IAffinity
- 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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocationstatic final net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptiondefault intSet<net.minecraft.resources.ResourceLocation>@Nullable net.minecraft.sounds.SoundEventintgetColor()net.minecraft.resources.ResourceLocation@Nullable net.minecraft.sounds.SoundEventSet<net.minecraft.resources.ResourceLocation>Set<net.minecraft.resources.ResourceLocation>default StringgetType()Methods inherited from interface net.minecraftforge.registries.IForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryNameMethods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable
getDisplayName, getTranslationKeyMethods inherited from interface com.github.minecraftschurlimods.arsmagicalegacy.api.util.ITranslatable.OfRegistryEntry
getId
-
Field Details
-
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
- Specified by:
getTypein interfaceITranslatable- Returns:
- The type of this object, for example "block" or "item".
-
compareTo
- Specified by:
compareToin interfaceComparable<IAffinity>
-