repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add java collection utils for maps

+2
+2
util/src/main/scala/org/eu/net/pool/phlib/maps.scala
··· 53 53 Seq() 54 54 else 55 55 toList 56 + def asJavaMap: java.util.Map[Iota, Iota] = map.map(e => (IotaType.deserialize(e._1, summon), IotaType.deserialize(e._2, summon))).toMap 56 57 object MapIota extends IotaType[MapIota]: 57 58 def color: Int = 0xb0641c 58 59 def deserialize(using data: NbtElement, world: ServerWorld): MapIota = ··· 81 82 output.append("→") 82 83 output.append("]") 83 84 output 85 + def fromJavaMap(map: java.util.Map[Iota, Iota])(using ServerWorld) = MapIota((map: collection.Map[Iota, Iota]).map(e => IotaType.serialize(e._1) -> IotaType.serialize(e._2)).toMap) 84 86 val mapArithmetic = 85 87 import at.petrak.hexcasting.api.casting.arithmetic.Arithmetic.* 86 88 arith("map",