Package net.minecraft.util
Class ByIdMap
java.lang.Object
net.minecraft.util.ByIdMap
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> IntFunction<T> continuous(ToIntFunction<T> pKeyExtractor, T[] pValues, ByIdMap.OutOfBoundsStrategy pOutOfBoundsStrategy) private static <T> IntFunction<T> createMap(ToIntFunction<T> pKeyExtractor, T[] pValues) private static <T> T[]createSortedArray(ToIntFunction<T> pKeyExtractor, T[] pValues) static <T> IntFunction<T> sparse(ToIntFunction<T> pKeyExtractor, T[] pValues, T pFallback)
-
Constructor Details
-
ByIdMap
public ByIdMap()
-
-
Method Details
-
createMap
-
sparse
-
createSortedArray
-
continuous
public static <T> IntFunction<T> continuous(ToIntFunction<T> pKeyExtractor, T[] pValues, ByIdMap.OutOfBoundsStrategy pOutOfBoundsStrategy)
-