Class MetricSampler.MetricSamplerBuilder<T>
java.lang.Object
net.minecraft.util.profiling.metrics.MetricSampler.MetricSamplerBuilder<T>
- Enclosing class:
- MetricSampler
-
Field Summary
Modifier and TypeFieldDescriptionprivate Runnable
private final MetricCategory
private final T
private final String
private final DoubleSupplier
private MetricSampler.ThresholdTest
-
Constructor Summary
ConstructorDescriptionMetricSamplerBuilder
(String p_146035_, MetricCategory p_146036_, ToDoubleFunction<T> p_146037_, T p_146038_) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withBeforeTick
(Consumer<T> p_146043_) withThresholdAlert
(MetricSampler.ThresholdTest p_146041_)
-
Field Details
-
name
-
category
-
sampler
-
context
-
beforeTick
-
thresholdTest
-
-
Constructor Details
-
MetricSamplerBuilder
public MetricSamplerBuilder(String p_146035_, MetricCategory p_146036_, ToDoubleFunction<T> p_146037_, T p_146038_)
-
-
Method Details
-
withBeforeTick
-
withThresholdAlert
public MetricSampler.MetricSamplerBuilder<T> withThresholdAlert(MetricSampler.ThresholdTest p_146041_) -
build
-