Package net.minecraft.util.profiler
Class Sampler
java.lang.Object
net.minecraft.util.profiler.Sampler
- Direct Known Subclasses:
ExecutorSampling.MergedSampler
- Mappings:
Namespace Name named net/minecraft/util/profiler/Sampler
intermediary net/minecraft/class_5965
official boq
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private double
(package private) final @Nullable Sampler.DeviationChecker
private final String
private final DoubleSupplier
private final ByteBuf
private final SampleType
private final ByteBuf
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sampler
(String name, SampleType type, DoubleSupplier retriever, @Nullable Runnable startAction, @Nullable Sampler.DeviationChecker deviationChecker) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Sampler.Builder
<T> builder
(String name, SampleType type, ToDoubleFunction<T> retriever, T context) static Sampler
create
(String name, SampleType type, DoubleSupplier retriever) static <T> Sampler
create
(String name, SampleType type, T context, ToDoubleFunction<T> retriever) private void
boolean
getName()
(package private) DoubleSupplier
getType()
boolean
int
hashCode()
void
sample
(int tick) void
start()
void
stop()
-
Field Details
-
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
Lboq;b:Ljava/lang/String;
-
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
Lboq;c:Lbop;
-
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
Lboq;d:Ljava/util/function/DoubleSupplier;
-
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
Lboq;e:Lio/netty/buffer/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
Lboq;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
Lboq;g:Z
-
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
Lboq;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
Lboq;a:Lboq$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
Lboq;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>
Lboq;<init>(Ljava/lang/String;Lbop;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lboq$c;)V
-
-
Method Details
-
create
- 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
Lboq;a(Ljava/lang/String;Lbop;Ljava/util/function/DoubleSupplier;)Lboq;
-
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
Lboq;a(Ljava/lang/String;Lbop;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lboq;
-
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
Lboq;a(Ljava/lang/String;Lbop;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lboq$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
Lboq;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
Lboq;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
Lboq;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
Lboq;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
Lboq;c()Ljava/util/function/DoubleSupplier;
-
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
Lboq;d()Ljava/lang/String;
-
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
Lboq;e()Lbop;
-
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
Lboq;f()Lboq$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
Lboq;g()Z
-
equals
-
hashCode
public int hashCode()
-