Class DoubleIota

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

public class DoubleIota extends Iota
  • Field Details

  • Constructor Details

    • DoubleIota

      public DoubleIota(double d)
  • Method Details

    • getDouble

      public double getDouble()
    • 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
    • tolerates

      public static boolean tolerates(double a, double b)
    • 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
    • deserialize

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

      public static net.minecraft.network.chat.Component display(double d)