> For the complete documentation index, see [llms.txt](https://flintdl.gitbook.io/oficium/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flintdl.gitbook.io/oficium/pt/readme.md). Agents can also search and read this documentation through its [MCP server](https://flintdl.gitbook.io/oficium/~gitbook/mcp).

# Visão geral

O Oficium dá profissões aos jogadores de Hytale: Ferreiro, Alquimista, Fazendeiro, Explorador, Mercador e outras, cada uma com níveis, patamares e o que só ela faz.

Este guia é para quem faz mods e quer que **o próprio mod trabalhe com essas profissões**: ler as profissões e os níveis de um jogador, dar XP de profissão por algo que o seu mod faz, reagir quando o jogador sobe de nível, ou criar uma profissão sua. Admins que querem uma profissão nova sem Java também acham aqui como.

{% hint style="info" %}
Cobre o Oficium 0.5.0 em diante, API pública **versão 1**. Registrar profissão por código pede o Oficium 0.6.0.
{% endhint %}

## Numa chamada

```java
OficiumApi.get().ifPresent(oficium -> oficium.grantXp("MeuMod", player, "hunter", 50));
```

O jogador ganha 50 de XP de Caçador com o aviso de sempre, e sobe de nível ou patamar se der.

## Por onde seguir

* [O que o Oficium oferece a outros mods](https://flintdl.gitbook.io/oficium/pt/getting-started/what-oficium-offers.md)
* [Instalação](https://flintdl.gitbook.io/oficium/pt/getting-started/setup.md)
* [Primeiros passos](https://flintdl.gitbook.io/oficium/pt/getting-started/quick-start.md)
* [Profissão por arquivo](https://flintdl.gitbook.io/oficium/pt/professions-without-java/a-profession-from-a-file.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://flintdl.gitbook.io/oficium/pt/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
