LibuLib
Discord
  • Import using Gradle
  • LibuWeapons
  • Custom Generation
  • Libu UI
    • LibuToast
  • Util
Powered by GitBook
On this page
  • Geometry & MinecraftGeometry
  • Colors
  • BetterText

Util

This includes many random useful classes

PreviousLibuToast

Last updated 2 years ago

Geometry & MinecraftGeometry

These 2 classes are made to make Minecraft maths easier to read Not gonna lie Vec3d to just do X, Y, Z movement is pretty hard to understand

Therefore, these 2 classes includes many useful stuff as: Coordinate or Scale3d.

Colors

All the "branded" colors I use, they all returns integers. See the list:

  • Color.white

  • Color.black

  • Color.brand - The color for #f8bd4f

  • Color.Backrooms.blue - The color for #2736f2 used in

BetterText

Allows to use hex colors using Minecraft's Text class, the following example uses the class. Example:

// Literal Text (Text.literal)
public static final Text helloWorld = new BetterText("Hello, World!", TextType.LITERAL).withColor(Color.Backrooms.Blue);

// Translatable Text (Text.translatable)
public static final Text dirtText = new Better("block.minecraft.dirt")
The Backrooms Mod
Color