Class ListIota
java.lang.Object
at.petrak.hexcasting.api.casting.iota.Iota
at.petrak.hexcasting.api.casting.iota.ListIota
This is a wrapper for
SpellList.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdepth()at.petrak.hexcasting.api.casting.SpellListgetList()booleanisTruthy()@NotNull net.minecraft.nbt.TagSerialize this under thedatatag.intsize()This method is called to determine whether the iota is above the max serialisation depth/serialisation count limits.subIotas()This method is called to determine whether the iota is above the max serialisation depth/serialisation count limits.booleantoleratesOther(Iota that) Compare this to another object, within a tolerance.Methods inherited from class at.petrak.hexcasting.api.casting.iota.Iota
display, executable, execute, getType, hashCode, tolerates, typesMatch
-
Field Details
-
TYPE
-
-
Constructor Details
-
ListIota
public ListIota(@NotNull @NotNull at.petrak.hexcasting.api.casting.SpellList list) -
ListIota
-
-
Method Details
-
getList
public at.petrak.hexcasting.api.casting.SpellList getList() -
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). -
subIotas
Description copied from class:IotaThis method is called to determine whether the iota is above the max serialisation depth/serialisation count limits. It should return every "iota" that is a subelement of this iota. For example, if you implemented a Map<Iota, Iota>, then it should be an iterable over the keys *and* values of the map. If you implemented a typed List<Double> iota for some reason, you should instead overrideIota.size(). -
size
public int size()Description copied from class:IotaThis method is called to determine whether the iota is above the max serialisation depth/serialisation count limits. This is an alternative to deriving subIotas for if your Iota is a datastructure of variable size over something that doesn't make sense to convert to an Iota iterable, such asContinuationIota, or a typed List<Double>. It should return "1" per "iota sized" unit of memory that it would occupy. Easy option, return the element count of your data structure. -
depth
public int depth()
-