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 bwa$b
named operation
intermediary comp_3689
official a
named keys
intermediary comp_3690
official b
named values
intermediary comp_3691
official c
  • Field Details

    • operation

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

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

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

    • Future

      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> Lbwa$b;<init>(Ljava/util/function/BiFunction;I)V
    • Future

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

    • put

      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 Lbwa$b;a(ILjava/lang/Object;Ljava/lang/Object;)V
    • getKey

      @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 Lbwa$b;b(I)Ljava/lang/Object;
    • getValue

      @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 Lbwa$b;c(I)Ljava/lang/Object;
    • getUValue

      @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 Lbwa$b;d(I)Ljava/lang/Object;
    • apply

      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 Lbwa$b;a(I)V
    • copy

      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 Lbwa$b;a(ILjava/util/Map;)V
    • keySize

      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 Lbwa$b;a()I
    • toString

      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

      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

      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

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

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

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