Class Sampler.Builder<T>

java.lang.Object
net.minecraft.util.profiler.Sampler.Builder<T>
Enclosing class:
Sampler

public static class Sampler.Builder<T> extends Object
Mappings:
Namespace Name
official axh$a
intermediary net/minecraft/class_5965$class_5966
named net/minecraft/util/profiler/Sampler$Builder
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official a Laxh$a;a:Ljava/lang/String;
      intermediary field_33885 Lnet/minecraft/class_5965$class_5966;field_33885:Ljava/lang/String;
      named name Lnet/minecraft/util/profiler/Sampler$Builder;name:Ljava/lang/String;
    • type

      private final SampleType type
      Mappings:
      Namespace Name Mixin selector
      official b Laxh$a;b:Laxg;
      intermediary field_33886 Lnet/minecraft/class_5965$class_5966;field_33886:Lnet/minecraft/class_5949;
      named type Lnet/minecraft/util/profiler/Sampler$Builder;type:Lnet/minecraft/util/profiler/SampleType;
    • timeGetter

      private final DoubleSupplier timeGetter
      Mappings:
      Namespace Name Mixin selector
      official c Laxh$a;c:Ljava/util/function/DoubleSupplier;
      intermediary field_29605 Lnet/minecraft/class_5965$class_5966;field_29605:Ljava/util/function/DoubleSupplier;
      named timeGetter Lnet/minecraft/util/profiler/Sampler$Builder;timeGetter:Ljava/util/function/DoubleSupplier;
    • context

      private final T context
      Mappings:
      Namespace Name Mixin selector
      official d Laxh$a;d:Ljava/lang/Object;
      intermediary field_29606 Lnet/minecraft/class_5965$class_5966;field_29606:Ljava/lang/Object;
      named context Lnet/minecraft/util/profiler/Sampler$Builder;context:Ljava/lang/Object;
    • startAction

      @Nullable private @Nullable Runnable startAction
      Mappings:
      Namespace Name Mixin selector
      official e Laxh$a;e:Ljava/lang/Runnable;
      intermediary field_29607 Lnet/minecraft/class_5965$class_5966;field_29607:Ljava/lang/Runnable;
      named startAction Lnet/minecraft/util/profiler/Sampler$Builder;startAction:Ljava/lang/Runnable;
    • deviationChecker

      @Nullable private @Nullable Sampler.DeviationChecker deviationChecker
      Mappings:
      Namespace Name Mixin selector
      official f Laxh$a;f:Laxh$c;
      intermediary field_29608 Lnet/minecraft/class_5965$class_5966;field_29608:Lnet/minecraft/class_5965$class_5967;
      named deviationChecker Lnet/minecraft/util/profiler/Sampler$Builder;deviationChecker:Lnet/minecraft/util/profiler/Sampler$DeviationChecker;
  • Constructor Details

    • Builder

      public Builder(String name, SampleType type, ToDoubleFunction<T> timeFunction, T context)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxh$a;<init>(Ljava/lang/String;Laxg;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)V
      intermediary <init> Lnet/minecraft/class_5965$class_5966;<init>(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)V
      named <init> Lnet/minecraft/util/profiler/Sampler$Builder;<init>(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)V
  • Method Details

    • startAction

      public Sampler.Builder<T> startAction(Consumer<T> action)
      Mappings:
      Namespace Name Mixin selector
      official a Laxh$a;a(Ljava/util/function/Consumer;)Laxh$a;
      intermediary method_34789 Lnet/minecraft/class_5965$class_5966;method_34789(Ljava/util/function/Consumer;)Lnet/minecraft/class_5965$class_5966;
      named startAction Lnet/minecraft/util/profiler/Sampler$Builder;startAction(Ljava/util/function/Consumer;)Lnet/minecraft/util/profiler/Sampler$Builder;
    • deviationChecker

      public Sampler.Builder<T> deviationChecker(Sampler.DeviationChecker deviationChecker)
      Mappings:
      Namespace Name Mixin selector
      official a Laxh$a;a(Laxh$c;)Laxh$a;
      intermediary method_34788 Lnet/minecraft/class_5965$class_5966;method_34788(Lnet/minecraft/class_5965$class_5967;)Lnet/minecraft/class_5965$class_5966;
      named deviationChecker Lnet/minecraft/util/profiler/Sampler$Builder;deviationChecker(Lnet/minecraft/util/profiler/Sampler$DeviationChecker;)Lnet/minecraft/util/profiler/Sampler$Builder;
    • build

      public Sampler build()
      Mappings:
      Namespace Name Mixin selector
      official a Laxh$a;a()Laxh;
      intermediary method_34787 Lnet/minecraft/class_5965$class_5966;method_34787()Lnet/minecraft/class_5965;
      named build Lnet/minecraft/util/profiler/Sampler$Builder;build()Lnet/minecraft/util/profiler/Sampler;