Class Sampler

java.lang.Object
net.minecraft.util.profiler.Sampler
Direct Known Subclasses:
ExecutorSampling.MergedSampler

public class Sampler extends Object
Mappings:
Namespace Name
named net/minecraft/util/profiler/Sampler
intermediary net/minecraft/class_5965
official bol
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/util/profiler/Sampler;name:Ljava/lang/String;
      intermediary field_33882 Lnet/minecraft/class_5965;field_33882:Ljava/lang/String;
      official b Lbol;b:Ljava/lang/String;
    • type

      private final SampleType type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/util/profiler/Sampler;type:Lnet/minecraft/util/profiler/SampleType;
      intermediary field_29598 Lnet/minecraft/class_5965;field_29598:Lnet/minecraft/class_5949;
      official c Lbol;c:Lbok;
    • retriever

      private final DoubleSupplier retriever
      Mappings:
      Namespace Name Mixin selector
      named retriever Lnet/minecraft/util/profiler/Sampler;retriever:Ljava/util/function/DoubleSupplier;
      intermediary field_29599 Lnet/minecraft/class_5965;field_29599:Ljava/util/function/DoubleSupplier;
      official d Lbol;d:Ljava/util/function/DoubleSupplier;
    • ticksBuffer

      private final ByteBuf ticksBuffer
      Mappings:
      Namespace Name Mixin selector
      named ticksBuffer Lnet/minecraft/util/profiler/Sampler;ticksBuffer:Lio/netty/buffer/ByteBuf;
      intermediary field_33883 Lnet/minecraft/class_5965;field_33883:Lio/netty/buffer/ByteBuf;
      official e Lbol;e:Lio/netty/buffer/ByteBuf;
    • valueBuffer

      private final ByteBuf valueBuffer
      Mappings:
      Namespace Name Mixin selector
      named valueBuffer Lnet/minecraft/util/profiler/Sampler;valueBuffer:Lio/netty/buffer/ByteBuf;
      intermediary field_29600 Lnet/minecraft/class_5965;field_29600:Lio/netty/buffer/ByteBuf;
      official f Lbol;f:Lio/netty/buffer/ByteBuf;
    • active

      private volatile boolean active
      Mappings:
      Namespace Name Mixin selector
      named active Lnet/minecraft/util/profiler/Sampler;active:Z
      intermediary field_29601 Lnet/minecraft/class_5965;field_29601:Z
      official g Lbol;g:Z
    • startAction

      @Nullable private final @Nullable Runnable startAction
      Mappings:
      Namespace Name Mixin selector
      named startAction Lnet/minecraft/util/profiler/Sampler;startAction:Ljava/lang/Runnable;
      intermediary field_29602 Lnet/minecraft/class_5965;field_29602:Ljava/lang/Runnable;
      official h Lbol;h:Ljava/lang/Runnable;
    • deviationChecker

      Mappings:
      Namespace Name Mixin selector
      named deviationChecker Lnet/minecraft/util/profiler/Sampler;deviationChecker:Lnet/minecraft/util/profiler/Sampler$DeviationChecker;
      intermediary field_29603 Lnet/minecraft/class_5965;field_29603:Lnet/minecraft/class_5965$class_5967;
      official a Lbol;a:Lbol$c;
    • currentSample

      private double currentSample
      Mappings:
      Namespace Name Mixin selector
      named currentSample Lnet/minecraft/util/profiler/Sampler;currentSample:D
      intermediary field_33884 Lnet/minecraft/class_5965;field_33884:D
      official i Lbol;i:D
  • Constructor Details

    • Sampler

      protected Sampler(String name, SampleType type, DoubleSupplier retriever, @Nullable @Nullable Runnable startAction, @Nullable @Nullable Sampler.DeviationChecker deviationChecker)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/profiler/Sampler;<init>(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lnet/minecraft/util/profiler/Sampler$DeviationChecker;)V
      intermediary <init> Lnet/minecraft/class_5965;<init>(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lnet/minecraft/class_5965$class_5967;)V
      official <init> Lbol;<init>(Ljava/lang/String;Lbok;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lbol$c;)V
  • Method Details

    • create

      public static Sampler create(String name, SampleType type, DoubleSupplier retriever)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/profiler/Sampler;create(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/DoubleSupplier;)Lnet/minecraft/util/profiler/Sampler;
      intermediary method_34776 Lnet/minecraft/class_5965;method_34776(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/DoubleSupplier;)Lnet/minecraft/class_5965;
      official a Lbol;a(Ljava/lang/String;Lbok;Ljava/util/function/DoubleSupplier;)Lbol;
    • create

      public static <T> Sampler create(String name, SampleType type, T context, ToDoubleFunction<T> retriever)
      Mappings:
      Namespace Name Mixin selector
      named create Lnet/minecraft/util/profiler/Sampler;create(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/util/profiler/Sampler;
      intermediary method_34778 Lnet/minecraft/class_5965;method_34778(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/class_5965;
      official a Lbol;a(Ljava/lang/String;Lbok;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lbol;
    • builder

      public static <T> Sampler.Builder<T> builder(String name, SampleType type, ToDoubleFunction<T> retriever, T context)
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/util/profiler/Sampler;builder(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lnet/minecraft/util/profiler/Sampler$Builder;
      intermediary method_34779 Lnet/minecraft/class_5965;method_34779(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lnet/minecraft/class_5965$class_5966;
      official a Lbol;a(Ljava/lang/String;Lbok;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lbol$a;
    • start

      public void start()
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/util/profiler/Sampler;start()V
      intermediary method_34780 Lnet/minecraft/class_5965;method_34780()V
      official a Lbol;a()V
    • sample

      public void sample(int tick)
      Mappings:
      Namespace Name Mixin selector
      named sample Lnet/minecraft/util/profiler/Sampler;sample(I)V
      intermediary method_34781 Lnet/minecraft/class_5965;method_34781(I)V
      official a Lbol;a(I)V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/util/profiler/Sampler;stop()V
      intermediary method_34782 Lnet/minecraft/class_5965;method_34782()V
      official b Lbol;b()V
    • ensureActive

      private void ensureActive()
      Mappings:
      Namespace Name Mixin selector
      named ensureActive Lnet/minecraft/util/profiler/Sampler;ensureActive()V
      intermediary method_34786 Lnet/minecraft/class_5965;method_34786()V
      official h Lbol;h()V
    • getRetriever

      DoubleSupplier getRetriever()
      Mappings:
      Namespace Name Mixin selector
      named getRetriever Lnet/minecraft/util/profiler/Sampler;getRetriever()Ljava/util/function/DoubleSupplier;
      intermediary method_37170 Lnet/minecraft/class_5965;method_37170()Ljava/util/function/DoubleSupplier;
      official c Lbol;c()Ljava/util/function/DoubleSupplier;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/util/profiler/Sampler;getName()Ljava/lang/String;
      intermediary method_37171 Lnet/minecraft/class_5965;method_37171()Ljava/lang/String;
      official d Lbol;d()Ljava/lang/String;
    • getType

      public SampleType getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/util/profiler/Sampler;getType()Lnet/minecraft/util/profiler/SampleType;
      intermediary method_37172 Lnet/minecraft/class_5965;method_37172()Lnet/minecraft/class_5949;
      official e Lbol;e()Lbok;
    • collectData

      public Sampler.Data collectData()
      Mappings:
      Namespace Name Mixin selector
      named collectData Lnet/minecraft/util/profiler/Sampler;collectData()Lnet/minecraft/util/profiler/Sampler$Data;
      intermediary method_37173 Lnet/minecraft/class_5965;method_37173()Lnet/minecraft/class_5965$class_6398;
      official f Lbol;f()Lbol$b;
    • hasDeviated

      public boolean hasDeviated()
      Mappings:
      Namespace Name Mixin selector
      named hasDeviated Lnet/minecraft/util/profiler/Sampler;hasDeviated()Z
      intermediary method_37174 Lnet/minecraft/class_5965;method_37174()Z
      official g Lbol;g()Z
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/util/profiler/Sampler;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_5965;equals(Ljava/lang/Object;)Z
      official equals Lbol;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object