Class ValueLists

java.lang.Object
net.minecraft.util.function.ValueLists

public class ValueLists extends Object
Mappings:
Namespace Name
official anu
intermediary net/minecraft/class_7995
named net/minecraft/util/function/ValueLists
  • Constructor Details

    • ValueLists

      public ValueLists()
  • Method Details

    • createIdToValueFunction

      private static <T> IntFunction<T> createIdToValueFunction(ToIntFunction<T> valueToIdFunction, T[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lanu;a(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)Ljava/util/function/IntFunction;
      intermediary method_47913 Lnet/minecraft/class_7995;method_47913(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)Ljava/util/function/IntFunction;
      named createIdToValueFunction Lnet/minecraft/util/function/ValueLists;createIdToValueFunction(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)Ljava/util/function/IntFunction;
    • createIdToValueFunction

      public static <T> IntFunction<T> createIdToValueFunction(ToIntFunction<T> valueToIdFunction, T[] values, T fallback)
      Mappings:
      Namespace Name Mixin selector
      official a Lanu;a(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/function/IntFunction;
      intermediary method_47915 Lnet/minecraft/class_7995;method_47915(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/function/IntFunction;
      named createIdToValueFunction Lnet/minecraft/util/function/ValueLists;createIdToValueFunction(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/function/IntFunction;
    • validate

      private static <T> T[] validate(ToIntFunction<T> valueToIndexFunction, T[] values)
      Mappings:
      Namespace Name Mixin selector
      official b Lanu;b(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)[Ljava/lang/Object;
      intermediary method_47917 Lnet/minecraft/class_7995;method_47917(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)[Ljava/lang/Object;
      named validate Lnet/minecraft/util/function/ValueLists;validate(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;)[Ljava/lang/Object;
    • createIdToValueFunction

      public static <T> IntFunction<T> createIdToValueFunction(ToIntFunction<T> valueToIdFunction, T[] values, ValueLists.OutOfBoundsHandling outOfBoundsHandling)
      Mappings:
      Namespace Name Mixin selector
      official a Lanu;a(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Lanu$a;)Ljava/util/function/IntFunction;
      intermediary method_47914 Lnet/minecraft/class_7995;method_47914(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Lnet/minecraft/class_7995$class_7996;)Ljava/util/function/IntFunction;
      named createIdToValueFunction Lnet/minecraft/util/function/ValueLists;createIdToValueFunction(Ljava/util/function/ToIntFunction;[Ljava/lang/Object;Lnet/minecraft/util/function/ValueLists$OutOfBoundsHandling;)Ljava/util/function/IntFunction;