net.minecraft.util.profiler

public class Sampler$Builder<T>

net.minecraft.util.profiling.metrics.MetricSampler$MetricSamplerBuilder
net.minecraft.class_5965$class_5966
net.minecraft.util.profiler.Sampler$Builder

Field summary

Modifier and TypeField
private final String
name
field_33885
name
private final SampleType
category
field_33886
type
private final DoubleSupplier
sampler
field_29605
timeGetter
private final T
context
field_29606
context
private Runnable
beforeTick
field_29607
startAction
private Sampler$DeviationChecker
thresholdTest
field_29608
deviationChecker

Constructor summary

ModifierConstructor
public (String name, SampleType type, ToDoubleFunction<T> timeFunction, T context)

Method summary

Modifier and TypeMethod
public Sampler$Builder<T>
withBeforeTick(Consumer<T> beforeTick)
method_34789(Consumer<T> arg0)
startAction(Consumer<T> action)
public Sampler$Builder<T>
withThresholdAlert(MetricSampler$ThresholdTest thresholdTest)
method_34788(class_5965$class_5967 arg0)
deviationChecker(Sampler$DeviationChecker deviationChecker)
public Sampler
build()
method_34787()
build()
private void
lambda$withBeforeTick$0(Consumer arg0)
method_34791(Consumer arg0)
method_34791(Consumer arg0)
private static double
lambda$new$0(ToDoubleFunction arg0, Object arg1)
method_34790(ToDoubleFunction arg0, Object arg1)
method_34790(ToDoubleFunction arg0, Object arg1)