---
description: This includes many random useful classes
---

# Util

## Geometry & MinecraftGeometry

These 2 classes are made to make Minecraft maths easier to read\
&#xNAN;_&#x4E;ot 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 [The Backrooms Mod](https://modrinth.com/mod/backrooms)

## BetterText

Allows to use hex colors using Minecraft's `Text` class, the following example uses the [Color](#colors) class. Example:

{% code overflow="wrap" %}
```java
// 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")
```
{% endcode %}
