Enum Class Vec3Arithmetic

java.lang.Object
java.lang.Enum<Vec3Arithmetic>
at.petrak.hexcasting.common.casting.arithmetic.Vec3Arithmetic
All Implemented Interfaces:
Arithmetic, Serializable, Comparable<Vec3Arithmetic>, Constable

public enum Vec3Arithmetic extends Enum<Vec3Arithmetic> implements Arithmetic
  • Enum Constant Details

  • Field Details

    • OPS

      public static final List<at.petrak.hexcasting.api.casting.math.HexPattern> OPS
    • ACCEPTS

      public static final IotaMultiPredicate ACCEPTS
  • Method Details

    • values

      public static Vec3Arithmetic[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Vec3Arithmetic valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • arithName

      public String arithName()
      Specified by:
      arithName in interface Arithmetic
    • opTypes

      public Iterable<at.petrak.hexcasting.api.casting.math.HexPattern> opTypes()
      Specified by:
      opTypes in interface Arithmetic
      Returns:
      All the HexPatterns for which this Arithmetic has defined Operators.
    • getOperator

      public at.petrak.hexcasting.api.casting.arithmetic.operator.Operator getOperator(at.petrak.hexcasting.api.casting.math.HexPattern pattern)
      Specified by:
      getOperator in interface Arithmetic
      Parameters:
      pattern - The HexPattern that would be drawn by the caster.
      Returns:
      The Operator that this Arithmetic has defined for that pattern.
    • make1

      public static OperatorUnary make1(Function<net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3> op)
    • make1Double

      public static OperatorUnary make1Double(Function<net.minecraft.world.phys.Vec3,Double> op)
    • make2Fallback

      public static OperatorVec3Delegating make2Fallback(at.petrak.hexcasting.api.casting.math.HexPattern pattern)
    • make2Double

      public static OperatorVec3Delegating make2Double(at.petrak.hexcasting.api.casting.math.HexPattern pattern, BiFunction<net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3,Double> op)
    • make2Vec

      public static OperatorVec3Delegating make2Vec(at.petrak.hexcasting.api.casting.math.HexPattern pattern, BiFunction<net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3> op)