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
named net/minecraft/util/profiler/Sampler$Builder
intermediary net/minecraft/class_5965$class_5966
official bom$a
  • Field Details

    • name

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

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

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

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

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

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

    • Builder

      public Builder(String name, SampleType type, ToDoubleFunction<T> timeFunction, T context)
      Mappings:
      Namespace Name Mixin selector
      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
      intermediary <init> Lnet/minecraft/class_5965$class_5966;<init>(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)V
      official <init> Lbom$a;<init>(Ljava/lang/String;Lbol;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)V
  • Method Details

    • startAction

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

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

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