All Superinterfaces:
Comparable<IPrefabSpell>

public interface IPrefabSpell extends Comparable<IPrefabSpell>
  • Method Summary

    Modifier and Type
    Method
    Description
    com.mojang.serialization.DataResult<com.google.gson.JsonElement>
     
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.world.item.ItemStack
     
    net.minecraft.network.chat.Component
     
     

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getEncodedSpell

      com.mojang.serialization.DataResult<com.google.gson.JsonElement> getEncodedSpell()
      Returns:
      The encoded spell of this prefab spell.
    • makeSpell

      net.minecraft.world.item.ItemStack makeSpell()
      Returns:
      A spell item stack built from this prefab spell.
    • icon

      net.minecraft.resources.ResourceLocation icon()
      Returns:
      The icon of the spell.
    • name

      net.minecraft.network.chat.Component name()
      Returns:
      The name of the spell.
    • spell

      ISpell spell()
      Returns:
      The spell.