JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Field Summary
Fields
static final List <at.petrak.hexcasting.api.casting.math.HexPattern>
Fields inherited from interface at.petrak.hexcasting.api.casting.arithmetic.Arithmetic
ABS , ADD , AND , APPEND , ARCCOS , ARCSIN , ARCTAN , ARCTAN2 , CEIL , CONS , COS , DIV , FLOOR , GREATER , GREATER_EQ , INDEX , INDEX_OF , LESS , LESS_EQ , LOG , MOD , MUL , NOT , OR , PACK , POW , REMOVE , REPLACE , REV , SIN , SLICE , SUB , TAN , UNAPPEND , UNCONS , UNIQUE , UNPACK , XOR
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
at.petrak.hexcasting.api.casting.arithmetic.operator.Operator
getOperator (at.petrak.hexcasting.api.casting.math.HexPattern pattern)
make1 (Function <net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3> op)
make2Double (at.petrak.hexcasting.api.casting.math.HexPattern pattern,
BiFunction <net.minecraft.world.phys.Vec3,net.minecraft.world.phys.Vec3,Double > op)
make2Fallback (at.petrak.hexcasting.api.casting.math.HexPattern pattern)
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)
Iterable <at.petrak.hexcasting.api.casting.math.HexPattern>
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Field Details
OPS
public static final List <at.petrak.hexcasting.api.casting.math.HexPattern> OPS
Method Details
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
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
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)
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)