unldenis / holoeasy

a simple and modern Java and Kotlin minecraft hologram library for 1.8-1.20.4 servers.
https://unldenis.github.io/holoeasy/
GNU Lesser General Public License v3.0
86 stars 26 forks source link

Custom collection classes #35

Closed unldenis closed 1 year ago

unldenis commented 1 year ago

FastUtil required a space of 25mb, so in 2.4.0 I preferred to implement the three classes IntHashSet, ReferenceHashSet and ReferenceArrayList from scratch. The IntHashSet class is used only to manage player IDs in ClickableTextLine. The other two allow me a comparison between Player, for example, directly between references.

If you want to contribute and improve these classes, don't hesitate to send PRs.

unldenis commented 1 year ago

ReferenceList and ReferenceSet removed from 2.5.0, IntHashSet still intact.