Class SpellProperties

java.lang.Object
com.binaris.wizardry.api.content.spell.properties.SpellProperties

public class SpellProperties extends Object
  • Method Details

    • empty

      public static SpellProperties empty()
    • builder

      public static SpellProperties.Builder builder()
    • fromNbt

      public static SpellProperties fromNbt(net.minecraft.nbt.CompoundTag tag)
    • fromJson

      public static SpellProperties fromJson(com.google.gson.JsonObject jsonObject)
    • onPlayerJoin

      public static void onPlayerJoin(EBPlayerJoinServerEvent event)
    • get

      public <T> T get(SpellProperty<T> property)
    • getProperties

      public List<SpellProperty<?>> getProperties()
    • getCooldown

      public int getCooldown()
    • getCost

      public int getCost()
    • getChargeup

      public int getChargeup()
    • getType

      public SpellType getType()
    • getTier

      public SpellTier getTier()
    • getElement

      public Element getElement()
    • getAction

      public SpellAction getAction()
    • isEnabledInContext

      public boolean isEnabledInContext(SpellContext context)
    • toJson

      public com.google.gson.JsonObject toJson()
    • toNbt

      public net.minecraft.nbt.CompoundTag toNbt()
    • isBaseProperty

      public boolean isBaseProperty(@NotNull @NotNull SpellProperty<?> prop)