Novoline
  • Main Page
  • Scripting
    • Introduction
      • Casts
      • Security
      • Globals
      • Object Members
    • Client API
    • Objects
      • Features
        • Feature Settings
      • Settings
      • Minecraft
        • Entities
        • Packets
          • Play Serverbound
          • Play Clientbound
        • MathHelper
    • Events
    • Examples
Powered by GitBook
On this page
  • Builtin Functions
  • Macros
  • Imported Render APIs

Was this helpful?

  1. Scripting
  2. Introduction

Globals

NovoScript provides several Global functions. Here's a list of them:

Builtin Functions

Type
Name
Description
Signature

function

milliTime

Time in milliseconds since JVM startup

long()

function

nanoTime

Time in nanoseconds since JVM startup

long()

function

currentMillisTime

Time in milliseconds since the Unix epoch

long()

Macros

Type
Name
Description
Signature

function

rgb

Converts red, green, blue values to hex

int(int, int, int)

function

rgba

Converts red, green, blue, alpha values to hex

int(int, int, int, int)

function

Timer

Utility object that allows you to check, if a specific delay has been passed

Timer

Timer delay is set when the Timer object is initialized.

Type
Name
Description
Signature

function

hasPassed

Whether a specific delay has been passed since the last reset

boolean(int)

function

reset

Resets the timer

void()

Imported Render APIs

Several LWJGL APIs are already imported for you, so you don't have to all Java.type on most of them. Here's the list of the imported APIs:

Type
Name
Description
Signature

field

GL11

OpenGL 1.1 API

field

GL13

OpenGL 1.3 API

field

GL14

OpenGL 1.4 API

field

GL20

OpenGL 2.0 API

field

Display

OpenGL Window

field

Mouse

LWJGL Mouse Interface

field

Keyboard

LWJGL Keyboard Interface

field

ARBShaderObjects

LWJGL Shader API

field

ARBVertexShader

LWJGL Vertex Shader Interface

field

ARBFragmentShader

LWJGL Fragment Shader Interface

PreviousSecurityNextObject Members

Last updated 3 years ago

Was this helpful?

()

GL11
GL13
GL14
GL20
Display
Mouse
Keyboard
ARBShaderObjects
ARBVertexShader
ARBFragmentShader
Timer