类 MetricSampler.MetricSamplerBuilder<T>
java.lang.Object
net.minecraft.util.profiling.metrics.MetricSampler.MetricSamplerBuilder<T>
- 封闭类:
- MetricSampler
-
字段概要
字段修饰符和类型字段说明private Runnable
private final MetricCategory
private final T
private final String
private final DoubleSupplier
private MetricSampler.ThresholdTest
-
构造器概要
构造器构造器说明MetricSamplerBuilder
(String pName, MetricCategory pCategory, ToDoubleFunction<T> pSampler, T pContext) -
方法概要
修饰符和类型方法说明build()
withBeforeTick
(Consumer<T> pBeforeTick) withThresholdAlert
(MetricSampler.ThresholdTest pThresholdTest)
-
字段详细资料
-
name
-
category
-
sampler
-
context
-
beforeTick
-
thresholdTest
-
-
构造器详细资料
-
MetricSamplerBuilder
public MetricSamplerBuilder(String pName, MetricCategory pCategory, ToDoubleFunction<T> pSampler, T pContext)
-
-
方法详细资料
-
withBeforeTick
-
withThresholdAlert
public MetricSampler.MetricSamplerBuilder<T> withThresholdAlert(MetricSampler.ThresholdTest pThresholdTest) -
build
-