Raven B4
  • Main Page
  • Guide
    • Setup
    • Examples
  • Documentation
    • imports
    • events
    • client
    • entity
    • network
    • world
    • render
    • gl
    • modules
    • config
    • keybinds
    • inventory
    • tile entity
    • util
    • bridge
    • http
    • json
    • packets
    • objects
Powered by GitBook
On this page
  • color
  • colorSymbol
  • randomDouble
  • randomInt
  • round
  • strip
  1. Documentation

util

Client utility wrappers.

color

String coloredMessage = util.color(String message);

Replaces all color shortcuts with the color symbol.

colorSymbol

String colorSymbol = util.colorSymbol;

Minecraft unicode character for color codes. Can be used for rendering minecraft coloring in render.text.

randomDouble

int random = util.randomDouble(double min, double max);

Generates a random double between a specified range.

randomInt

int random = util.randomInt(int min, int max);

Generates a random integer between a specified range.

round

double round = util.round(double value, int decimals);

Rounds a double value to x significant figures.

strip

String chatMessage = util.strip(String message);

Strips all color codes from a string.

Last updated 9 months ago