FpsTextComponent<T extends TextRenderer> constructor
FpsTextComponent<T extends TextRenderer> ({})
Implementation
FpsTextComponent({
int windowSize = 60,
this.decimalPlaces = 0,
T? super.textRenderer,
super.position,
super.size,
super.scale,
super.angle,
super.anchor,
int? priority,
}) : fpsComponent = FpsComponent(windowSize: windowSize),
super(
priority: priority ?? double.maxFinite.toInt(),
) {
add(fpsComponent);
}