repo for my hex addons :3
0
fork

Configure Feed

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

get it compiling

+9 -4
+9 -4
src/main/scala/org/eu/net/pool/hexic/Hexic.scala
··· 2201 2201 views.flatMap: 2202 2202 case v: OfSum => v.views 2203 2203 case v => Iterable(v) 2204 - ) 2204 + ) 2205 2205 class OfEntity(id: UUID)(using server: MinecraftServer) extends OfMerged(typeOfEntity, server.getWorlds.collectFirst(hexicVisibilityHack.unlifted(w => Option(w.getEntity(id)).map(Events.forEntity.invoker()(_)(using w)))).getOrElse(Seq())): 2206 2206 override def serialize = 2207 - val c: NbtCompound() 2208 - c.put("m", id.getMostSignificantBits) 2209 - c.put("l", id.getLeastSignificantBits) 2207 + val c = NbtCompound() 2208 + c.putLong("m", id.getMostSignificantBits) 2209 + c.putLong("l", id.getLeastSignificantBits) 2210 2210 c 2211 2211 class OfBlock(pos: BlockPos)(using world: ServerWorld) extends OfMerged(typeOfBlock, Events.forBlock.invoker()(pos, world.getBlockState(pos))): 2212 2212 override def serialize = ··· 2217 2217 c.put("u", pos.getX) 2218 2218 c.put("x", pos.getY) 2219 2219 c.put("v", pos.getZ) 2220 + c 2220 2221 class OfExactEntity(entity: => Entity)(using ServerWorld) extends InventoryView(typeOfExactEntity): 2221 2222 override val viewType = typeOfExactEntity 2222 2223 override def entities(using TransactionContext) = Set(entity) 2224 + override def serialize = 2225 + val c = NbtCompound() 2226 + // TODO 2227 + c 2223 2228 private given typeOfSum: InventoryView.Type[OfSum]: 2224 2229 override def deserialize(data: NbtCompound)(using ServerWorld): OfSum = ??? 2225 2230 private given typeOfEntity: InventoryView.Type[OfEntity]: