# Введение

**BedrockLib** - это Spigot-библиотека, нескольких направлений затрагивающих в первую очередь управление данными:

* их хранение в виде объектов в оперативной памяти во время работы плагина
* сериализация и десериализация
* загрузка и сохранение в YAML конфигурациях
* закгрузка и сохранение в BedrockData

Также в библеотеке есть инструментарий для работы с форматированием текста, кроме этого в ближайшем будующем появятся инструменты для работы с GUI.

**Github:** [**https://github.com/MrBedrockpy/BedrockLib**](https://github.com/MrBedrockpy/BedrockLib)

## Импорт

#### **Для Maven**

```xml
<repositories>
    <repository>
        <id>jitpack.io</id>
	<url>https://jitpack.io</url>
    </repository>
</repositories>
```

```xml
<dependencies>
    <dependency>
        <groupId>com.github.MrBedrockpy</groupId>
        <artifactId>BedrockLib</artifactId>
        <version>3.5</version>
    </dependency>
</dependencies>
```

#### Для Gradle (Grovvy)

```gradle
repositories {
    mavenCentral()
    maven { url 'https://jitpack.io' }
}
```

```gradle
dependencies {
    implementation 'com.github.MrBedrockpy:BedrockLib:2.0.4'
}
```

#### Для Gradle (Kotlin)

```gradle
repositories {
    mavenCentral()
    maven { url = uri("https://jitpack.io") }
}
```

```gradle
dependencies {
    implementation("com.github.MrBedrockpy:BedrockLib:3.5")
}
```

{% hint style="info" %}
**Это не отдельный плагин, BedrockLib встраивается в ваш проект, поэтому для его работы необходим shadowjar или его аналоги.**
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mrbedrockpys-plugins.gitbook.io/mrbedrockpys-plugins-docs/bedrocklib/vvedenie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
