Class PatternIota

java.lang.Object
at.petrak.hexcasting.api.casting.iota.Iota
at.petrak.hexcasting.api.casting.iota.PatternIota

public class PatternIota extends Iota
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     

    Fields inherited from class at.petrak.hexcasting.api.casting.iota.Iota

    payload, type
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PatternIota(@NotNull IotaType<?> type, @NotNull Object payload)
     
     
    PatternIota(@NotNull at.petrak.hexcasting.api.casting.math.HexPattern pattern)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(net.minecraft.nbt.Tag tag)
     
    static net.minecraft.network.chat.Component
    display(at.petrak.hexcasting.api.casting.math.HexPattern pat)
     
    static net.minecraft.network.chat.Component
    displayNonInline(at.petrak.hexcasting.api.casting.math.HexPattern pat)
     
    boolean
    Returns whether this iota is possible to execute (i.e.
    @NotNull at.petrak.hexcasting.api.casting.eval.CastResult
    execute(at.petrak.hexcasting.api.casting.eval.vm.CastingVM vm, net.minecraft.server.level.ServerLevel world, at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation continuation)
    This method is called when this iota is executed (i.e.
    at.petrak.hexcasting.api.casting.math.HexPattern
     
    boolean
     
    @NotNull net.minecraft.nbt.Tag
    Serialize this under the data tag.
    boolean
    Compare this to another object, within a tolerance.

    Methods inherited from class at.petrak.hexcasting.api.casting.iota.Iota

    depth, display, getType, hashCode, size, subIotas, tolerates, typesMatch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PatternIota

      public PatternIota(@NotNull @NotNull at.petrak.hexcasting.api.casting.math.HexPattern pattern)
    • PatternIota

      protected PatternIota(@NotNull @NotNull IotaType<?> type, @NotNull @NotNull Object payload)
  • Method Details

    • getPattern

      public at.petrak.hexcasting.api.casting.math.HexPattern getPattern()
    • isTruthy

      public boolean isTruthy()
      Specified by:
      isTruthy in class Iota
    • toleratesOther

      public boolean toleratesOther(Iota that)
      Description copied from class: Iota
      Compare this to another object, within a tolerance.
      Specified by:
      toleratesOther in class Iota
    • serialize

      @NotNull public @NotNull net.minecraft.nbt.Tag serialize()
      Description copied from class: Iota
      Serialize this under the data tag.

      You probably don't want to call this directly; use IotaType.serialize(at.petrak.hexcasting.api.casting.iota.Iota).

      Specified by:
      serialize in class Iota
    • execute

      @NotNull public @NotNull at.petrak.hexcasting.api.casting.eval.CastResult execute(at.petrak.hexcasting.api.casting.eval.vm.CastingVM vm, net.minecraft.server.level.ServerLevel world, at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation continuation)
      Description copied from class: Iota
      This method is called when this iota is executed (i.e. Hermes is run on a list containing it, unescaped). By default it will return a CastResult indicating an error has occurred.
      Overrides:
      execute in class Iota
    • executable

      public boolean executable()
      Description copied from class: Iota
      Overrides:
      executable in class Iota
    • deserialize

      public static PatternIota deserialize(net.minecraft.nbt.Tag tag) throws IllegalArgumentException
      Throws:
      IllegalArgumentException
    • display

      public static net.minecraft.network.chat.Component display(at.petrak.hexcasting.api.casting.math.HexPattern pat)
    • displayNonInline

      public static net.minecraft.network.chat.Component displayNonInline(at.petrak.hexcasting.api.casting.math.HexPattern pat)