mc

This page will go over the Minecraft API namespace.

getDisplayWidth(): Number

Returns mc.displayWidth.

getDisplayHeight(): Number

Returns mc.displayHeight.

getTimerSpeed(): Number

Returns mc.timer.timerSpeed.

setTimerSpeed(timerSpeed): Undefined

Argument
Type
Description

timerSpeed

Number

The timer speed. Default value is 1.

Does not return anything, sets the timerSpeed value of mc.timer to timerSpeed parameter.

getPartialTicks(): Number

Returns mc.timer.elapsedPartialTicks.

getRenderPartialTicks(): Number

Returns mc.timer.renderPartialTicks.

getFPS(): Number

Returns fps.

Last updated