Class MetricSampler.MetricSamplerBuilder<T>
java.lang.Object
net.minecraft.util.profiling.metrics.MetricSampler.MetricSamplerBuilder<T>
- Enclosing class:
- MetricSampler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate Runnableprivate final MetricCategoryprivate final Tprivate final Stringprivate final DoubleSupplierprivate MetricSampler.ThresholdTest
- 
Constructor SummaryConstructorsConstructorDescriptionMetricSamplerBuilder(String p_146035_, MetricCategory p_146036_, ToDoubleFunction<T> p_146037_, T p_146038_) 
- 
Method SummaryModifier and TypeMethodDescriptionbuild()withBeforeTick(Consumer<T> p_146043_) withThresholdAlert(MetricSampler.ThresholdTest p_146041_) 
- 
Field Details- 
name
- 
category
- 
sampler
- 
context
- 
beforeTick
- 
thresholdTest
 
- 
- 
Constructor Details- 
MetricSamplerBuilderpublic MetricSamplerBuilder(String p_146035_, MetricCategory p_146036_, ToDoubleFunction<T> p_146037_, T p_146038_) 
 
- 
- 
Method Details- 
withBeforeTick
- 
withThresholdAlertpublic MetricSampler.MetricSamplerBuilder<T> withThresholdAlert(MetricSampler.ThresholdTest p_146041_) 
- 
build
 
-