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> idGetter, T[] values, ByIdMap.OutOfBoundsStrategy strategy) private static <T> IntFunction<T> createMap(ToIntFunction<T> idGetter, T[] values) private static <T> T[]createSortedArray(ToIntFunction<T> idGetter, T[] values) static <T> IntFunction<T> sparse(ToIntFunction<T> idGetter, T[] values, T _default)
-
Constructor Details
-
ByIdMap
public ByIdMap()
-
-
Method Details
-
createMap
-
sparse
-
createSortedArray
-
continuous
public static <T> IntFunction<T> continuous(ToIntFunction<T> idGetter, T[] values, ByIdMap.OutOfBoundsStrategy strategy)
-