Record Class AsyncHelper.Future<K,U,V>

java.lang.Object
java.lang.Record
net.minecraft.util.thread.AsyncHelper.Future<K,U,V>
Record Components:
operation -
keys -
values -
Enclosing class:
AsyncHelper

private static record AsyncHelper.Future<K,U,V>(BiFunction<K,U,V> operation, Object[] keys, Object[] values) extends Record
Mappings:
Namespace Name
named net/minecraft/util/thread/AsyncHelper$Future
intermediary net/minecraft/class_10769$class_10771
official btt$b
named operation
intermediary comp_3689
official a
named keys
intermediary comp_3690
official b
named values
intermediary comp_3691
official c
  • Field Details Link icon

    • operation Link icon

      private final BiFunction<K,U,V> operation
      The field for the operation record component.
    • keys Link icon

      private final Object[] keys
      The field for the keys record component.
    • values Link icon

      private final Object[] values
      The field for the values record component.
  • Constructor Details Link icon

    • Future Link icon

      public Future(BiFunction<K,U,V> function, int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/AsyncHelper$Future;<init>(Ljava/util/function/BiFunction;I)V
      intermediary <init> Lnet/minecraft/class_10769$class_10771;<init>(Ljava/util/function/BiFunction;I)V
      official <init> Lbtt$b;<init>(Ljava/util/function/BiFunction;I)V
    • Future Link icon

      private Future(BiFunction<K,U,V> biFunction, Object[] object, Object[] object2)
  • Method Details Link icon

    • put Link icon

      public void put(int index, K key, U value)
      Mappings:
      Namespace Name Mixin selector
      named put Lnet/minecraft/util/thread/AsyncHelper$Future;put(ILjava/lang/Object;Ljava/lang/Object;)V
      intermediary method_67622 Lnet/minecraft/class_10769$class_10771;method_67622(ILjava/lang/Object;Ljava/lang/Object;)V
      official a Lbtt$b;a(ILjava/lang/Object;Ljava/lang/Object;)V
    • getKey Link icon

      @Nullable private K getKey(int index)
      Mappings:
      Namespace Name Mixin selector
      named getKey Lnet/minecraft/util/thread/AsyncHelper$Future;getKey(I)Ljava/lang/Object;
      intermediary method_67624 Lnet/minecraft/class_10769$class_10771;method_67624(I)Ljava/lang/Object;
      official b Lbtt$b;b(I)Ljava/lang/Object;
    • getValue Link icon

      @Nullable private V getValue(int index)
      Mappings:
      Namespace Name Mixin selector
      named getValue Lnet/minecraft/util/thread/AsyncHelper$Future;getValue(I)Ljava/lang/Object;
      intermediary method_67625 Lnet/minecraft/class_10769$class_10771;method_67625(I)Ljava/lang/Object;
      official c Lbtt$b;c(I)Ljava/lang/Object;
    • getUValue Link icon

      @Nullable private U getUValue(int index)
      Mappings:
      Namespace Name Mixin selector
      named getUValue Lnet/minecraft/util/thread/AsyncHelper$Future;getUValue(I)Ljava/lang/Object;
      intermediary method_67626 Lnet/minecraft/class_10769$class_10771;method_67626(I)Ljava/lang/Object;
      official d Lbtt$b;d(I)Ljava/lang/Object;
    • apply Link icon

      public void apply(int index)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/util/thread/AsyncHelper$Future;apply(I)V
      intermediary method_67621 Lnet/minecraft/class_10769$class_10771;method_67621(I)V
      official a Lbtt$b;a(I)V
    • copy Link icon

      public void copy(int index, Map<K,V> futures)
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/util/thread/AsyncHelper$Future;copy(ILjava/util/Map;)V
      intermediary method_67623 Lnet/minecraft/class_10769$class_10771;method_67623(ILjava/util/Map;)V
      official a Lbtt$b;a(ILjava/util/Map;)V
    • keySize Link icon

      public int keySize()
      Mappings:
      Namespace Name Mixin selector
      named keySize Lnet/minecraft/util/thread/AsyncHelper$Future;keySize()I
      intermediary method_67620 Lnet/minecraft/class_10769$class_10771;method_67620()I
      official a Lbtt$b;a()I
    • toString Link icon

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode Link icon

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals Link icon

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • operation Link icon

      public BiFunction<K,U,V> operation()
      Returns the value of the operation record component.
      Returns:
      the value of the operation record component
    • keys Link icon

      public Object[] keys()
      Returns the value of the keys record component.
      Returns:
      the value of the keys record component
    • values Link icon

      public Object[] values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component