Interface ISpellPart
- All Known Subinterfaces:
ISpellComponent,ISpellModifier,ISpellShape
public interface ISpellPart
Base interface for a spell part. A spell part can be a component of type
ISpellComponent, a modifier of type ISpellModifier or a shape of type ISpellShape.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe types of the spell parts. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<ISpellPart>> -
Method Summary
-
Field Details
-
REGISTRY_KEY
static final net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<ISpellPart>> REGISTRY_KEY
-
-
Method Details
-
getType
ISpellPart.SpellPartType getType()- Returns:
- The type of this spell part.
-
getId
default net.minecraft.resources.ResourceLocation getId()- Returns:
- The id of this spell part.
-