Package org.geysermc.geyser.util.collection
package org.geysermc.geyser.util.collection
Contains useful collections for use in Geyser.
Of note are the fixed int maps. Designed for use with block states that are positive and sequential, they do not allow keys to be
added that are not greater by one versus the previous key. Because of this, speedy operations of
Map.get(java.lang.Object)
and Map.containsKey(java.lang.Object)
can be performed by simply checking the bounds of the map
size and its "start" integer.-
ClassDescriptionMap that takes advantage of its internals for fast operations on block states to determine if they are lecterns.A primitive int BiMap implementation built around fastutil to reduce boxing and the memory footprint.