Class LambdaSpellDesc

All Implemented Interfaces:
Serializable, Cloneable, Map<SpellArg,Object>, HasDesc<Desc<SpellArg,Spell>>, HasEntrySet<SpellArg,Object>, AbstractEnchantmentDesc<Aftermath>

public class LambdaSpellDesc extends SpellDesc
Represents a SpellDesc created from a LambdaSpellDesc.LambdaSpell lambda function.

Be careful with variables brought in from outside the lambda. They will not be cloned when the GameContext is cloned.

See Also:
  • Constructor Details

    • LambdaSpellDesc

      public LambdaSpellDesc(LambdaSpellDesc.AbstractLambdaSpell lambdaSpell)
      Creates an instance of this class with the specified lambda.
      Parameters:
      lambdaSpell -
  • Method Details

    • create

      public Spell create()
      Description copied from class: Desc
      Per-instance memoized desc create instance.
      Overrides:
      create in class Desc<SpellArg,Spell>
      Returns:
      An instance of the underlying implementation of this desc.
    • clone

      @NotNull public @NotNull SpellDesc clone()
      Overrides:
      clone in class SpellDesc