Class PatternIota
java.lang.Object
at.petrak.hexcasting.api.casting.iota.Iota
at.petrak.hexcasting.api.casting.iota.PatternIota
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPatternIota(@NotNull IotaType<?> type, @NotNull Object payload) PatternIota(@NotNull at.petrak.hexcasting.api.casting.math.HexPattern pattern) -
Method Summary
Modifier and TypeMethodDescriptionstatic PatternIotadeserialize(net.minecraft.nbt.Tag tag) static net.minecraft.network.chat.Componentdisplay(at.petrak.hexcasting.api.casting.math.HexPattern pat) static net.minecraft.network.chat.ComponentdisplayNonInline(at.petrak.hexcasting.api.casting.math.HexPattern pat) booleanReturns whether this iota is possible to execute (i.e.@NotNull at.petrak.hexcasting.api.casting.eval.CastResultexecute(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.HexPatternbooleanisTruthy()@NotNull net.minecraft.nbt.TagSerialize this under thedatatag.booleantoleratesOther(Iota that) Compare this to another object, within a tolerance.
-
Field Details
-
TYPE
-
-
Constructor Details
-
PatternIota
public PatternIota(@NotNull @NotNull at.petrak.hexcasting.api.casting.math.HexPattern pattern) -
PatternIota
-
-
Method Details
-
getPattern
public at.petrak.hexcasting.api.casting.math.HexPattern getPattern() -
isTruthy
public boolean isTruthy() -
toleratesOther
Description copied from class:IotaCompare this to another object, within a tolerance.- Specified by:
toleratesOtherin classIota
-
serialize
@NotNull public @NotNull net.minecraft.nbt.Tag serialize()Description copied from class:IotaSerialize this under thedatatag.You probably don't want to call this directly; use
IotaType.serialize(at.petrak.hexcasting.api.casting.iota.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:IotaThis method is called when this iota is executed (i.e. Hermes is run on a list containing it, unescaped). By default it will return aCastResultindicating an error has occurred. -
executable
public boolean executable()Description copied from class:IotaReturns whether this iota is possible to execute (i.e. whetherIota.execute(at.petrak.hexcasting.api.casting.eval.vm.CastingVM, net.minecraft.server.level.ServerLevel, at.petrak.hexcasting.api.casting.eval.vm.SpellContinuation)has been overridden.- Overrides:
executablein classIota
-
deserialize
- 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)
-