Class ConjureItemSpell

java.lang.Object
com.binaris.wizardry.api.content.spell.Spell
com.binaris.wizardry.content.spell.abstr.ConjureItemSpell
Direct Known Subclasses:
ConjureArmor, Flamecatcher, FlamingAxe, FrostAxe

public class ConjureItemSpell extends Spell
  • Field Details

    • SUPPORTED_ITEMS

      public static Set<net.minecraft.world.item.Item> SUPPORTED_ITEMS
  • Constructor Details

    • ConjureItemSpell

      public ConjureItemSpell(net.minecraft.world.item.Item item)
  • Method Details

    • isSummoned

      public static boolean isSummoned(net.minecraft.world.item.ItemStack stack)
      Checks if the given item stack is currently summoned (i.e. conjured and not expired). The item must also be part of the supported conjure items inside the mod. For a check of whether an item is part of the supported conjure items (not checking if it is summoned), use isSummonableItem(ItemStack).
    • isSummonableItem

      public static boolean isSummonableItem(net.minecraft.world.item.Item item)
      Checks if the given item is part of the supported conjure items inside the mod. For a better check of whether an item is actually summoned, use isSummoned(ItemStack).
    • isSummonableItem

      public static boolean isSummonableItem(net.minecraft.world.item.ItemStack stack)
      Checks if the given item stack is part of the supported conjure items inside the mod. For a better check of whether an item is actually summoned, use isSummoned(ItemStack).
    • registerSupportedItem

      public static void registerSupportedItem(net.minecraft.world.item.Item item)
    • cast

      public boolean cast(PlayerCastContext ctx)
      Specified by:
      cast in class Spell
    • spawnParticles

      protected void spawnParticles(PlayerCastContext ctx)
    • conjureItem

      protected boolean conjureItem(PlayerCastContext ctx)
    • addItemExtras

      protected net.minecraft.world.item.ItemStack addItemExtras(PlayerCastContext ctx, net.minecraft.world.item.ItemStack stack)
    • properties

      @NotNull protected @NotNull SpellProperties properties()
      Specified by:
      properties in class Spell