Full Code of Elytrium/LimboAPI for AI

master 3781544d8578 cached
178 files
41.0 MB
238.4k tokens
1374 symbols
1 requests
Download .txt
Showing preview only (904K chars total). Download the full file or copy to clipboard to get everything.
Repository: Elytrium/LimboAPI
Branch: master
Commit: 3781544d8578
Files: 178
Total size: 41.0 MB

Directory structure:
gitextract_l5oqe6y4/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows/
│       ├── build.yml
│       └── release.yml
├── .gitignore
├── HEADER.txt
├── HEADER_MCPROTOCOLLIB.txt
├── HEADER_MIXED.txt
├── LICENSE
├── README.md
├── VERSION
├── api/
│   ├── HEADER.txt
│   ├── LICENSE
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           ├── java/
│           │   └── net/
│           │       └── elytrium/
│           │           └── limboapi/
│           │               └── api/
│           │                   ├── Limbo.java
│           │                   ├── LimboFactory.java
│           │                   ├── LimboSessionHandler.java
│           │                   ├── chunk/
│           │                   │   ├── BlockEntityVersion.java
│           │                   │   ├── BuiltInBiome.java
│           │                   │   ├── Dimension.java
│           │                   │   ├── VirtualBiome.java
│           │                   │   ├── VirtualBlock.java
│           │                   │   ├── VirtualBlockEntity.java
│           │                   │   ├── VirtualChunk.java
│           │                   │   ├── VirtualWorld.java
│           │                   │   ├── data/
│           │                   │   │   ├── BlockSection.java
│           │                   │   │   ├── BlockStorage.java
│           │                   │   │   ├── ChunkSnapshot.java
│           │                   │   │   └── LightSection.java
│           │                   │   └── util/
│           │                   │       └── CompactStorage.java
│           │                   ├── command/
│           │                   │   └── LimboCommandMeta.java
│           │                   ├── event/
│           │                   │   └── LoginLimboRegisterEvent.java
│           │                   ├── file/
│           │                   │   ├── BuiltInWorldFileType.java
│           │                   │   └── WorldFile.java
│           │                   ├── material/
│           │                   │   ├── Block.java
│           │                   │   ├── Item.java
│           │                   │   ├── VirtualItem.java
│           │                   │   └── WorldVersion.java
│           │                   ├── mcprotocollib/
│           │                   │   └── NibbleArray3D.java
│           │                   ├── player/
│           │                   │   ├── GameMode.java
│           │                   │   └── LimboPlayer.java
│           │                   ├── protocol/
│           │                   │   ├── PacketDirection.java
│           │                   │   ├── PreparedPacket.java
│           │                   │   ├── item/
│           │                   │   │   ├── ItemComponent.java
│           │                   │   │   └── ItemComponentMap.java
│           │                   │   ├── map/
│           │                   │   │   └── MapPalette.java
│           │                   │   └── packets/
│           │                   │       ├── PacketFactory.java
│           │                   │       ├── PacketMapping.java
│           │                   │       └── data/
│           │                   │           ├── AbilityFlags.java
│           │                   │           ├── BiomeData.java
│           │                   │           ├── MapData.java
│           │                   │           └── MapPalette.java
│           │                   └── utils/
│           │                       ├── EnumUniverse.java
│           │                       ├── OverlayMap.java
│           │                       └── OverlayVanillaMap.java
│           └── templates/
│               └── net/
│                   └── elytrium/
│                       └── limboapi/
│                           └── BuildConstants.java
├── build.gradle.kts
├── config/
│   ├── checkstyle/
│   │   ├── checkstyle.xml
│   │   └── suppressions.xml
│   └── spotbugs/
│       └── suppressions.xml
├── gradle/
│   ├── libs.versions.toml
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── plugin/
│   ├── build.gradle
│   ├── mapping/
│   │   ├── fallbackdata.json
│   │   ├── legacy_blockentities_mapping.json
│   │   ├── legacy_blocks_mapping.json
│   │   ├── legacy_data_component_types_mapping.json
│   │   ├── legacy_items_mapping.json
│   │   ├── legacyblockmapping.json
│   │   ├── legacyblocks.json
│   │   └── tag_types.json
│   └── src/
│       └── main/
│           ├── java/
│           │   └── net/
│           │       └── elytrium/
│           │           └── limboapi/
│           │               ├── LimboAPI.java
│           │               ├── Settings.java
│           │               ├── file/
│           │               │   ├── MCEditSchematicFile.java
│           │               │   ├── StructureNbtFile.java
│           │               │   ├── WorldEditSchemFile.java
│           │               │   └── WorldFileTypeRegistry.java
│           │               ├── injection/
│           │               │   ├── disconnect/
│           │               │   │   └── DisconnectListener.java
│           │               │   ├── dummy/
│           │               │   │   ├── ClosedChannel.java
│           │               │   │   ├── ClosedMinecraftConnection.java
│           │               │   │   └── DummyEventPool.java
│           │               │   ├── event/
│           │               │   │   └── EventManagerHook.java
│           │               │   ├── login/
│           │               │   │   ├── LoginListener.java
│           │               │   │   ├── LoginTasksQueue.java
│           │               │   │   └── confirmation/
│           │               │   │       └── LoginConfirmHandler.java
│           │               │   ├── packet/
│           │               │   │   ├── LegacyPlayerListItemHook.java
│           │               │   │   ├── LimboCompressDecoder.java
│           │               │   │   ├── MinecraftDiscardCompressDecoder.java
│           │               │   │   ├── MinecraftLimitedCompressDecoder.java
│           │               │   │   ├── PreparedPacketImpl.java
│           │               │   │   ├── RemovePlayerInfoHook.java
│           │               │   │   ├── ServerLoginSuccessHook.java
│           │               │   │   └── UpsertPlayerInfoHook.java
│           │               │   └── tablist/
│           │               │       ├── RewritingKeyedVelocityTabList.java
│           │               │       ├── RewritingTabList.java
│           │               │       ├── RewritingVelocityTabList.java
│           │               │       └── RewritingVelocityTabListLegacy.java
│           │               ├── material/
│           │               │   └── Biome.java
│           │               ├── mcprotocollib/
│           │               │   ├── BitStorage116.java
│           │               │   └── BitStorage19.java
│           │               ├── protocol/
│           │               │   ├── LimboProtocol.java
│           │               │   ├── data/
│           │               │   │   ├── BiomeStorage118.java
│           │               │   │   ├── BlockStorage17.java
│           │               │   │   ├── BlockStorage19.java
│           │               │   │   └── StorageUtils.java
│           │               │   ├── packets/
│           │               │   │   ├── PacketFactoryImpl.java
│           │               │   │   ├── c2s/
│           │               │   │   │   ├── MoveOnGroundOnlyPacket.java
│           │               │   │   │   ├── MovePacket.java
│           │               │   │   │   ├── MovePositionOnlyPacket.java
│           │               │   │   │   ├── MoveRotationOnlyPacket.java
│           │               │   │   │   ├── PlayerChatSessionPacket.java
│           │               │   │   │   └── TeleportConfirmPacket.java
│           │               │   │   └── s2c/
│           │               │   │       ├── ChangeGameStatePacket.java
│           │               │   │       ├── ChunkDataPacket.java
│           │               │   │       ├── ChunkUnloadPacket.java
│           │               │   │       ├── DefaultSpawnPositionPacket.java
│           │               │   │       ├── MapDataPacket.java
│           │               │   │       ├── PlayerAbilitiesPacket.java
│           │               │   │       ├── PositionRotationPacket.java
│           │               │   │       ├── SetExperiencePacket.java
│           │               │   │       ├── SetSlotPacket.java
│           │               │   │       ├── TimeUpdatePacket.java
│           │               │   │       ├── UpdateTagsPacket.java
│           │               │   │       └── UpdateViewPositionPacket.java
│           │               │   └── util/
│           │               │       └── NetworkSection.java
│           │               ├── server/
│           │               │   ├── CachedPackets.java
│           │               │   ├── LimboImpl.java
│           │               │   ├── LimboPlayerImpl.java
│           │               │   ├── LimboSessionHandlerImpl.java
│           │               │   ├── item/
│           │               │   │   ├── SimpleItemComponentManager.java
│           │               │   │   ├── SimpleItemComponentMap.java
│           │               │   │   └── type/
│           │               │   │       ├── BooleanItemComponent.java
│           │               │   │       ├── ComponentItemComponent.java
│           │               │   │       ├── ComponentsItemComponent.java
│           │               │   │       ├── DyedColorItemComponent.java
│           │               │   │       ├── EmptyItemComponent.java
│           │               │   │       ├── EnchantmentsItemComponent.java
│           │               │   │       ├── GameProfileItemComponent.java
│           │               │   │       ├── IntItemComponent.java
│           │               │   │       ├── StringItemComponent.java
│           │               │   │       ├── StringsItemComponent.java
│           │               │   │       ├── TagItemComponent.java
│           │               │   │       ├── VarIntItemComponent.java
│           │               │   │       └── WriteableItemComponent.java
│           │               │   └── world/
│           │               │       ├── SimpleBlock.java
│           │               │       ├── SimpleBlockEntity.java
│           │               │       ├── SimpleItem.java
│           │               │       ├── SimpleTagManager.java
│           │               │       ├── SimpleWorld.java
│           │               │       └── chunk/
│           │               │           ├── SimpleChunk.java
│           │               │           ├── SimpleChunkSnapshot.java
│           │               │           ├── SimpleLightSection.java
│           │               │           └── SimpleSection.java
│           │               └── utils/
│           │                   ├── LambdaUtil.java
│           │                   ├── OverlayIntObjectMap.java
│           │                   ├── OverlayObject2IntMap.java
│           │                   ├── ProtocolTools.java
│           │                   ├── ReloadListener.java
│           │                   └── SetIsObjectSet.java
│           └── resources/
│               └── mapping/
│                   ├── chat_type_1_19.nbt
│                   ├── chat_type_1_19_1.nbt
│                   ├── colors_main_map
│                   ├── colors_minecraft_1_12_map
│                   ├── colors_minecraft_1_16_map
│                   ├── colors_minecraft_1_17_map
│                   ├── colors_minecraft_1_8_map
│                   ├── colors_minimum_version_map
│                   ├── damage_type_1_19_4.nbt
│                   ├── damage_type_1_20.nbt
│                   ├── fluids.json
│                   ├── legacyitems.json
│                   ├── modern_block_id_remap.json
│                   └── modern_item_id_remap.json
└── settings.gradle.kts

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug Report
about: Report the problem that has occurred in our project.
title: "[BUG] "
labels: bug
assignees: ''
---

**Describe the bug**
A clear and concise description of the bug.

**To Reproduce**
Steps to reproduce the behavior:
1. Set '...' in config to '...'
2. Do in game '....'
3. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Server Info (please complete the following information):**
 - All Limbo plugins versions:
 - [e.g. LimboAPI 1.0.4-SNAPSHOT, downloaded from https://github.com/Elytrium/LimboAPI/actions/runs/xxxxxx]
 - [e.g. LimboFilter 1.0.3-rc3, downloaded from https://github.com/Elytrium/LimboAPI/actions/runs/xxxxxx]

 - /velocity dump link [e.g. https://dump.velocitypowered.com/abcdef.json]

**Additional context**
Add any other context about the problem here.


================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature Request
about: Suggest an idea to improve our project.
title: "[ENHANCEMENT] "
labels: enhancement
assignees: ''
---

**Describe the feature you'd like to have implemented**
A clear and concise description of what you want to be added.

**Is your feature request related to an existing problem? Please describe.**
A clear and concise description of what the problem is.

**Additional context**
Add any other context or screenshots about the feature request here.


================================================
FILE: .github/workflows/build.yml
================================================
name: Java CI with Gradle

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4.2.2
      - name: Set up JDK
        uses: actions/setup-java@v4.7.0
        with:
          distribution: temurin
          java-version: 25
      - name: Cache generated data
        uses: actions/cache@v5.0.4
        with:
          path: |
            plugin/build/minecraft/
            plugin/build/generated/minecraft/mapping/
          key: minecraft-${{ hashFiles('gradle.properties') }}
      - name: Build LimboAPI
        run: ./gradlew build
      - name: Upload LimboAPI
        uses: actions/upload-artifact@v4.6.2
        with:
          name: LimboAPI
          path: "*/build/libs/*.jar"
      - uses: dev-drprasad/delete-tag-and-release@v0.2.1
        if: ${{ github.event_name == 'push' }}
        with:
          delete_release: true
          tag_name: dev-build
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      - name: Find git version
        id: git-version
        run: echo "id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
      - name: Find correct JAR
        if: ${{ github.event_name == 'push' }}
        id: find-jar
        run: |
          output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
          echo "::set-output name=jarname::$output"
      - name: Release the build
        if: ${{ github.event_name == 'push' }}
        uses: ncipollo/release-action@v1
        with:
          artifacts: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
          body: ${{ join(github.event.commits.*.message, '\n') }}
          prerelease: true
          name: Dev-build ${{ steps.git-version.outputs.id }}
          tag: dev-build
      - name: Upload to Modrinth
        if: ${{ github.event_name == 'push' }}
        uses: RubixDev/modrinth-upload@v1.0.0
        with:
          token: ${{ secrets.MODRINTH_TOKEN }}
          file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
          name: Dev-build ${{ steps.git-version.outputs.id }}
          version: ${{ steps.git-version.outputs.id }}
          changelog: ${{ join(github.event.commits.*.message, '\n') }}
          game_versions: 1.7.2
          release_type: beta
          loaders: velocity
          featured: false
          project_id: TZOteSf2


================================================
FILE: .github/workflows/release.yml
================================================
name: Java CI with Gradle

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4.2.2
      - name: Set up JDK
        uses: actions/setup-java@v4.7.0
        with:
          distribution: temurin
          java-version: 25
      - name: Cache generated data
        uses: actions/cache@v5.0.4
        with:
          path: |
            plugin/build/minecraft/
            plugin/build/generated/minecraft/mapping/
          key: minecraft-${{ hashFiles('gradle.properties') }}
      - name: Build LimboAPI
        run: ./gradlew build
      - name: Upload LimboAPI
        uses: actions/upload-artifact@v4.6.2
        with:
          name: LimboAPI
          path: "*/build/libs/*.jar"
      - name: Find correct JAR
        id: find-jar
        run: |
          output="$(find plugin/build/libs/ ! -name "*-javadoc.jar" ! -name "*-sources.jar" -type f -printf "%f\n")"
          echo "::set-output name=jarname::$output"
      - name: Upload to the GitHub release
        uses: actions/upload-release-asset@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          upload_url: ${{ github.event.release.upload_url }}
          asset_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
          asset_name: ${{ steps.find-jar.outputs.jarname }}
          asset_content_type: application/java-archive
      - name: Upload to Modrinth
        uses: RubixDev/modrinth-upload@v1.0.0
        with:
          token: ${{ secrets.MODRINTH_TOKEN }}
          file_path: plugin/build/libs/${{ steps.find-jar.outputs.jarname }}
          name: Release ${{ github.event.release.tag_name }}
          version: ${{ github.event.release.tag_name }}
          changelog: ${{ github.event.release.body }}
          game_versions: 1.7.2
          release_type: release
          loaders: velocity
          featured: true
          project_id: TZOteSf2


================================================
FILE: .gitignore
================================================
# IntelliJ user-specific stuff
.idea/
*.iml

# Compiled class file
*.class

# Log file
*.log

# Package Files
*.jar
*.zip
*.tar.gz
*.rar

# Virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# Temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# Gradle
.gradle
build/

# Gradle Patch
**/build/

# Common working directory
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar


================================================
FILE: HEADER.txt
================================================
Copyright (C) 2021 - 2025 Elytrium

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.


================================================
FILE: HEADER_MCPROTOCOLLIB.txt
================================================
This file is part of MCProtocolLib, licensed under the MIT License (MIT).

Copyright (C) 2013-2021 Steveice10

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
OR OTHER DEALINGS IN THE SOFTWARE.

================================================
FILE: HEADER_MIXED.txt
================================================
Copyright (C) 2021 - 2025 Elytrium

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

This file contains some parts of Velocity, licensed under the AGPLv3 License (AGPLv3).

Copyright (C) 2018 Velocity Contributors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.

================================================
FILE: LICENSE
================================================
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published
    by the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.


================================================
FILE: README.md
================================================
<img src="https://elytrium.net/src/img/elytrium.webp" alt="Elytrium" align="right">

# LimboAPI

[![Join our Discord](https://img.shields.io/discord/775778822334709780.svg?logo=discord&label=Discord)](https://ely.su/discord)
![Modrinth Game Versions](https://img.shields.io/modrinth/game-versions/TZOteSf2?logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAIkAAAA8CAMAAABl%2FWk9AAABAlBMVEUAAAAApcwAqM4Apc4Ap88Apc4Apc4AqM0Aps0Ap84Apc0ApswApc4Aps0Ap80Aps4Ap80Aps0Ap84Aps0Aps4Aps0EqdAHrNMKrtQNsdcRtNoVttwWtt0buuAbuuAbuuAauuAbuuEauuAbu%2BAbuuAbuuEbu%2BAbuuEau%2BAbuuAbuuEau%2BEauuAbuuAbueAbuuAau%2BEbuuAauuAauuAbuuEauuEau%2BAbuuAau%2BEbu%2BAWtt0bvOAau%2BEZuOEYt94cvOEUtt8YudsVsdYAn90A%2F%2F8CqM8Ap84Bp84Aps0Ap80Aps0Aps0Aps0auuAauuAbuuAbuuAauuAauuAbuuAAps0buuCTPBtaAAAAVHRSTlMAIhwzOj5ESk1aZnB3f4iTnKWqrrW7xMDCxdDa3%2BDc2tbMxcC8uLOvp6KflpCHgXl1b15ZVE5EQDovKSQhHRcRDAgFAgHL1Nne5e30%2FPj08e3q5vwu6%2BLEAAADTUlEQVR42sXXhXLDPAzAcY2ZGcrMzAzjYhK9%2F6N8YA8zW62Xwu9gvOp6yt8JTKmSjXnHA18Jlqn63xAj5IbLGqWWi%2FvH%2BJ2jufwh3oUXPYSGMmlYjFLcN0aRkc%2BJzKACi5DUUSzQBMj22aeuNsxfUTaIjS1qBJkozF3XRS9HBrkczFsGJVwd9vMEcqMazFfLhhIF9vO2Hd%2B5T05n4GAVJJIoEQAmhZ%2BujFl4lYxSH6KYXmY%2Fb4y%2BfevBmIVDEIqiRFTw8%2FGrMQMnIFLuo9iwzg%2FCnz%2B%2F7RnW7YFIACWSwASRm%2BGqXLZAoIASthaPHprojwbh7Xh%2Fkr3NtlrUMsC40UwjVuW1DH%2BVlkaty36exd9uDKn9OUStyKPmQBN6VbbgrxIToybSf5rle0JHrV%2F5iJrQ%2FZtsT1bgbyJTRU1lVd6OdoV23kdc2dnoqkRNa3xETebSUNRjNdvrGcaFoCZ%2BFBsVP6ImNXhRHmUVYKVnWiYyarozVgemioRrQ9U2wA775BxMOr%2Bj5gimCk34kELCnaFqDWCdfXJER80eTLIhvokh4dZQwt%2BJ7jm%2FvoRR40PkG3R%2F6ZXtPV5McrbXZqXcOz1aEUdtGONDiNQHKHXPdo97WQPOStSGJeUCcw%2BzSPz3aEXgt2atBVzHO82W9NpgCX8ATpiGKKaCDh37%2FjIwdQ2F9B8HTx0s4Tvg%2Bz5EyKnjuyFvWzevTxH7Q7DEh0yyYx6C0%2BrAxKYJ7PHGyh%2B1AKDUR8bm5UOYefnjX9tN3J9Y1ztpAiSRlgCmNkKz8ZsxO0cAXT%2BS9CIwOSpq1r3wC4NkawATIaJm3TM7i3Uk%2Bbt8VVzyqFl38H5h0FLAVIaSqFn3fNDmDfUgqV8CJiOJGu14pQNTq42QZG8CE5JEjXIKXVCQQ1oQmKZN%2Fa5xU%2FkgpKWBSapHbQPUtF1IGpT5pqhH7QgUVYZIcrZ4U5Sj1ttvgZo00vxN6KZ1ZO6UotZ7NnvYbwMhjLSBxza7qJ0AoelEwqyjVgdCaYAEMmrqykBJ4VRuZpH3DpACOIXB6wwGWQNaw4YT9dOblq21YJJiH0maP1GDxUigzMgdy9VhcTo%2B%2FG3ojqbLsGh1jRhisQp95Ma%2BWK4Gy1T0DLQlDPEv1X2Xr4VYWO8AAAAASUVORK5CYII%3D)
![Modrinth Downloads](https://img.shields.io/modrinth/dt/TZOteSf2?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB3aWR0aD0iNTEyIiBoZWlnaHQ9IjUxNCIgdmlld0JveD0iMCAwIDUxMiA1MTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI%2BCiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik01MDMuMTYgMzIzLjU2QzUxNC41NSAyODEuNDcgNTE1LjMyIDIzNS45MSA1MDMuMiAxOTAuNzZDNDY2LjU3IDU0LjIyOTkgMzI2LjA0IC0yNi44MDAxIDE4OS4zMyA5Ljc3OTkxQzgzLjgxMDEgMzguMDE5OSAxMS4zODk5IDEyOC4wNyAwLjY4OTk0MSAyMzAuNDdINDMuOTlDNTQuMjkgMTQ3LjMzIDExMy43NCA3NC43Mjk4IDE5OS43NSA1MS43MDk4QzMwNi4wNSAyMy4yNTk4IDQxNS4xMyA4MC42Njk5IDQ1My4xNyAxODEuMzhMNDExLjAzIDE5Mi42NUMzOTEuNjQgMTQ1LjggMzUyLjU3IDExMS40NSAzMDYuMyA5Ni44MTk4TDI5OC41NiAxNDAuNjZDMzM1LjA5IDE1NC4xMyAzNjQuNzIgMTg0LjUgMzc1LjU2IDIyNC45MUMzOTEuMzYgMjgzLjggMzYxLjk0IDM0NC4xNCAzMDguNTYgMzY5LjE3TDMyMC4wOSA0MTIuMTZDMzkwLjI1IDM4My4yMSA0MzIuNCAzMTAuMyA0MjIuNDMgMjM1LjE0TDQ2NC40MSAyMjMuOTFDNDY4LjkxIDI1Mi42MiA0NjcuMzUgMjgxLjE2IDQ2MC41NSAzMDguMDdMNTAzLjE2IDMyMy41NloiIGZpbGw9IiMxYmQ5NmEiLz4KICA8cGF0aCBkPSJNMzIxLjk5IDUwNC4yMkMxODUuMjcgNTQwLjggNDQuNzUwMSA0NTkuNzcgOC4xMTAxMSAzMjMuMjRDMy44NDAxMSAzMDcuMzEgMS4xNyAyOTEuMzMgMCAyNzUuNDZINDMuMjdDNDQuMzYgMjg3LjM3IDQ2LjQ2OTkgMjk5LjM1IDQ5LjY3OTkgMzExLjI5QzUzLjAzOTkgMzIzLjggNTcuNDUgMzM1Ljc1IDYyLjc5IDM0Ny4wN0wxMDEuMzggMzIzLjkyQzk4LjEyOTkgMzE2LjQyIDk1LjM5IDMwOC42IDkzLjIxIDMwMC40N0M2OS4xNyAyMTAuODcgMTIyLjQxIDExOC43NyAyMTIuMTMgOTQuNzYwMUMyMjkuMTMgOTAuMjEwMSAyNDYuMjMgODguNDQwMSAyNjIuOTMgODkuMTUwMUwyNTUuMTkgMTMzQzI0NC43MyAxMzMuMDUgMjM0LjExIDEzNC40MiAyMjMuNTMgMTM3LjI1QzE1Ny4zMSAxNTQuOTggMTE4LjAxIDIyMi45NSAxMzUuNzUgMjg5LjA5QzEzNi44NSAyOTMuMTYgMTM4LjEzIDI5Ny4xMyAxMzkuNTkgMzAwLjk5TDE4OC45NCAyNzEuMzhMMTc0LjA3IDIzMS45NUwyMjAuNjcgMTg0LjA4TDI3OS41NyAxNzEuMzlMMjk2LjYyIDE5Mi4zOEwyNjkuNDcgMjE5Ljg4TDI0NS43OSAyMjcuMzNMMjI4Ljg3IDI0NC43MkwyMzcuMTYgMjY3Ljc5QzIzNy4xNiAyNjcuNzkgMjUzLjk1IDI4NS42MyAyNTMuOTggMjg1LjY0TDI3Ny43IDI3OS4zM0wyOTQuNTggMjYwLjc5TDMzMS40NCAyNDkuMTJMMzQyLjQyIDI3My44MkwzMDQuMzkgMzIwLjQ1TDI0MC42NiAzNDAuNjNMMjEyLjA4IDMwOC44MUwxNjIuMjYgMzM4LjdDMTg3LjggMzY3Ljc4IDIyNi4yIDM4My45MyAyNjYuMDEgMzgwLjU2TDI3Ny41NCA0MjMuNTVDMjE4LjEzIDQzMS40MSAxNjAuMSA0MDYuODIgMTI0LjA1IDM2MS42NEw4NS42Mzk5IDM4NC42OEMxMzYuMjUgNDUxLjE3IDIyMy44NCA0ODQuMTEgMzA5LjYxIDQ2MS4xNkMzNzEuMzUgNDQ0LjY0IDQxOS40IDQwMi41NiA0NDUuNDIgMzQ5LjM4TDQ4OC4wNiAzNjQuODhDNDU3LjE3IDQzMS4xNiAzOTguMjIgNDgzLjgyIDMyMS45OSA1MDQuMjJaIiBmaWxsPSIjMWJkOTZhIi8%2BCjwvc3ZnPg%3D%3D)
[![Proxy Stats](https://img.shields.io/bstats/servers/12530?logo=minecraft&label=Servers)](https://bstats.org/plugin/velocity/LimboAPI/12530)
[![Proxy Stats](https://img.shields.io/bstats/players/12530?logo=minecraft&label=Players)](https://bstats.org/plugin/velocity/LimboAPI/12530)

Library for sending players to virtual servers (called limbo) \
[Описание и обсуждение на русском языке (spigotmc.ru)](https://spigotmc.ru/resources/limboapi-limboauth-limbofilter-virtualnye-servera-dlja-velocity.715/) \
[Описание и обсуждение на русском языке (rubukkit.org)](http://rubukkit.org/threads/limboapi-limboauth-limbofilter-virtualnye-servera-dlja-velocity.177904/)

Test server: [``ely.su``](https://hotmc.ru/minecraft-server-203216)

## See also

- [LimboAuth](https://github.com/Elytrium/LimboAuth) - Auth System built in virtual server (Limbo). Uses BCrypt, has TOTP 2FA feature. Supports literally any database due to OrmLite.
- [LimboFilter](https://github.com/Elytrium/LimboFilter) - Most powerful bot filtering solution for Minecraft proxies. Built with LimboAPI.

## Features of LimboAPI

- Send to the Limbo server during login process
- Send to the Limbo server during play process
- Send maps, items to player's virtual inventory
- Display player's XP
- Send Title, Chat, ActionBar
- Load world from world files like .schematic
- and more...

## How to

- Include ``limboapi-api`` to your Maven/Gradle project as compile-only
- Subscribe to ``LoginLimboRegisterEvent`` to send players to the Limbo server during login process
- Use ``LimboFactory`` to send players to the Limbo server during play process

## How to include it

#### Setup your project via adding our maven repository to your pom.xml or build.gradle file.

- Maven:

```xml
    <repositories>
        <repository>
            <id>elytrium-repo</id>
            <url>https://maven.elytrium.net/repo/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>net.elytrium.limboapi</groupId>
            <artifactId>api</artifactId>
            <version>1.1.26</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>
```

- Gradle:

```groovy
    repositories {
        maven {
            setName("elytrium-repo")
            setUrl("https://maven.elytrium.net/repo/")
        }
    }

    dependencies {
        compileOnly("net.elytrium.limboapi:api:1.1.26")
    }
```

## Used Open Source projects

- [ProtocolSupport](https://github.com/ProtocolSupport/ProtocolSupport) - for modern->legacy block mappings
- [ViaVersion](https://github.com/ViaVersion/ViaVersion) - for modern string->integer block mappings

## Demo

- [LimboAuth](https://github.com/Elytrium/LimboAuth) - The auth plugin, that uses LimboAPI as a dependency at the basic level.
- [LimboFilter](https://github.com/Elytrium/LimboFilter) - The antibot solution, that uses LimboAPI as a dependency, using almost all available API methods, like Low-level Minecraft packet control.

## Donation

Your donations are really appreciated. Donations wallets/links/cards:

- MasterCard Debit Card (Tinkoff Bank): ``5536 9140 0599 1975``
- Qiwi Wallet: ``PFORG`` or [this link](https://my.qiwi.com/form/Petr-YSpyiLt9c6)
- YooMoney Wallet: ``4100 1721 8467 044`` or [this link](https://yoomoney.ru/quickpay/shop-widget?writer=seller&targets=Donation&targets-hint=&default-sum=&button-text=11&payment-type-choice=on&mobile-payment-type-choice=on&hint=&successURL=&quickpay=shop&account=410017218467044)
- Monero (XMR): 86VQyCz68ApebfFgrzRFAuYLdvd3qG8iT9RHcru9moQkJR9W2Q89Gt3ecFQcFu6wncGwGJsMS9E8Bfr9brztBNbX7Q2rfYS


================================================
FILE: VERSION
================================================
1.1.26


================================================
FILE: api/HEADER.txt
================================================
Copyright (C) 2021 - 2025 Elytrium

The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
reference the LICENSE file in the api top-level directory.

================================================
FILE: api/LICENSE
================================================
Copyright 2021 Elytrium

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

================================================
FILE: api/build.gradle.kts
================================================
@file:Suppress("GroovyAssignabilityCheck")

import net.minecraftforge.licenser.LicenseExtension
import net.minecraftforge.licenser.LicenseProperties
import org.gradle.kotlin.dsl.closureOf

plugins {
    `java-library`
    `maven-publish`
}

tasks.withType<JavaCompile> {
    options.release.set(21)
    options.encoding = "UTF-8"
}

dependencies {
    compileOnly(libs.minecraft.velocity.api)
    api(libs.elytrium.commons.config)
    api(libs.elytrium.commons.utils)
    api(libs.elytrium.commons.velocity)
    api(libs.elytrium.commons.kyori)
    api(libs.minecraft.adventure.nbt)

    compileOnly(libs.tool.spotbugs.annotations)
}

extensions.configure<LicenseExtension> {
    matching(
        "**/mcprotocollib/**",
        closureOf<LicenseProperties> {
            setHeader(rootProject.file("HEADER_MCPROTOCOLLIB.txt"))
        }
    )
    setHeader(file("HEADER.txt"))
}

tasks.named<Javadoc>("javadoc") {
    options.encoding = "UTF-8"
    (options as? StandardJavadocDocletOptions)?.apply {
        source = "21"
        links("https://docs.oracle.com/en/java/javase/11/docs/api/")
        addStringOption("Xdoclint:none", "-quiet")
        if (JavaVersion.current() >= JavaVersion.VERSION_1_9 && JavaVersion.current() < JavaVersion.VERSION_12) {
            addBooleanOption("-no-module-directories", true)
        }
    }
}

val sourcesJar by tasks.registering(Jar::class) {
    archiveClassifier.set("sources")
    from(sourceSets.main.get().allSource)
}

val javadocJar by tasks.registering(Jar::class) {
    archiveClassifier.set("javadoc")
    from(tasks.javadoc)
}

publishing {
    repositories {
        maven {
            credentials {
                username = System.getenv("ELYTRIUM_MAVEN_USERNAME")
                password = System.getenv("ELYTRIUM_MAVEN_PASSWORD")
            }
            name = "elytrium-repo"
            url = uri("https://maven.elytrium.net/repo/")
        }
    }

    publications.create<MavenPublication>("publication") {
        from(components["java"])

        artifact(javadocJar)
        artifact(sourcesJar)
    }
}

artifacts {
    archives(javadocJar)
    archives(sourcesJar)
}

@Suppress("UNCHECKED_CAST")
val getCurrentShortRevision = rootProject.extra["getCurrentShortRevision"] as () -> String


val versionStringProvider = provider {
    if (version.toString().contains("-")) {
        "${version} (git-${getCurrentShortRevision()})"
    } else {
        version.toString()
    }
}

val copyTask by tasks.register<Copy>("generateTemplates") {
    val versionString = versionStringProvider.get()
    inputs.property("version", versionString)
    from(file("src/main/templates"))
    into(layout.buildDirectory.dir("generated/sources/templates"))
    expand("version" to versionString)
}

sourceSets.main.configure {
    java.srcDir(copyTask.outputs)
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/Limbo.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api;

import com.velocitypowered.api.command.Command;
import com.velocitypowered.api.command.CommandMeta;
import com.velocitypowered.api.proxy.Player;
import java.util.function.Supplier;
import net.elytrium.limboapi.api.command.LimboCommandMeta;
import net.elytrium.limboapi.api.player.GameMode;
import net.elytrium.limboapi.api.protocol.PacketDirection;
import net.elytrium.limboapi.api.protocol.packets.PacketMapping;

public interface Limbo {

  void spawnPlayer(Player player, LimboSessionHandler handler);

  void respawnPlayer(Player player);

  long getCurrentOnline();

  Limbo setName(String name);

  Limbo setReadTimeout(int millis);

  Limbo setWorldTime(long ticks);

  Limbo setGameMode(GameMode gameMode);

  Limbo setShouldRejoin(boolean shouldRejoin);

  Limbo setShouldRespawn(boolean shouldRespawn);

  @Deprecated
  Limbo setShouldUpdateTags(boolean shouldUpdateTags);

  Limbo setReducedDebugInfo(boolean reducedDebugInfo);

  Limbo setViewDistance(int viewDistance);

  Limbo setSimulationDistance(int simulationDistance);

  Limbo setMaxSuppressPacketLength(int maxSuppressPacketLength);

  Limbo registerCommand(LimboCommandMeta commandMeta);

  Limbo registerCommand(CommandMeta commandMeta, Command command);

  Limbo registerPacket(PacketDirection direction, Class<?> packetClass, Supplier<?> packetSupplier, PacketMapping[] packetMappings);

  void dispose();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/LimboFactory.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api;

import com.velocitypowered.api.network.ProtocolVersion;
import com.velocitypowered.api.proxy.Player;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Path;
import java.util.Map;
import net.elytrium.limboapi.api.chunk.BuiltInBiome;
import net.elytrium.limboapi.api.chunk.Dimension;
import net.elytrium.limboapi.api.chunk.VirtualBiome;
import net.elytrium.limboapi.api.chunk.VirtualBlock;
import net.elytrium.limboapi.api.chunk.VirtualBlockEntity;
import net.elytrium.limboapi.api.chunk.VirtualChunk;
import net.elytrium.limboapi.api.chunk.VirtualWorld;
import net.elytrium.limboapi.api.file.BuiltInWorldFileType;
import net.elytrium.limboapi.api.file.WorldFile;
import net.elytrium.limboapi.api.material.Block;
import net.elytrium.limboapi.api.material.Item;
import net.elytrium.limboapi.api.material.VirtualItem;
import net.elytrium.limboapi.api.protocol.PreparedPacket;
import net.elytrium.limboapi.api.protocol.item.ItemComponentMap;
import net.elytrium.limboapi.api.protocol.packets.PacketFactory;
import net.kyori.adventure.nbt.CompoundBinaryTag;

public interface LimboFactory {

  /**
   * Creates new virtual block from Block enum.
   *
   * @param block Block from Block enum.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(Block block);

  /**
   * Creates new virtual block from id and data.
   *
   * @param legacyID Legacy block id. (1.12.2 and lower)
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(short legacyID);

  /**
   * Creates new virtual block from id and data.
   *
   * @param modernID Modern block id.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(String modernID);

  /**
   * Creates new virtual block from id and data.
   *
   * @param modernID Modern block id.
   * @param properties Modern properties like {"waterlogged": "true"}.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(String modernID, Map<String, String> properties);

  /**
   * Creates new virtual block from id and data.
   *
   * @param legacyID Block id.
   * @param modern   Use the latest supported version ids or 1.12.2 and lower.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(short legacyID, boolean modern);

  /**
   * Creates new virtual customizable block.
   *
   * @param solid          Defines if the block is solid or not.
   * @param air            Defines if the block is the air.
   * @param motionBlocking Defines if the block blocks motions. (1.14+)
   * @param id             Block protocol id.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean motionBlocking, short id);

  /**
   * Creates new virtual customizable block.
   *
   * @param solid          Defines if the block is solid or not.
   * @param air            Defines if the block is the air.
   * @param motionBlocking Defines if the block blocks motions. (1.14+)
   * @param modernID       Block id.
   * @param properties     Modern properties like {"waterlogged": "true"}.
   *
   * @return new virtual block.
   */
  VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean motionBlocking, String modernID, Map<String, String> properties);

  /**
   * Creates new virtual world.
   *
   * @param dimension World dimension.
   * @param posX      Spawn location. (X)
   * @param posY      Spawn location. (Y)
   * @param posZ      Spawn location. (Z)
   * @param yaw       Spawn rotation. (Yaw)
   * @param pitch     Spawn rotation. (Pitch)
   *
   * @return new virtual world.
   */
  VirtualWorld createVirtualWorld(Dimension dimension, double posX, double posY, double posZ, float yaw, float pitch);

  /**
   * Creates new virtual chunk with plain biomes set as default.
   * You need to provide the chunk location, you can get it using {@code blockCoordinate >> 4}.
   *
   * @param posX Chunk location. (X)
   * @param posZ Chunk location. (Z)
   *
   * @return new virtual chunk.
   */
  @Deprecated
  VirtualChunk createVirtualChunk(int posX, int posZ);

  /**
   * Creates new virtual chunk.
   * You need to provide the chunk location, you can get it using {@code blockCoordinate >> 4}.
   *
   * @param posX         Chunk location. (X)
   * @param posZ         Chunk location. (Z)
   * @param defaultBiome Default biome to fill it.
   *
   * @return new virtual chunk.
   */
  VirtualChunk createVirtualChunk(int posX, int posZ, VirtualBiome defaultBiome);

  /**
   * Creates new virtual chunk.
   * You need to provide the chunk location, you can get it using ({@code block_coordinate >> 4})
   *
   * @param posX         Chunk location. (X)
   * @param posZ         Chunk location. (Z)
   * @param defaultBiome Default biome to fill it.
   *
   * @return new virtual chunk.
   */
  VirtualChunk createVirtualChunk(int posX, int posZ, BuiltInBiome defaultBiome);

  /**
   * Creates new virtual server.
   *
   * @param world Virtual world.
   *
   * @return new virtual server.
   */
  Limbo createLimbo(VirtualWorld world);


  /**
   * Releases a thread after PreparedPacket#build executions.
   * Used to free compression libraries.
   */
  void releasePreparedPacketThread(Thread thread);

  /**
   * Creates new prepared packet builder.
   *
   * @return new prepared packet.
   */
  PreparedPacket createPreparedPacket();

  /**
   * Creates new prepared packet builder.
   *
   * @param minVersion Minimum version to prepare.
   * @param maxVersion Maximum version to prepare.
   *
   * @return new prepared packet.
   */
  PreparedPacket createPreparedPacket(ProtocolVersion minVersion, ProtocolVersion maxVersion);

  /**
   * Creates new prepared packet builder for the CONFIG state.
   *
   * @return new prepared packet.
   */
  PreparedPacket createConfigPreparedPacket();

  /**
   * Creates new prepared packet builder for the CONFIG state.
   *
   * @param minVersion Minimum version to prepare.
   * @param maxVersion Maximum version to prepare.
   *
   * @return new prepared packet.
   */
  PreparedPacket createConfigPreparedPacket(ProtocolVersion minVersion, ProtocolVersion maxVersion);

  /**
   * Pass the player to the next Login Limbo, without spawning at current Limbo.
   *
   * @param player Player to pass.
   */
  void passLoginLimbo(Player player);

  /**
   * Creates new virtual item from Item enum.
   *
   * @param item Item from item enum.
   *
   * @return new virtual item.
   */
  VirtualItem getItem(Item item);

  /**
   * Creates new virtual item from Item enum.
   *
   * @param itemID Modern item identifier.
   *
   * @return new virtual item.
   */
  VirtualItem getItem(String itemID);

  /**
   * Creates new virtual item from Item enum.
   *
   * @param itemLegacyID Legacy item ID
   *
   * @return new virtual item.
   */
  VirtualItem getLegacyItem(int itemLegacyID);

  /**
   * Creates new item component map.
   *
   * @return new item component map
   */
  ItemComponentMap createItemComponentMap();

  VirtualBlockEntity getBlockEntity(String entityID);

  /**
   * A factory to instantiate Minecraft packet objects.
   */
  PacketFactory getPacketFactory();

  ProtocolVersion getPrepareMinVersion();

  ProtocolVersion getPrepareMaxVersion();

  /**
   * Opens world file (a.k.a. schematic file)
   *
   * @param apiType World file type
   * @param file World file
   * @return Ready to use WorldFile
   */
  WorldFile openWorldFile(BuiltInWorldFileType apiType, Path file) throws IOException;


  /**
   * Opens world file (a.k.a. schematic file)
   *
   * @param apiType World file type
   * @param stream World file stream
   * @return Ready to use WorldFile
   */
  WorldFile openWorldFile(BuiltInWorldFileType apiType, InputStream stream) throws IOException;


  /**
   * Opens world file (a.k.a. schematic file)
   *
   * @param apiType World file type
   * @param tag World file NBT tag
   * @return Ready to use WorldFile
   */
  WorldFile openWorldFile(BuiltInWorldFileType apiType, CompoundBinaryTag tag);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/LimboSessionHandler.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api;

import net.elytrium.limboapi.api.player.LimboPlayer;

public interface LimboSessionHandler {

  default void onSpawn(Limbo server, LimboPlayer player) {

  }

  default void onConfig(Limbo server, LimboPlayer player) {

  }

  default void onMove(double posX, double posY, double posZ) {

  }

  default void onMove(double posX, double posY, double posZ, float yaw, float pitch) {

  }

  default void onRotate(float yaw, float pitch) {

  }

  default void onGround(boolean onGround) {

  }

  default void onTeleport(int teleportID) {

  }

  default void onChat(String chat) {

  }

  /**
   * @param packet Any velocity built-in packet or any packet registered via {@link Limbo#registerPacket}.
   */
  default void onGeneric(Object packet) {

  }

  default void onDisconnect() {

  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/BlockEntityVersion.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

import com.velocitypowered.api.network.ProtocolVersion;
import java.util.Arrays;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Map;
import java.util.Set;
import net.elytrium.limboapi.api.utils.EnumUniverse;

public enum BlockEntityVersion {
  LEGACY(EnumSet.range(ProtocolVersion.MINECRAFT_1_7_2, ProtocolVersion.MINECRAFT_1_18_2)),
  MINECRAFT_1_19(EnumSet.of(ProtocolVersion.MINECRAFT_1_19)),
  MINECRAFT_1_19_1(EnumSet.of(ProtocolVersion.MINECRAFT_1_19_1)),
  MINECRAFT_1_19_3(EnumSet.of(ProtocolVersion.MINECRAFT_1_19_3)),
  MINECRAFT_1_19_4(EnumSet.of(ProtocolVersion.MINECRAFT_1_19_4)),
  MINECRAFT_1_20(EnumSet.of(ProtocolVersion.MINECRAFT_1_20)),
  MINECRAFT_1_20_2(EnumSet.of(ProtocolVersion.MINECRAFT_1_20_2)),
  MINECRAFT_1_20_3(EnumSet.of(ProtocolVersion.MINECRAFT_1_20_3)),
  MINECRAFT_1_20_5(EnumSet.of(ProtocolVersion.MINECRAFT_1_20_5)),
  MINECRAFT_1_21(EnumSet.of(ProtocolVersion.MINECRAFT_1_21)),
  MINECRAFT_1_21_2(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_2)),
  MINECRAFT_1_21_4(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_4)),
  MINECRAFT_1_21_5(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_5)),
  MINECRAFT_1_21_6(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_6)),
  MINECRAFT_1_21_7(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_7)),
  MINECRAFT_1_21_9(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_9)),
  MINECRAFT_1_21_11(EnumSet.of(ProtocolVersion.MINECRAFT_1_21_11)),
  MINECRAFT_26_1(EnumSet.of(ProtocolVersion.MINECRAFT_26_1));

  private static final EnumMap<ProtocolVersion, BlockEntityVersion> MC_VERSION_TO_ITEM_VERSIONS = new EnumMap<>(ProtocolVersion.class);
  private static final Map<String, BlockEntityVersion> KEY_LOOKUP = Map.copyOf(EnumUniverse.createProtocolLookup(values()));

  private final Set<ProtocolVersion> versions;

  BlockEntityVersion(ProtocolVersion... versions) {
    this.versions = EnumSet.copyOf(Arrays.asList(versions));
  }

  BlockEntityVersion(Set<ProtocolVersion> versions) {
    this.versions = versions;
  }

  public ProtocolVersion getMinSupportedVersion() {
    return this.versions.iterator().next();
  }

  public Set<ProtocolVersion> getVersions() {
    return this.versions;
  }

  static {
    for (BlockEntityVersion version : BlockEntityVersion.values()) {
      for (ProtocolVersion protocolVersion : version.getVersions()) {
        MC_VERSION_TO_ITEM_VERSIONS.put(protocolVersion, version);
      }
    }
  }

  public static BlockEntityVersion parse(String from) {
    return KEY_LOOKUP.getOrDefault(from, LEGACY);
  }

  public static BlockEntityVersion from(ProtocolVersion protocolVersion) {
    return MC_VERSION_TO_ITEM_VERSIONS.get(protocolVersion);
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/BuiltInBiome.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

public enum BuiltInBiome {

  PLAINS,
  SWAMP,
  SWAMP_HILLS,
  NETHER_WASTES,
  THE_END
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/Dimension.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

public enum Dimension {

  OVERWORLD("minecraft:overworld", 0, 0, 28, true, BuiltInBiome.PLAINS), // (384 + 64) / 16
  NETHER("minecraft:the_nether", -1, 1, 16, false, BuiltInBiome.NETHER_WASTES), // 256 / 16
  THE_END("minecraft:the_end", 1, 2, 16, false, BuiltInBiome.THE_END); // 256 / 16

  private final String key;
  private final int legacyID;
  private final int modernID;
  private final int maxSections;
  private final boolean hasLegacySkyLight;
  private final BuiltInBiome defaultBiome;

  Dimension(String key, int legacyID, int modernID, int maxSections, boolean hasLegacySkyLight, BuiltInBiome defaultBiome) {
    this.key = key;
    this.legacyID = legacyID;
    this.modernID = modernID;
    this.maxSections = maxSections;
    this.hasLegacySkyLight = hasLegacySkyLight;
    this.defaultBiome = defaultBiome;
  }

  public String getKey() {
    return this.key;
  }

  public int getLegacyID() {
    return this.legacyID;
  }

  public int getModernID() {
    return this.modernID;
  }

  public int getMaxSections() {
    return this.maxSections;
  }

  public boolean hasLegacySkyLight() {
    return this.hasLegacySkyLight;
  }

  public BuiltInBiome getDefaultBiome() {
    return this.defaultBiome;
  }
}



================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBiome.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

public interface VirtualBiome {

  String getName();

  int getID();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlock.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

import com.velocitypowered.api.network.ProtocolVersion;
import net.elytrium.limboapi.api.material.WorldVersion;

public interface VirtualBlock {

  short getModernID();

  String getModernStringID();

  @Deprecated
  short getID(ProtocolVersion version);

  short getBlockID(WorldVersion version);

  short getBlockID(ProtocolVersion version);

  boolean isSupportedOn(ProtocolVersion version);

  boolean isSupportedOn(WorldVersion version);

  short getBlockStateID(ProtocolVersion version);

  boolean isSolid();

  boolean isAir();

  boolean isMotionBlocking();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlockEntity.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

import com.velocitypowered.api.network.ProtocolVersion;
import net.kyori.adventure.nbt.CompoundBinaryTag;

public interface VirtualBlockEntity {

  int getID(ProtocolVersion version);

  int getID(BlockEntityVersion version);

  boolean isSupportedOn(ProtocolVersion version);

  boolean isSupportedOn(BlockEntityVersion version);

  String getModernID();

  Entry getEntry(int posX, int posY, int posZ, CompoundBinaryTag nbt);

  interface Entry {

    VirtualBlockEntity getBlockEntity();

    int getPosX();

    int getPosY();

    int getPosZ();

    CompoundBinaryTag getNbt();

    int getID(ProtocolVersion version);

    int getID(BlockEntityVersion version);

    boolean isSupportedOn(ProtocolVersion version);

    boolean isSupportedOn(BlockEntityVersion version);
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualChunk.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

import net.elytrium.limboapi.api.chunk.data.ChunkSnapshot;
import net.kyori.adventure.nbt.CompoundBinaryTag;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.common.value.qual.IntRange;

public interface VirtualChunk {

  void setBlock(int posX, int posY, int posZ, @Nullable VirtualBlock block);

  void setBlockEntity(int posX, int posY, int posZ, @Nullable CompoundBinaryTag nbt, @Nullable VirtualBlockEntity blockEntity);

  void setBlockEntity(VirtualBlockEntity.Entry blockEntityEntry);

  @NonNull
  VirtualBlock getBlock(int posX, int posY, int posZ);

  void setBiome2D(int posX, int posZ, @NonNull VirtualBiome biome);

  void setBiome3D(int posX, int posY, int posZ, @NonNull VirtualBiome biome);

  @NonNull
  VirtualBiome getBiome(int posX, int posY, int posZ);

  void setBlockLight(int posX, int posY, int posZ, byte light);

  byte getBlockLight(int posX, int posY, int posZ);

  void setSkyLight(int posX, int posY, int posZ, byte light);

  byte getSkyLight(int posX, int posY, int posZ);

  void fillBlockLight(@IntRange(from = 0, to = 15) int level);

  void fillSkyLight(@IntRange(from = 0, to = 15) int level);

  int getPosX();

  int getPosZ();

  ChunkSnapshot getFullChunkSnapshot();

  ChunkSnapshot getPartialChunkSnapshot(long previousUpdate);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualWorld.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk;

import java.util.List;
import net.kyori.adventure.nbt.CompoundBinaryTag;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.common.value.qual.IntRange;

public interface VirtualWorld {

  void setBlockEntity(int posX, int posY, int posZ, @Nullable CompoundBinaryTag nbt, @Nullable VirtualBlockEntity blockEntity);

  @NonNull
  VirtualBlock getBlock(int posX, int posY, int posZ);

  void setBiome2d(int posX, int posZ, @NonNull VirtualBiome biome);

  void setBiome3d(int posX, int posY, int posZ, @NonNull VirtualBiome biome);

  VirtualBiome getBiome(int posX, int posY, int posZ);

  byte getBlockLight(int posX, int posY, int posZ);

  void setBlockLight(int posX, int posY, int posZ, byte light);

  void fillBlockLight(@IntRange(from = 0, to = 15) int level);

  void fillSkyLight(@IntRange(from = 0, to = 15) int level);

  List<VirtualChunk> getChunks();

  List<List<VirtualChunk>> getOrderedChunks();

  @Nullable
  VirtualChunk getChunk(int posX, int posZ);

  VirtualChunk getChunkOrNew(int posX, int posZ);

  @NonNull
  Dimension getDimension();

  double getSpawnX();

  double getSpawnY();

  double getSpawnZ();

  float getYaw();

  float getPitch();

  void setBlock(int posX, int posY, int posZ, @Nullable VirtualBlock block);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockSection.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk.data;

import net.elytrium.limboapi.api.chunk.VirtualBlock;
import org.checkerframework.checker.nullness.qual.Nullable;

public interface BlockSection {

  void setBlockAt(int posX, int posY, int posZ, @Nullable VirtualBlock block);

  VirtualBlock getBlockAt(int posX, int posY, int posZ);

  BlockSection getSnapshot();

  long getLastUpdate();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockStorage.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk.data;

import com.velocitypowered.api.network.ProtocolVersion;
import net.elytrium.limboapi.api.chunk.VirtualBlock;
import org.checkerframework.checker.nullness.qual.NonNull;

public interface BlockStorage {

  void write(Object byteBufObject, ProtocolVersion version, int pass);

  void set(int posX, int posY, int posZ, @NonNull VirtualBlock block);

  @NonNull
  VirtualBlock get(int posX, int posY, int posZ);

  int getDataLength(ProtocolVersion version);

  BlockStorage copy();

  static int index(int posX, int posY, int posZ) {
    return posY << 8 | posZ << 4 | posX;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/ChunkSnapshot.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk.data;

import java.util.List;
import net.elytrium.limboapi.api.chunk.VirtualBiome;
import net.elytrium.limboapi.api.chunk.VirtualBlock;
import net.elytrium.limboapi.api.chunk.VirtualBlockEntity;

public interface ChunkSnapshot {

  VirtualBlock getBlock(int posX, int posY, int posZ);

  int getPosX();

  int getPosZ();

  boolean isFullChunk();

  BlockSection[] getSections();

  LightSection[] getLight();

  VirtualBiome[] getBiomes();

  List<VirtualBlockEntity.Entry> getBlockEntityEntries();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/LightSection.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk.data;

import net.elytrium.limboapi.api.mcprotocollib.NibbleArray3D;

public interface LightSection {

  void setBlockLight(int posX, int posY, int posZ, byte light);

  NibbleArray3D getBlockLight();

  byte getBlockLight(int posX, int posY, int posZ);

  void setSkyLight(int posX, int posY, int posZ, byte light);

  NibbleArray3D getSkyLight();

  byte getSkyLight(int posX, int posY, int posZ);

  long getLastUpdate();

  LightSection copy();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/util/CompactStorage.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.chunk.util;

import com.velocitypowered.api.network.ProtocolVersion;

public interface CompactStorage {

  void set(int index, int value);

  int get(int index);

  void write(Object byteBufObject, ProtocolVersion version);

  int getBitsPerEntry();

  @Deprecated(forRemoval = true)
  default int getDataLength() {
    return this.getDataLength(ProtocolVersion.MINIMUM_VERSION);
  }

  int getDataLength(ProtocolVersion version);

  long[] getData();

  CompactStorage copy();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/command/LimboCommandMeta.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.command;

import com.google.common.collect.ImmutableList;
import com.mojang.brigadier.tree.CommandNode;
import com.velocitypowered.api.command.CommandMeta;
import com.velocitypowered.api.command.CommandSource;
import java.util.Collection;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;

public class LimboCommandMeta implements CommandMeta {

  @NonNull
  private final Collection<String> aliases;
  @NonNull
  private final Collection<CommandNode<CommandSource>> hints;
  @Nullable // Why?..
  private final Object plugin;

  public LimboCommandMeta(@NonNull Collection<String> aliases) {
    this(aliases, null, null);
  }

  public LimboCommandMeta(@NonNull Collection<String> aliases, @Nullable Collection<CommandNode<CommandSource>> hints) {
    this(aliases, hints, null);
  }

  public LimboCommandMeta(@NonNull Collection<String> aliases, @Nullable Collection<CommandNode<CommandSource>> hints, @Nullable Object plugin) {
    this.aliases = aliases;
    this.hints = Objects.requireNonNullElse(hints, ImmutableList.of());
    this.plugin = plugin;
  }

  @NonNull
  @Override
  public Collection<String> getAliases() {
    return this.aliases;
  }

  @NonNull
  @Override
  public Collection<CommandNode<CommandSource>> getHints() {
    return this.hints;
  }

  @Nullable
  @Override
  public Object getPlugin() {
    return this.plugin;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/event/LoginLimboRegisterEvent.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.event;

import com.google.common.base.Preconditions;
import com.velocitypowered.api.event.player.KickedFromServerEvent;
import com.velocitypowered.api.proxy.Player;
import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.function.Function;

/**
 * This event is fired during login process before the player has been authenticated, e.g. to enable or disable custom authentication.
 */
public class LoginLimboRegisterEvent {

  private final Player player;
  private final Queue<Runnable> onJoinCallbacks;
  private Function<KickedFromServerEvent, Boolean> onKickCallback;

  public LoginLimboRegisterEvent(Player player) {
    this.player = Preconditions.checkNotNull(player, "player");
    this.onJoinCallbacks = new LinkedBlockingQueue<>();
  }

  public Player getPlayer() {
    return this.player;
  }

  @Override
  public String toString() {
    return "LoginLimboRegisterEvent{"
        + "player=" + this.player
        + "}";
  }

  public Queue<Runnable> getOnJoinCallbacks() {
    return this.onJoinCallbacks;
  }


  public Function<KickedFromServerEvent, Boolean> getOnKickCallback() {
    return this.onKickCallback;
  }

  public void addOnJoinCallback(Runnable callback) {
    this.onJoinCallbacks.add(callback);
  }

  /**
   * @deprecated Use {@link LoginLimboRegisterEvent#addOnJoinCallback(Runnable)} instead
   */
  @Deprecated
  public void addCallback(Runnable callback) {
    this.onJoinCallbacks.add(callback);
  }

  public void setOnKickCallback(Function<KickedFromServerEvent, Boolean> callback) {
    this.onKickCallback = callback;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/file/BuiltInWorldFileType.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.file;

public enum BuiltInWorldFileType {
  SCHEMATIC,
  WORLDEDIT_SCHEM,
  STRUCTURE
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/file/WorldFile.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.file;

import net.elytrium.limboapi.api.LimboFactory;
import net.elytrium.limboapi.api.chunk.VirtualWorld;
import org.checkerframework.common.value.qual.IntRange;

public interface WorldFile {

  default void toWorld(LimboFactory factory, VirtualWorld world, int offsetX, int offsetY, int offsetZ) {
    this.toWorld(factory, world, offsetX, offsetY, offsetZ, 15);
  }

  void toWorld(LimboFactory factory, VirtualWorld world, int offsetX, int offsetY, int offsetZ, @IntRange(from = 0, to = 15) int lightLevel);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/material/Block.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.material;

public enum Block {

  AIR(0),
  STONE(1),
  GRASS(2),
  DIRT(3),
  COBBLESTONE(4),
  PLANKS(5),
  SAPLING(6),
  BEDROCK(7),
  FLOWING_WATER(8),
  WATER(9),
  FLOWING_LAVA(10),
  LAVA(11),
  SAND(12),
  GRAVEL(13),
  GOLD_ORE(14),
  IRON_ORE(15),
  COAL_ORE(16),
  LOG(17),
  LEAVES(18),
  SPONGE(19),
  GLASS(20),
  LAPIS_ORE(21),
  LAPIS_BLOCK(22),
  DISPENSER(23),
  SANDSTONE(24),
  NOTEBLOCK(25),
  BED(26),
  GOLDEN_RAIL(27),
  DETECTOR_RAIL(28),
  STICKY_PISTON(29),
  WEB(30),
  TALLGRASS(31),
  DEADBUSH(32),
  PISTON(33),
  PISTON_HEAD(34),
  WOOL(35),
  PISTON_EXTENSION(36),
  YELLOW_FLOWER(37),
  RED_FLOWER(38),
  BROWN_MUSHROOM(39),
  RED_MUSHROOM(40),
  GOLD_BLOCK(41),
  IRON_BLOCK(42),
  DOUBLE_STONE_SLAB(43),
  STONE_SLAB(44),
  BRICK_BLOCK(45),
  TNT(46),
  BOOKSHELF(47),
  MOSSY_COBBLESTONE(48),
  OBSIDIAN(49),
  TORCH(50),
  FIRE(51),
  MOB_SPAWNER(52),
  OAK_STAIRS(53),
  CHEST(54),
  REDSTONE_WIRE(55),
  DIAMOND_ORE(56),
  DIAMOND_BLOCK(57),
  CRAFTING_TABLE(58),
  WHEAT(59),
  FARMLAND(60),
  FURNACE(61),
  LIT_FURNACE(62),
  STANDING_SIGN(63),
  WOODEN_DOOR(64),
  LADDER(65),
  RAIL(66),
  STONE_STAIRS(67),
  WALL_SIGN(68),
  LEVER(69),
  STONE_PRESSURE_PLATE(70),
  IRON_DOOR(71),
  WOODEN_PRESSURE_PLATE(72),
  REDSTONE_ORE(73),
  LIT_REDSTONE_ORE(74),
  UNLIT_REDSTONE_TORCH(75),
  REDSTONE_TORCH(76),
  STONE_BUTTON(77),
  SNOW_LAYER(78),
  ICE(79),
  SNOW(80),
  CACTUS(81),
  CLAY(82),
  REEDS(83),
  JUKEBOX(84),
  FENCE(85),
  PUMPKIN(86),
  NETHERRACK(87),
  SOUL_SAND(88),
  GLOWSTONE(89),
  PORTAL(90),
  LIT_PUMPKIN(91),
  CAKE(92),
  UNPOWERED_REPEATER(93),
  POWERED_REPEATER(94),
  STAINED_GLASS(95),
  TRAPDOOR(96),
  MONSTER_EGG(97),
  STONEBRICK(98),
  BROWN_MUSHROOM_BLOCK(99),
  RED_MUSHROOM_BLOCK(100),
  IRON_BARS(101),
  GLASS_PANE(102),
  MELON_BLOCK(103),
  PUMPKIN_STEM(104),
  MELON_STEM(105),
  VINE(106),
  FENCE_GATE(107),
  BRICK_STAIRS(108),
  STONE_BRICK_STAIRS(109),
  MYCELIUM(110),
  WATERLILY(111),
  NETHER_BRICK(112),
  NETHER_BRICK_FENCE(113),
  NETHER_BRICK_STAIRS(114),
  NETHER_WART(115),
  ENCHANTING_TABLE(116),
  BREWING_STAND(117),
  CAULDRON(118),
  END_PORTAL(119),
  END_PORTAL_FRAME(120),
  END_STONE(121),
  DRAGON_EGG(122),
  REDSTONE_LAMP(123),
  LIT_REDSTONE_LAMP(124),
  DOUBLE_WOODEN_SLAB(125),
  WOODEN_SLAB(126),
  COCOA(127),
  SANDSTONE_STAIRS(128),
  EMERALD_ORE(129),
  ENDER_CHEST(130),
  TRIPWIRE_HOOK(131),
  TRIPWIRE(132),
  EMERALD_BLOCK(133),
  SPRUCE_STAIRS(134),
  BIRCH_STAIRS(135),
  JUNGLE_STAIRS(136),
  COMMAND_BLOCK(137),
  BEACON(138),
  COBBLESTONE_WALL(139),
  FLOWER_POT(140),
  CARROTS(141),
  POTATOES(142),
  WOODEN_BUTTON(143),
  SKULL(144),
  ANVIL(145),
  TRAPPED_CHEST(146),
  LIGHT_WEIGHTED_PRESSURE_PLATE(147),
  HEAVY_WEIGHTED_PRESSURE_PLATE(148),
  UNPOWERED_COMPARATOR(149),
  POWERED_COMPARATOR(150),
  DAYLIGHT_DETECTOR(151),
  REDSTONE_BLOCK(152),
  QUARTZ_ORE(153),
  HOPPER(154),
  QUARTZ_BLOCK(155),
  QUARTZ_STAIRS(156),
  ACTIVATOR_RAIL(157),
  DROPPER(158),
  STAINED_HARDENED_CLAY(159),
  STAINED_GLASS_PANE(160),
  LEAVES2(161),
  LOG2(162),
  ACACIA_STAIRS(163),
  DARK_OAK_STAIRS(164),
  SLIME(165),
  BARRIER(166),
  IRON_TRAPDOOR(167),
  PRISMARINE(168),
  SEA_LANTERN(169),
  HAY_BLOCK(170),
  CARPET(171),
  HARDENED_CLAY(172),
  COAL_BLOCK(173),
  PACKED_ICE(174),
  DOUBLE_PLANT(175),
  STANDING_BANNER(176),
  WALL_BANNER(177),
  DAYLIGHT_DETECTOR_INVERTED(178),
  RED_SANDSTONE(179),
  RED_SANDSTONE_STAIRS(180),
  DOUBLE_STONE_SLAB2(181),
  STONE_SLAB2(182),
  SPRUCE_FENCE_GATE(183),
  BIRCH_FENCE_GATE(184),
  JUNGLE_FENCE_GATE(185),
  DARK_OAK_FENCE_GATE(186),
  ACACIA_FENCE_GATE(187),
  SPRUCE_FENCE(188),
  BIRCH_FENCE(189),
  JUNGLE_FENCE(190),
  DARK_OAK_FENCE(191),
  ACACIA_FENCE(192),
  SPRUCE_DOOR(193),
  BIRCH_DOOR(194),
  JUNGLE_DOOR(195),
  ACACIA_DOOR(196),
  DARK_OAK_DOOR(197),
  END_ROD(198),
  CHORUS_PLANT(199),
  CHORUS_FLOWER(200),
  PURPUR_BLOCK(201),
  PURPUR_PILLAR(202),
  PURPUR_STAIRS(203),
  PURPUR_DOUBLE_SLAB(204),
  PURPUR_SLAB(205),
  END_BRICKS(206),
  BEETROOTS(207),
  GRASS_PATH(208),
  END_GATEWAY(209),
  REPEATING_COMMAND_BLOCK(210),
  CHAIN_COMMAND_BLOCK(211),
  FROSTED_ICE(212),
  MAGMA(213),
  NETHER_WART_BLOCK(214),
  RED_NETHER_BRICK(215),
  BONE_BLOCK(216),
  STRUCTURE_VOID(217),
  OBSERVER(218),
  WHITE_SHULKER_BOX(219),
  ORANGE_SHULKER_BOX(220),
  MAGENTA_SHULKER_BOX(221),
  LIGHT_BLUE_SHULKER_BOX(222),
  YELLOW_SHULKER_BOX(223),
  LIME_SHULKER_BOX(224),
  PINK_SHULKER_BOX(225),
  GRAY_SHULKER_BOX(226),
  SILVER_SHULKER_BOX(227),
  CYAN_SHULKER_BOX(228),
  PURPLE_SHULKER_BOX(229),
  BLUE_SHULKER_BOX(230),
  BROWN_SHULKER_BOX(231),
  GREEN_SHULKER_BOX(232),
  RED_SHULKER_BOX(233),
  BLACK_SHULKER_BOX(234),
  WHITE_GLAZED_TERRACOTTA(235),
  ORANGE_GLAZED_TERRACOTTA(236),
  MAGENTA_GLAZED_TERRACOTTA(237),
  LIGHT_BLUE_GLAZED_TERRACOTTA(238),
  YELLOW_GLAZED_TERRACOTTA(239),
  LIME_GLAZED_TERRACOTTA(240),
  PINK_GLAZED_TERRACOTTA(241),
  GRAY_GLAZED_TERRACOTTA(242),
  SILVER_GLAZED_TERRACOTTA(243),
  CYAN_GLAZED_TERRACOTTA(244),
  PURPLE_GLAZED_TERRACOTTA(245),
  BLUE_GLAZED_TERRACOTTA(246),
  BROWN_GLAZED_TERRACOTTA(247),
  GREEN_GLAZED_TERRACOTTA(248),
  RED_GLAZED_TERRACOTTA(249),
  BLACK_GLAZED_TERRACOTTA(250),
  CONCRETE(251),
  CONCRETE_POWDER(252),
  STRUCTURE_BLOCK(255);

  private final int id;

  Block(int id) {
    this.id = id;
  }

  public int getID() {
    return this.id;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/material/Item.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.material;

public enum Item {

  AIR(0),
  STONE(1),
  GRASS(2),
  DIRT(3),
  COBBLESTONE(4),
  PLANKS(5),
  SAPLING(6),
  BEDROCK(7),
  SAND(12),
  GRAVEL(13),
  GOLD_ORE(14),
  IRON_ORE(15),
  COAL_ORE(16),
  LOG(17),
  LEAVES(18),
  SPONGE(19),
  GLASS(20),
  LAPIS_ORE(21),
  LAPIS_BLOCK(22),
  DISPENSER(23),
  SANDSTONE(24),
  NOTEBLOCK(25),
  GOLDEN_RAIL(27),
  DETECTOR_RAIL(28),
  STICKY_PISTON(29),
  WEB(30),
  TALLGRASS(31),
  DEADBUSH(32),
  PISTON(33),
  WOOL(35),
  YELLOW_FLOWER(37),
  RED_FLOWER(38),
  BROWN_MUSHROOM(39),
  RED_MUSHROOM(40),
  GOLD_BLOCK(41),
  IRON_BLOCK(42),
  STONE_SLAB(44),
  BRICK_BLOCK(45),
  TNT(46),
  BOOKSHELF(47),
  MOSSY_COBBLESTONE(48),
  OBSIDIAN(49),
  TORCH(50),
  MOB_SPAWNER(52),
  OAK_STAIRS(53),
  CHEST(54),
  DIAMOND_ORE(56),
  DIAMOND_BLOCK(57),
  CRAFTING_TABLE(58),
  FARMLAND(60),
  FURNACE(61),
  LADDER(65),
  RAIL(66),
  STONE_STAIRS(67),
  LEVER(69),
  STONE_PRESSURE_PLATE(70),
  WOODEN_PRESSURE_PLATE(72),
  REDSTONE_ORE(73),
  REDSTONE_TORCH(76),
  STONE_BUTTON(77),
  SNOW_LAYER(78),
  ICE(79),
  SNOW(80),
  CACTUS(81),
  CLAY(82),
  JUKEBOX(84),
  FENCE(85),
  PUMPKIN(86),
  NETHERRACK(87),
  SOUL_SAND(88),
  GLOWSTONE(89),
  LIT_PUMPKIN(91),
  STAINED_GLASS(95),
  TRAPDOOR(96),
  STONEBRICK(98),
  BROWN_MUSHROOM_BLOCK(99),
  RED_MUSHROOM_BLOCK(100),
  IRON_BARS(101),
  GLASS_PANE(102),
  MELON_BLOCK(103),
  VINE(106),
  FENCE_GATE(107),
  BRICK_STAIRS(108),
  STONE_BRICK_STAIRS(109),
  MYCELIUM(110),
  WATERLILY(111),
  NETHER_BRICK(112),
  NETHER_BRICK_FENCE(113),
  NETHER_BRICK_STAIRS(114),
  ENCHANTING_TABLE(116),
  END_PORTAL_FRAME(120),
  END_STONE(121),
  DRAGON_EGG(122),
  REDSTONE_LAMP(123),
  WOODEN_SLAB(126),
  SANDSTONE_STAIRS(128),
  EMERALD_ORE(129),
  ENDER_CHEST(130),
  TRIPWIRE_HOOK(131),
  EMERALD_BLOCK(133),
  SPRUCE_STAIRS(134),
  BIRCH_STAIRS(135),
  JUNGLE_STAIRS(136),
  COMMAND_BLOCK(137),
  BEACON(138),
  COBBLESTONE_WALL(139),
  WOODEN_BUTTON(143),
  ANVIL(145),
  TRAPPED_CHEST(146),
  LIGHT_WEIGHTED_PRESSURE_PLATE(147),
  HEAVY_WEIGHTED_PRESSURE_PLATE(148),
  DAYLIGHT_DETECTOR(151),
  REDSTONE_BLOCK(152),
  QUARTZ_ORE(153),
  HOPPER(154),
  QUARTZ_BLOCK(155),
  QUARTZ_STAIRS(156),
  ACTIVATOR_RAIL(157),
  DROPPER(158),
  STAINED_HARDENED_CLAY(159),
  STAINED_GLASS_PANE(160),
  LEAVES2(161),
  LOG2(162),
  ACACIA_STAIRS(163),
  DARK_OAK_STAIRS(164),
  SLIME(165),
  BARRIER(166),
  IRON_TRAPDOOR(167),
  PRISMARINE(168),
  SEA_LANTERN(169),
  HAY_BLOCK(170),
  CARPET(171),
  HARDENED_CLAY(172),
  COAL_BLOCK(173),
  PACKED_ICE(174),
  DOUBLE_PLANT(175),
  RED_SANDSTONE(179),
  RED_SANDSTONE_STAIRS(180),
  STONE_SLAB2(182),
  SPRUCE_FENCE_GATE(183),
  BIRCH_FENCE_GATE(184),
  JUNGLE_FENCE_GATE(185),
  DARK_OAK_FENCE_GATE(186),
  ACACIA_FENCE_GATE(187),
  SPRUCE_FENCE(188),
  BIRCH_FENCE(189),
  JUNGLE_FENCE(190),
  DARK_OAK_FENCE(191),
  ACACIA_FENCE(192),
  IRON_SHOVEL(256),
  IRON_PICKAXE(257),
  IRON_AXE(258),
  FLINT_AND_STEEL(259),
  APPLE(260),
  BOW(261),
  ARROW(262),
  COAL(263),
  DIAMOND(264),
  IRON_INGOT(265),
  GOLD_INGOT(266),
  IRON_SWORD(267),
  WOODEN_SWORD(268),
  WOODEN_SHOVEL(269),
  WOODEN_PICKAXE(270),
  WOODEN_AXE(271),
  STONE_SWORD(272),
  STONE_SHOVEL(273),
  STONE_PICKAXE(274),
  STONE_AXE(275),
  DIAMOND_SWORD(276),
  DIAMOND_SHOVEL(277),
  DIAMOND_PICKAXE(278),
  DIAMOND_AXE(279),
  STICK(280),
  BOWL(281),
  MUSHROOM_STEW(282),
  GOLDEN_SWORD(283),
  GOLDEN_SHOVEL(284),
  GOLDEN_PICKAXE(285),
  GOLDEN_AXE(286),
  STRING(287),
  FEATHER(288),
  GUNPOWDER(289),
  WOODEN_HOE(290),
  STONE_HOE(291),
  IRON_HOE(292),
  DIAMOND_HOE(293),
  GOLDEN_HOE(294),
  WHEAT_SEEDS(295),
  WHEAT(296),
  BREAD(297),
  LEATHER_HELMET(298),
  LEATHER_CHESTPLATE(299),
  LEATHER_LEGGINGS(300),
  LEATHER_BOOTS(301),
  CHAINMAIL_HELMET(302),
  CHAINMAIL_CHESTPLATE(303),
  CHAINMAIL_LEGGINGS(304),
  CHAINMAIL_BOOTS(305),
  IRON_HELMET(306),
  IRON_CHESTPLATE(307),
  IRON_LEGGINGS(308),
  IRON_BOOTS(309),
  DIAMOND_HELMET(310),
  DIAMOND_CHESTPLATE(311),
  DIAMOND_LEGGINGS(312),
  DIAMOND_BOOTS(313),
  GOLDEN_HELMET(314),
  GOLDEN_CHESTPLATE(315),
  GOLDEN_LEGGINGS(316),
  GOLDEN_BOOTS(317),
  FLINT(318),
  PORKCHOP(319),
  COOKED_PORKCHOP(320),
  PAINTING(321),
  GOLDEN_APPLE(322),
  SIGN(323),
  WOODEN_DOOR(324),
  BUCKET(325),
  WATER_BUCKET(326),
  LAVA_BUCKET(327),
  MINECART(328),
  SADDLE(329),
  IRON_DOOR(330),
  REDSTONE(331),
  SNOWBALL(332),
  BOAT(333),
  LEATHER(334),
  MILK_BUCKET(335),
  BRICK(336),
  CLAY_BALL(337),
  REEDS(338),
  PAPER(339),
  BOOK(340),
  SLIME_BALL(341),
  CHEST_MINECART(342),
  FURNACE_MINECART(343),
  EGG(344),
  COMPASS(345),
  FISHING_ROD(346),
  CLOCK(347),
  GLOWSTONE_DUST(348),
  FISH(349),
  COOKED_FISH(350),
  DYE(351),
  BONE(352),
  SUGAR(353),
  CAKE(354),
  BED(355),
  REPEATER(356),
  COOKIE(357),
  FILLED_MAP(358),
  SHEARS(359),
  MELON(360),
  PUMPKIN_SEEDS(361),
  MELON_SEEDS(362),
  BEEF(363),
  COOKED_BEEF(364),
  CHICKEN(365),
  COOKED_CHICKEN(366),
  ROTTEN_FLESH(367),
  ENDER_PEARL(368),
  BLAZE_ROD(369),
  GHAST_TEAR(370),
  GOLD_NUGGET(371),
  NETHER_WART(372),
  POTION(373),
  GLASS_BOTTLE(374),
  SPIDER_EYE(375),
  FERMENTED_SPIDER_EYE(376),
  BLAZE_POWDER(377),
  MAGMA_CREAM(378),
  BREWING_STAND(379),
  CAULDRON(380),
  ENDER_EYE(381),
  SPECKLED_MELON(382),
  SPAWN_EGG(383),
  EXPERIENCE_BOTTLE(384),
  FIRE_CHARGE(385),
  WRITABLE_BOOK(386),
  WRITTEN_BOOK(387),
  EMERALD(388),
  ITEM_FRAME(389),
  FLOWER_POT(390),
  CARROT(391),
  POTATO(392),
  BAKED_POTATO(393),
  POISONOUS_POTATO(394),
  MAP(395),
  GOLDEN_CARROT(396),
  SKULL(397),
  CARROT_ON_A_STICK(398),
  NETHER_STAR(399),
  PUMPKIN_PIE(400),
  FIREWORKS(401),
  FIREWORK_CHARGE(402),
  ENCHANTED_BOOK(403),
  COMPARATOR(404),
  NETHERBRICK(405),
  QUARTZ(406),
  TNT_MINECART(407),
  HOPPER_MINECART(408),
  PRISMARINE_SHARD(409),
  PRISMARINE_CRYSTALS(410),
  RABBIT(411),
  COOKED_RABBIT(412),
  RABBIT_STEW(413),
  RABBIT_FOOT(414),
  RABBIT_HIDE(415),
  ARMOR_STAND(416),
  IRON_HORSE_ARMOR(417),
  GOLDEN_HORSE_ARMOR(418),
  DIAMOND_HORSE_ARMOR(419),
  LEAD(420),
  NAME_TAG(421),
  COMMAND_BLOCK_MINECART(422),
  MUTTON(423),
  COOKED_MUTTON(424),
  BANNER(425),
  SPRUCE_DOOR(427),
  BIRCH_DOOR(428),
  JUNGLE_DOOR(429),
  ACACIA_DOOR(430),
  DARK_OAK_DOOR(431),
  RECORD_13(2256),
  RECORD_CAT(2257),
  RECORD_BLOCKS(2258),
  RECORD_CHIRP(2259),
  RECORD_FAR(2260),
  RECORD_MALL(2261),
  RECORD_MELLOHI(2262),
  RECORD_STAL(2263),
  RECORD_STRAD(2264),
  RECORD_WARD(2265),
  RECORD_11(2266),
  RECORD_WAIT(2267);

  private final int id;

  Item(int id) {
    this.id = id;
  }

  @Deprecated
  public int getID() {
    return this.id;
  }

  public int getLegacyID() {
    return this.id;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/material/VirtualItem.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.material;

import com.velocitypowered.api.network.ProtocolVersion;

public interface VirtualItem {

  short getID(ProtocolVersion version);

  short getID(WorldVersion version);

  boolean isSupportedOn(ProtocolVersion version);

  boolean isSupportedOn(WorldVersion version);

  String getModernID();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/material/WorldVersion.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.material;

import com.velocitypowered.api.network.ProtocolVersion;
import java.util.Arrays;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Map;
import java.util.Set;
import net.elytrium.limboapi.api.utils.EnumUniverse;

public enum WorldVersion {
  LEGACY(EnumSet.range(ProtocolVersion.MINECRAFT_1_7_2, ProtocolVersion.MINECRAFT_1_12_2)),
  MINECRAFT_1_13(ProtocolVersion.MINECRAFT_1_13),
  MINECRAFT_1_13_2(ProtocolVersion.MINECRAFT_1_13_1, ProtocolVersion.MINECRAFT_1_13_2),
  MINECRAFT_1_14(EnumSet.range(ProtocolVersion.MINECRAFT_1_14, ProtocolVersion.MINECRAFT_1_14_4)),
  MINECRAFT_1_15(EnumSet.range(ProtocolVersion.MINECRAFT_1_15, ProtocolVersion.MINECRAFT_1_15_2)),
  MINECRAFT_1_16(ProtocolVersion.MINECRAFT_1_16, ProtocolVersion.MINECRAFT_1_16_1),
  MINECRAFT_1_16_2(EnumSet.range(ProtocolVersion.MINECRAFT_1_16_2, ProtocolVersion.MINECRAFT_1_16_4)),
  MINECRAFT_1_17(EnumSet.range(ProtocolVersion.MINECRAFT_1_17, ProtocolVersion.MINECRAFT_1_18_2)),
  MINECRAFT_1_19(EnumSet.range(ProtocolVersion.MINECRAFT_1_19, ProtocolVersion.MINECRAFT_1_19_1)),
  MINECRAFT_1_19_3(ProtocolVersion.MINECRAFT_1_19_3),
  MINECRAFT_1_19_4(EnumSet.range(ProtocolVersion.MINECRAFT_1_19_4, ProtocolVersion.MINECRAFT_1_20)),
  MINECRAFT_1_20(EnumSet.range(ProtocolVersion.MINECRAFT_1_20, ProtocolVersion.MINECRAFT_1_20_2)),
  MINECRAFT_1_20_3(ProtocolVersion.MINECRAFT_1_20_3),
  MINECRAFT_1_20_5(EnumSet.range(ProtocolVersion.MINECRAFT_1_20_5, ProtocolVersion.MINECRAFT_1_21)),
  MINECRAFT_1_21_2(ProtocolVersion.MINECRAFT_1_21_2),
  MINECRAFT_1_21_4(ProtocolVersion.MINECRAFT_1_21_4),
  MINECRAFT_1_21_5(ProtocolVersion.MINECRAFT_1_21_5),
  MINECRAFT_1_21_6(ProtocolVersion.MINECRAFT_1_21_6),
  MINECRAFT_1_21_7(ProtocolVersion.MINECRAFT_1_21_7),
  MINECRAFT_1_21_9(ProtocolVersion.MINECRAFT_1_21_9),
  MINECRAFT_1_21_11(ProtocolVersion.MINECRAFT_1_21_11),
  MINECRAFT_26_1(EnumSet.range(ProtocolVersion.MINECRAFT_26_1, ProtocolVersion.MAXIMUM_VERSION));

  private static final EnumMap<ProtocolVersion, WorldVersion> MC_VERSION_TO_ITEM_VERSIONS = new EnumMap<>(ProtocolVersion.class);
  private static final Map<String, WorldVersion> KEY_LOOKUP = Map.copyOf(EnumUniverse.createProtocolLookup(values()));

  private final Set<ProtocolVersion> versions;

  WorldVersion(ProtocolVersion... versions) {
    this.versions = EnumSet.copyOf(Arrays.asList(versions));
  }

  WorldVersion(Set<ProtocolVersion> versions) {
    this.versions = versions;
  }

  public ProtocolVersion getMinSupportedVersion() {
    return this.versions.iterator().next();
  }

  public Set<ProtocolVersion> getVersions() {
    return this.versions;
  }

  static {
    for (WorldVersion version : WorldVersion.values()) {
      for (ProtocolVersion protocolVersion : version.getVersions()) {
        MC_VERSION_TO_ITEM_VERSIONS.put(protocolVersion, version);
      }
    }
  }

  public static WorldVersion parse(String from) {
    return KEY_LOOKUP.getOrDefault(from, LEGACY);
  }

  public static WorldVersion from(ProtocolVersion protocolVersion) {
    return MC_VERSION_TO_ITEM_VERSIONS.get(protocolVersion);
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/mcprotocollib/NibbleArray3D.java
================================================
/*
 * This file is part of MCProtocolLib, licensed under the MIT License (MIT).
 *
 * Copyright (C) 2013-2021 Steveice10
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
 * OR OTHER DEALINGS IN THE SOFTWARE.
 */

package net.elytrium.limboapi.api.mcprotocollib;

import java.util.Arrays;
import net.elytrium.limboapi.api.chunk.data.BlockStorage;

public class NibbleArray3D {

  private final byte[] data;

  public NibbleArray3D(int size) {
    this.data = new byte[size >> 1];
  }

  public NibbleArray3D(int size, int defaultValue) {
    this.data = new byte[size >> 1];
    this.fill(defaultValue);
  }

  public NibbleArray3D(byte[] array) {
    this.data = array;
  }

  public byte[] getData() {
    return this.data;
  }

  public int get(int posX, int posY, int posZ) {
    int key = BlockStorage.index(posX, posY, posZ);
    int index = key >> 1;
    return (key & 1) == 0 ? this.data[index] & 15 : this.data[index] >> 4 & 15;
  }

  public void set(int posX, int posY, int posZ, int value) {
    this.set(BlockStorage.index(posX, posY, posZ), value);
  }

  public void set(int key, int val) {
    int index = key >> 1;
    if ((key & 1) == 0) {
      this.data[index] = (byte) (this.data[index] & 240 | val & 15);
    } else {
      this.data[index] = (byte) (this.data[index] & 15 | (val & 15) << 4);
    }
  }

  public void fill(int value) {
    for (int index = 0; index < this.data.length << 1; ++index) {
      this.set(index, value);
    }
  }

  public NibbleArray3D copy() {
    return new NibbleArray3D(Arrays.copyOf(this.data, this.data.length));
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/player/GameMode.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.player;

import org.checkerframework.checker.nullness.qual.Nullable;

public enum GameMode {

  SURVIVAL,
  CREATIVE,
  ADVENTURE,
  SPECTATOR;

  /**
   * Cached {@link #values()} array to avoid constant array allocation.
   */
  private static final GameMode[] VALUES = values();

  /**
   * Get the ID of this {@link GameMode}.
   *
   * @return The ID.
   *
   * @see #getByID(int)
   */
  public short getID() {
    return (short) this.ordinal();
  }

  /**
   * Get a {@link GameMode} by its' ID.
   *
   * @param id The ID.
   *
   * @return The {@link GameMode}, or {@code null} if it does not exist.
   *
   * @see #getID()
   */
  @Nullable
  public static GameMode getByID(int id) {
    return VALUES[id];
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/player/LimboPlayer.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.player;

import com.velocitypowered.api.proxy.Player;
import com.velocitypowered.api.proxy.server.RegisteredServer;
import java.awt.image.BufferedImage;
import java.util.concurrent.ScheduledExecutorService;
import net.elytrium.limboapi.api.Limbo;
import net.elytrium.limboapi.api.material.VirtualItem;
import net.elytrium.limboapi.api.protocol.item.ItemComponentMap;
import net.kyori.adventure.nbt.CompoundBinaryTag;

public interface LimboPlayer {

  void writePacket(Object packetObj);

  void writePacketAndFlush(Object packetObj);

  void flushPackets();

  void closeWith(Object packetObj);

  ScheduledExecutorService getScheduledExecutor();

  void sendImage(BufferedImage image);

  void sendImage(BufferedImage image, boolean sendItem);

  void sendImage(int mapID, BufferedImage image);

  void sendImage(int mapID, BufferedImage image, boolean sendItem);

  void sendImage(int mapID, BufferedImage image, boolean sendItem, boolean resize);

  void setInventory(VirtualItem item, int count);

  void setInventory(VirtualItem item, int slot, int count);

  void setInventory(int slot, VirtualItem item, int count, int data, CompoundBinaryTag nbt);

  void setInventory(int slot, VirtualItem item, int count, int data, ItemComponentMap map);

  void setGameMode(GameMode gameMode);

  void teleport(double posX, double posY, double posZ, float yaw, float pitch);

  void disableFalling();

  void enableFalling();

  void disconnect();

  void disconnect(RegisteredServer server);

  void sendAbilities();

  void sendAbilities(int abilities, float flySpeed, float walkSpeed);

  void sendAbilities(byte abilities, float flySpeed, float walkSpeed);

  byte getAbilities();

  GameMode getGameMode();

  Limbo getServer();

  Player getProxyPlayer();

  int getPing();

  void setWorldTime(long ticks);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/PacketDirection.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol;

public enum PacketDirection {

  CLIENTBOUND,
  SERVERBOUND
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/PreparedPacket.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol;

import com.velocitypowered.api.network.ProtocolVersion;
import java.util.List;
import java.util.function.Function;

public interface PreparedPacket {

  <T> PreparedPacket prepare(T packet);

  <T> PreparedPacket prepare(T[] packets);

  <T> PreparedPacket prepare(List<T> packets);

  <T> PreparedPacket prepare(T packet, ProtocolVersion from);

  <T> PreparedPacket prepare(T packet, ProtocolVersion from, ProtocolVersion to);

  <T> PreparedPacket prepare(T[] packets, ProtocolVersion from);

  <T> PreparedPacket prepare(T[] packets, ProtocolVersion from, ProtocolVersion to);

  <T> PreparedPacket prepare(List<T> packets, ProtocolVersion from);

  <T> PreparedPacket prepare(List<T> packets, ProtocolVersion from, ProtocolVersion to);

  <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet);

  <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet, ProtocolVersion from);

  <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet, ProtocolVersion from, ProtocolVersion to);

  PreparedPacket build();

  void release();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponent.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.item;

public interface ItemComponent<T> {

  String getName();

  ItemComponent<T> setValue(T value);

  T getValue();
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponentMap.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.item;

import com.velocitypowered.api.network.ProtocolVersion;
import java.util.List;

public interface ItemComponentMap {

  <T> ItemComponentMap add(ProtocolVersion version, String name, T value);

  ItemComponentMap remove(ProtocolVersion version, String name);

  List<ItemComponent> getAdded();

  List<ItemComponent> getRemoved();

  void read(ProtocolVersion version, Object buffer);

  void write(ProtocolVersion version, Object buffer);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/map/MapPalette.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.map;

import com.velocitypowered.api.network.ProtocolVersion;
import java.awt.image.BufferedImage;

@Deprecated(forRemoval = true)
public class MapPalette {

  public static int[] imageToBytes(BufferedImage image) {
    return net.elytrium.limboapi.api.protocol.packets.data.MapPalette.imageToBytes(image);
  }

  public static int[] imageToBytes(BufferedImage image, ProtocolVersion version) {
    return net.elytrium.limboapi.api.protocol.packets.data.MapPalette.imageToBytes(image, version);
  }

  public static byte tryFastMatchColor(int rgb, ProtocolVersion version) {
    return net.elytrium.limboapi.api.protocol.packets.data.MapPalette.tryFastMatchColor(rgb, version);
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketFactory.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets;

import com.velocitypowered.api.network.ProtocolVersion;
import java.util.List;
import java.util.Map;
import net.elytrium.limboapi.api.chunk.Dimension;
import net.elytrium.limboapi.api.chunk.data.ChunkSnapshot;
import net.elytrium.limboapi.api.material.VirtualItem;
import net.elytrium.limboapi.api.material.WorldVersion;
import net.elytrium.limboapi.api.protocol.item.ItemComponentMap;
import net.elytrium.limboapi.api.protocol.packets.data.AbilityFlags;
import net.elytrium.limboapi.api.protocol.packets.data.MapData;
import net.kyori.adventure.nbt.CompoundBinaryTag;
import org.checkerframework.checker.nullness.qual.Nullable;

public interface PacketFactory {

  Object createChangeGameStatePacket(int reason, float value);

  Object createChunkDataPacket(ChunkSnapshot chunkSnapshot, boolean legacySkyLight, int maxSections);

  Object createChunkDataPacket(ChunkSnapshot chunkSnapshot, Dimension dimension);

  Object createChunkUnloadPacket(int posX, int posZ);

  Object createDefaultSpawnPositionPacket(int posX, int posY, int posZ, float angle);

  Object createDefaultSpawnPositionPacket(String dimension, int posX, int posY, int posZ, float yaw, float pitch);

  Object createMapDataPacket(int mapID, byte scale, MapData mapData);

  /**
   * @param flags See {@link AbilityFlags}. (e.g. {@code AbilityFlags.ALLOW_FLYING | AbilityFlags.CREATIVE_MODE})
   */
  Object createPlayerAbilitiesPacket(int flags, float flySpeed, float walkSpeed);

  /**
   * @param flags See {@link AbilityFlags}. (e.g. {@code AbilityFlags.ALLOW_FLYING | AbilityFlags.CREATIVE_MODE})
   */
  Object createPlayerAbilitiesPacket(byte flags, float flySpeed, float walkSpeed);

  Object createPositionRotationPacket(double posX, double posY, double posZ, float yaw, float pitch,
      boolean onGround, int teleportID, boolean dismountVehicle);

  Object createSetExperiencePacket(float expBar, int level, int totalExp);

  Object createSetSlotPacket(int windowID, int slot, VirtualItem item, int count, int data, @Nullable CompoundBinaryTag nbt);

  Object createSetSlotPacket(int windowID, int slot, VirtualItem item, int count, int data, @Nullable ItemComponentMap map);

  Object createTimeUpdatePacket(long worldAge, long timeOfDay);

  Object createUpdateViewPositionPacket(int posX, int posZ);

  Object createUpdateTagsPacket(WorldVersion version);

  Object createUpdateTagsPacket(ProtocolVersion version);

  Object createUpdateTagsPacket(Map<String, Map<String, List<Integer>>> tags);
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketMapping.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets;

import com.velocitypowered.api.network.ProtocolVersion;
import org.checkerframework.checker.nullness.qual.Nullable;

public class PacketMapping {

  private final int id;
  private final ProtocolVersion protocolVersion;
  @Nullable
  private final ProtocolVersion lastValidProtocolVersion;
  private final boolean encodeOnly;

  public PacketMapping(int id, ProtocolVersion protocolVersion, boolean encodeOnly) {
    this(id, protocolVersion, null, encodeOnly);
  }

  public PacketMapping(int id, ProtocolVersion protocolVersion, @Nullable ProtocolVersion lastValidProtocolVersion, boolean encodeOnly) {
    this.id = id;
    this.protocolVersion = protocolVersion;
    this.lastValidProtocolVersion = lastValidProtocolVersion;
    this.encodeOnly = encodeOnly;
  }

  public int getID() {
    return this.id;
  }

  public ProtocolVersion getProtocolVersion() {
    return this.protocolVersion;
  }

  @Nullable
  public ProtocolVersion getLastValidProtocolVersion() {
    return this.lastValidProtocolVersion;
  }

  public boolean isEncodeOnly() {
    return this.encodeOnly;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/AbilityFlags.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets.data;

/**
 * For PlayerAbilities packet.
 */
public class AbilityFlags {

  public static final int INVULNERABLE = 1;
  public static final int FLYING = 2;
  public static final int ALLOW_FLYING = 4;
  public static final int CREATIVE_MODE = 8;
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/BiomeData.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets.data;

import java.util.HashMap;
import java.util.Map;
import net.elytrium.limboapi.api.chunk.VirtualBiome;
import net.elytrium.limboapi.api.chunk.data.ChunkSnapshot;

/**
 * For ChunkData packet.
 */
public class BiomeData {

  private final int[] post115Biomes = new int[1024];
  private final byte[] pre115Biomes = new byte[256];

  public BiomeData(ChunkSnapshot chunk) {
    VirtualBiome[] biomes = chunk.getBiomes();
    for (int i = 0; i < biomes.length; ++i) {
      this.post115Biomes[i] = biomes[i].getID();
    }

    // Down sample 4x4x4 3D biomes to 2D XZ.
    Map<Integer, Integer> samples = new HashMap<>(64);
    for (int posX = 0; posX < 16; posX += 4) {
      for (int posZ = 0; posZ < 16; posZ += 4) {
        samples.clear();
        for (int posY = 0; posY < 256; posY += 16) {
          VirtualBiome biome = biomes[/*SimpleChunk.getBiomeIndex(posX, posY, posZ)*/(posY >> 2 & 63) << 4 | (posZ >> 2 & 3) << 2 | posX >> 2 & 3];
          samples.put(biome.getID(), samples.getOrDefault(biome.getID(), 0) + 1);
        }
        int id = samples.entrySet()
            .stream()
            .max(Map.Entry.comparingByValue())
            .orElseThrow()
            .getKey();
        for (int i = posX; i < posX + 4; ++i) {
          for (int j = posZ; j < posZ + 4; ++j) {
            this.pre115Biomes[(j << 4) + i] = (byte) id;
          }
        }
      }
    }
  }

  public int[] getPost115Biomes() {
    return this.post115Biomes;
  }

  public byte[] getPre115Biomes() {
    return this.pre115Biomes;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapData.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets.data;

/**
 * For MapData packet.
 */
public class MapData {

  public static final int MAP_DIM_SIZE = 128;
  public static final int MAP_SIZE = MAP_DIM_SIZE * MAP_DIM_SIZE; // 128² == 16384

  private final int columns;
  private final int rows;
  private final int posX;
  private final int posY;
  private final byte[] data;

  public MapData(byte[] data) {
    this(0, data);
  }

  public MapData(int posX, byte[] data) {
    this(MAP_DIM_SIZE, MAP_DIM_SIZE, posX, 0, data);
  }

  public MapData(int columns, int rows, int posX, int posY, byte[] data) {
    this.columns = columns;
    this.rows = rows;
    this.posX = posX;
    this.posY = posY;
    this.data = data;
  }

  public int getColumns() {
    return this.columns;
  }

  public int getRows() {
    return this.rows;
  }

  public int getX() {
    return this.posX;
  }

  public int getY() {
    return this.posY;
  }

  public byte[] getData() {
    return this.data;
  }

  @Override
  public String toString() {
    return "MapData{"
        + "columns=" + this.columns
        + ", rows=" + this.rows
        + ", posX=" + this.posX
        + ", posY=" + this.posY
        + "}";
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapPalette.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.protocol.packets.data;

import com.velocitypowered.api.network.ProtocolVersion;
import java.awt.image.BufferedImage;
import java.io.IOError;
import java.io.IOException;
import java.io.InputStream;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;

public class MapPalette {

  private static final Map<MapVersion, byte[]> REMAP_BUFFERS = new EnumMap<>(MapVersion.class);
  private static final byte[] MAIN_BUFFER = readBuffer("/mapping/colors_main_map");

  /**
   * @deprecated Use {@link java.awt.Color#WHITE} instead.
   */
  @Deprecated
  public static final byte WHITE = 34;
  public static final byte TRANSPARENT = 0;

  static {
    for (MapVersion version : MapVersion.values()) {
      REMAP_BUFFERS.put(version, readBuffer("/mapping/colors_" + version.toString().toLowerCase(Locale.ROOT) + "_map"));
    }
  }

  private static byte[] readBuffer(String filename) {
    try (InputStream stream = MapPalette.class.getResourceAsStream(filename)) {
      return Objects.requireNonNull(stream).readAllBytes();
    } catch (IOException e) {
      throw new IOError(e);
    }
  }

  /**
   * Convert an Image to a byte[] using the palette.
   * Uses reduced set of colors, to support more colors use {@link MapPalette#imageToBytes(BufferedImage, ProtocolVersion)}
   *
   * @param image The image to convert.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] imageToBytes(BufferedImage image) {
    return imageToBytes(image, ProtocolVersion.MINIMUM_VERSION);
  }

  /**
   * Convert an Image to a byte[] using the palette.
   *
   * @param image   The image to convert.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] imageToBytes(BufferedImage image, ProtocolVersion version) {
    int[] result = image.getRGB(0, 0, image.getWidth(), image.getHeight(), null, 0, image.getWidth());
    return imageToBytes(result, result, version);
  }

  /**
   * Convert an image to a byte[] using the palette.
   *
   * @param image   The image to convert.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] imageToBytes(int[] image, ProtocolVersion version) {
    return imageToBytes(image, new int[image.length], version);
  }

  /**
   * Convert an image to a byte[] using the palette.
   *
   * @param from    The image to convert.
   * @param to      Output image.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] imageToBytes(int[] from, int[] to, ProtocolVersion version) {
    for (int i = 0; i < from.length; ++i) {
      to[i] = tryFastMatchColor(from[i], version);
    }

    return to;
  }

  /**
   * Convert an image to a byte[] using the palette.
   *
   * @param from    The image to convert.
   * @param to      Output image.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static byte[] imageToBytes(int[] from, byte[] to, ProtocolVersion version) {
    for (int i = 0; i < from.length; ++i) {
      to[i] = tryFastMatchColor(from[i], version);
    }

    return to;
  }

  /**
   * Get the index of the closest matching color in the palette to the given
   * color. Uses caching and downscaling of color values.
   *
   * @param rgb The Color to match.
   *
   * @return The index in the palette.
   */
  public static byte tryFastMatchColor(int rgb, ProtocolVersion version) {
    if (getAlpha(rgb) < 128) {
      return TRANSPARENT;
    } else {
      MapVersion mapVersion = MapVersion.fromProtocolVersion(version);
      byte originalColorID = MAIN_BUFFER[rgb & 0xFFFFFF];
      if (mapVersion == MapVersion.MAXIMUM_VERSION) {
        return originalColorID;
      } else {
        return remapByte(REMAP_BUFFERS.get(mapVersion), originalColorID);
      }
    }
  }

  private static int getAlpha(int rgb) {
    return (rgb & 0xFF000000) >>> 24;
  }

  /**
   * Convert an image from MapVersion.MAXIMUM_VERSION to the desired version
   *
   * @param image   The image to convert.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] convertImage(int[] image, MapVersion version) {
    return convertImage(image, new int[image.length], version);
  }

  /**
   * Convert an image from MapVersion.MAXIMUM_VERSION to the desired version
   *
   * @param from    The image to convert.
   * @param to      Output image.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static int[] convertImage(int[] from, int[] to, MapVersion version) {
    byte[] remapBuffer = REMAP_BUFFERS.get(version);
    for (int i = 0; i < from.length; ++i) {
      to[i] = remapByte(remapBuffer, (byte) from[i]);
    }

    return to;
  }

  /**
   * Convert an image from MapVersion.MAXIMUM_VERSION to the desired version
   *
   * @param from    The image to convert.
   * @param to      Output image.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static byte[] convertImage(byte[] from, byte[] to, MapVersion version) {
    byte[] remapBuffer = REMAP_BUFFERS.get(version);
    for (int i = 0; i < from.length; ++i) {
      to[i] = remapByte(remapBuffer, from[i]);
    }

    return to;
  }

  /**
   * Convert an image from MapVersion.MAXIMUM_VERSION to the desired version
   *
   * @param from    The image to convert.
   * @param to      Output image.
   * @param version The ProtocolVersion to support more colors.
   *
   * @return A byte[] containing the pixels of the image.
   */
  public static byte[] convertImage(int[] from, byte[] to, MapVersion version) {
    byte[] remapBuffer = REMAP_BUFFERS.get(version);
    for (int i = 0; i < from.length; ++i) {
      to[i] = remapByte(remapBuffer, (byte) from[i]);
    }

    return to;
  }

  private static byte remapByte(byte[] remapBuffer, byte oldByte) {
    return remapBuffer[Byte.toUnsignedInt(oldByte)];
  }

  public enum MapVersion {

    MINIMUM_VERSION(EnumSet.range(ProtocolVersion.MINECRAFT_1_7_2, ProtocolVersion.MINECRAFT_1_7_6)),
    MINECRAFT_1_8(EnumSet.range(ProtocolVersion.MINECRAFT_1_8, ProtocolVersion.MINECRAFT_1_11_1)),
    MINECRAFT_1_12(EnumSet.range(ProtocolVersion.MINECRAFT_1_12, ProtocolVersion.MINECRAFT_1_15_2)),
    MINECRAFT_1_16(EnumSet.range(ProtocolVersion.MINECRAFT_1_16, ProtocolVersion.MINECRAFT_1_16_4)),
    MINECRAFT_1_17(EnumSet.range(ProtocolVersion.MINECRAFT_1_17, ProtocolVersion.MAXIMUM_VERSION));

    private static final EnumMap<ProtocolVersion, MapVersion> VERSIONS_MAP = new EnumMap<>(ProtocolVersion.class);

    public static final MapVersion MAXIMUM_VERSION = MINECRAFT_1_17;

    private final EnumSet<ProtocolVersion> versions;

    MapVersion(EnumSet<ProtocolVersion> versions) {
      this.versions = versions;
    }

    public EnumSet<ProtocolVersion> getVersions() {
      return this.versions;
    }

    static {
      for (MapVersion value : MapVersion.values()) {
        value.versions.forEach(version -> VERSIONS_MAP.put(version, value));
      }
    }

    public static MapVersion fromProtocolVersion(ProtocolVersion version) {
      return VERSIONS_MAP.get(version);
    }
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/utils/EnumUniverse.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.utils;

import java.util.HashMap;
import java.util.Map;

public final class EnumUniverse {

  private EnumUniverse() {

  }

  public static <T extends Enum<T>> Map<String, T> createProtocolLookup(T[] values) {
    Map<String, T> lookup = new HashMap<>();
    for (T value : values) {
      if (value.name().startsWith("MINECRAFT_")) {
        lookup.put(value.name().substring("MINECRAFT_".length()).replace("_", "."), value);
      }
    }
    return lookup;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/utils/OverlayMap.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.utils;

import java.util.Map;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public abstract class OverlayMap<K, V> implements Map<K, V> {

  protected boolean override = false;
  protected final Map<K, V> parent;
  protected final Map<K, V> overlay;

  public OverlayMap(Map<K, V> parent, Map<K, V> overlay) {
    this.parent = parent;
    this.overlay = overlay;
  }

  @Override
  public int size() {
    return this.parent.size() + this.overlay.size();
  }

  @Override
  public boolean isEmpty() {
    return this.parent.isEmpty() && this.overlay.isEmpty();
  }

  @Override
  public boolean containsKey(Object o) {
    if (this.override) {
      return this.overlay.containsKey(o);
    }

    return this.parent.containsKey(o) || this.overlay.containsKey(o);
  }

  @Override
  public boolean containsValue(Object o) {
    if (this.override) {
      return this.overlay.containsValue(o);
    }

    return this.parent.containsValue(o) || this.overlay.containsValue(o);
  }

  @Override
  @SuppressWarnings("SuspiciousMethodCalls")
  public V get(Object o) {
    if (this.overlay.containsKey(o)) {
      return this.overlay.get(o);
    }

    return this.parent.get(o);
  }

  @Nullable
  @Override
  public V put(K k, V v) {
    return this.overlay.put(k, v);
  }

  @Override
  public V remove(Object o) {
    return this.overlay.remove(o);
  }

  @Override
  public void putAll(@NotNull Map<? extends K, ? extends V> map) {
    this.overlay.putAll(map);
  }

  @Override
  public void clear() {
    this.overlay.clear();
  }

  public boolean isOverride() {
    return this.override;
  }

  public void setOverride(boolean override) {
    this.override = override;
  }
}


================================================
FILE: api/src/main/java/net/elytrium/limboapi/api/utils/OverlayVanillaMap.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi.api.utils;

import com.google.common.collect.Streams;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors;
import org.jetbrains.annotations.NotNull;

public class OverlayVanillaMap<K, V> extends OverlayMap<K, V> {

  public OverlayVanillaMap(Map<K, V> parent, Map<K, V> overlay) {
    super(parent, overlay);
  }

  @Override
  public Set<K> keySet() {
    return Streams.concat(this.parent.keySet().stream(), this.overlay.keySet().stream()).collect(Collectors.toSet());
  }

  @NotNull
  @Override
  public Collection<V> values() {
    return Streams.concat(this.parent.values().stream(), this.overlay.values().stream()).collect(Collectors.toList());
  }

  @NotNull
  @Override
  public Set<Entry<K, V>> entrySet() {
    return Streams.concat(this.parent.entrySet().stream(), this.overlay.entrySet().stream()).collect(Collectors.toSet());
  }
}


================================================
FILE: api/src/main/templates/net/elytrium/limboapi/BuildConstants.java
================================================
/*
 * Copyright (C) 2021 - 2025 Elytrium
 *
 * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in the api top-level directory.
 */

package net.elytrium.limboapi;

// The constants are replaced before compilation.
public class BuildConstants {

  public static final String LIMBO_VERSION = "${version}";
}


================================================
FILE: build.gradle.kts
================================================
import com.github.spotbugs.snom.SpotBugsExtension
import com.github.spotbugs.snom.SpotBugsTask

plugins {
    java
    checkstyle
    alias(libs.plugins.gradle.spotbugs) apply false
    alias(libs.plugins.gradle.licenser) apply false
}

allprojects {
    apply(plugin = "checkstyle")
    apply(plugin = "com.github.spotbugs")
    apply(plugin = "net.minecraftforge.licenser")

    group = "net.elytrium.limboapi"
    version = "1.1.27-SNAPSHOT"

    tasks.withType<JavaCompile> {
        sourceCompatibility = JavaVersion.VERSION_21.toString()
        targetCompatibility = JavaVersion.VERSION_21.toString()
    }

    checkstyle {
        toolVersion = "10.12.1"
        configFile = file("$rootDir/config/checkstyle/checkstyle.xml")
        configProperties = mapOf("configDirectory" to "$rootDir/config/checkstyle")
        maxErrors = 0
        maxWarnings = 0
    }

    extensions.configure<SpotBugsExtension> {
        excludeFilter.set(file("${rootDir}/config/spotbugs/suppressions.xml"))
    }

    tasks.withType<SpotBugsTask>() {
        reports.create("html") {
            required.set(true)
            outputLocation.set(layout.buildDirectory.file("reports/spotbugs/main/spotbugs.html"))
            setStylesheet("fancy-hist.xsl")
        }
    }
}

fun getCurrentShortRevision(): String {
    val isWindows = System.getProperty("os.name")
        .lowercase()
        .contains("win")

    val process = if (isWindows) {
        ProcessBuilder("cmd", "/c", "git rev-parse --short HEAD")
    } else {
        ProcessBuilder("bash", "-c", "git rev-parse --short HEAD")
    }
    return process
        .start()
        .inputStream
        .bufferedReader()
        .readText()
        .trim()
}

// Make the function available to subprojects via extra properties
extra["getCurrentShortRevision"] = ::getCurrentShortRevision


================================================
FILE: config/checkstyle/checkstyle.xml
================================================
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
        "https://checkstyle.org/dtds/configuration_1_3.dtd">

<!--
    Checkstyle configuration that checks the Google coding conventions from Google Java Style
    that can be found at https://google.github.io/styleguide/javaguide.html
    Checkstyle is very configurable. Be sure to read the documentation at
    http://checkstyle.org (or in your downloaded distribution).
    To completely disable a check, just comment it out or delete it from the file.
    To suppress certain violations please review suppression filters.
    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
 -->

<module name="Checker">
    <property name="charset" value="UTF-8"/>

    <property name="severity" value="warning"/>

    <property name="fileExtensions" value="java, properties, xml"/>
    <!-- Excludes all 'module-info.java' files              -->
    <!-- See https://checkstyle.org/config_filefilters.html -->
    <module name="BeforeExecutionExclusionFileFilter">
        <property name="fileNamePattern" value="module\-info\.java$"/>
    </module>
    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
    <module name="SuppressionFilter">
        <property name="file" value="${configDirectory}/suppressions.xml"/>
    </module>

    <!-- Checks for whitespace                               -->
    <!-- See http://checkstyle.org/config_whitespace.html -->
    <module name="FileTabCharacter">
        <property name="eachLine" value="true"/>
    </module>

    <module name="LineLength">
        <property name="fileExtensions" value="java"/>
        <property name="max" value="155"/>
        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
    </module>

    <module name="NewlineAtEndOfFile"/>

    <module name="TreeWalker">
        <module name="MissingOverride"/>
        <module name="RedundantImport"/>
        <module name="UnusedImports"/>
        <module name="RequireThis">
            <property name="validateOnlyOverlapping" value="false"/>
        </module>

        <module name="OuterTypeFilename"/>
        <module name="IllegalTokenText">
            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
            <property name="format"
                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
            <property name="message"
                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
        </module>
        <module name="AvoidEscapedUnicodeCharacters">
            <property name="allowEscapesForControlCharacters" value="true"/>
            <property name="allowByTailComment" value="true"/>
            <property name="allowNonPrintableEscapes" value="true"/>
        </module>
        <module name="AvoidStarImport"/>
        <module name="OneTopLevelClass"/>
        <module name="NoLineWrap">
            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
        </module>
        <module name="EmptyBlock">
            <property name="option" value="TEXT"/>
            <property name="tokens"
                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
        </module>
        <module name="NeedBraces">
            <property name="tokens"
                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
        </module>
        <module name="LeftCurly">
            <property name="tokens"
                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
        </module>
        <module name="RightCurly">
            <property name="id" value="RightCurlySame"/>
            <property name="tokens"
                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
                    LITERAL_DO"/>
        </module>
        <module name="RightCurly">
            <property name="id" value="RightCurlyAlone"/>
            <property name="option" value="alone"/>
            <property name="tokens"
                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
                    COMPACT_CTOR_DEF"/>
        </module>
        <module name="SuppressionXpathSingleFilter">
            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
            <property name="id" value="RightCurlyAlone"/>
            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
        </module>
        <module name="WhitespaceAfter">
            <property name="tokens"
                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE"/>
        </module>
        <module name="WhitespaceAround">
            <property name="allowEmptyConstructors" value="true"/>
            <property name="allowEmptyLambdas" value="true"/>
            <property name="allowEmptyMethods" value="true"/>
            <property name="allowEmptyTypes" value="true"/>
            <property name="allowEmptyLoops" value="true"/>
            <property name="ignoreEnhancedForColon" value="false"/>
            <property name="tokens"
                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
            <message key="ws.notFollowed"
                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
            <message key="ws.notPreceded"
                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
        </module>
        <module name="OneStatementPerLine"/>
        <module name="MultipleVariableDeclarations"/>
        <module name="ArrayTypeStyle"/>
        <module name="MissingSwitchDefault"/>
        <module name="FallThrough"/>
        <module name="UpperEll"/>
        <module name="ModifierOrder"/>
        <module name="EmptyLineSeparator">
            <property name="tokens"
                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
                    COMPACT_CTOR_DEF"/>
            <property name="allowNoEmptyLineBetweenFields" value="true"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapDot"/>
            <property name="tokens" value="DOT"/>
            <property name="option" value="nl"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapComma"/>
            <property name="tokens" value="COMMA"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
            <property name="id" value="SeparatorWrapEllipsis"/>
            <property name="tokens" value="ELLIPSIS"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
            <property name="id" value="SeparatorWrapArrayDeclarator"/>
            <property name="tokens" value="ARRAY_DECLARATOR"/>
            <property name="option" value="EOL"/>
        </module>
        <module name="SeparatorWrap">
            <property name="id" value="SeparatorWrapMethodRef"/>
            <property name="tokens" value="METHOD_REF"/>
            <property name="option" value="nl"/>
        </module>
        <module name="PackageName">
            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
            <message key="name.invalidPattern"
                     value="Package name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="TypeName">
            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
                    ANNOTATION_DEF, RECORD_DEF"/>
            <message key="name.invalidPattern"
                     value="Type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="MemberName">
            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
            <message key="name.invalidPattern"
                     value="Member name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="ParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="LambdaParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="CatchParameterName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="LocalVariableName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="PatternVariableName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="ClassTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="RecordComponentName">
            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
            <message key="name.invalidPattern"
                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="RecordTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="MethodTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="InterfaceTypeParameterName">
            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
            <message key="name.invalidPattern"
                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="NoFinalizer"/>
        <module name="GenericWhitespace">
            <message key="ws.followed"
                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
            <message key="ws.preceded"
                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
            <message key="ws.illegalFollow"
                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
            <message key="ws.notPreceded"
                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
        </module>
        <module name="Indentation">
            <property name="basicOffset" value="2"/>
            <property name="braceAdjustment" value="2"/>
            <property name="caseIndent" value="2"/>
            <property name="throwsIndent" value="4"/>
            <property name="lineWrappingIndentation" value="4"/>
            <property name="arrayInitIndent" value="2"/>
        </module>
        <module name="AbbreviationAsWordInName">
            <property name="ignoreFinal" value="false"/>
            <property name="allowedAbbreviationLength" value="2"/>
            <property name="tokens"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
                    RECORD_COMPONENT_DEF"/>
        </module>
        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
        <module name="OverloadMethodsDeclarationOrder"/>
        <module name="VariableDeclarationUsageDistance"/>
        <module name="CustomImportOrder">
            <property name="sortImportsInGroupAlphabetically" value="true"/>
            <property name="separateLineBetweenGroups" value="true"/>
            <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
            <property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
        </module>
        <module name="MethodParamPad">
            <property name="tokens"
                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
        </module>
        <module name="NoWhitespaceBefore">
            <property name="tokens"
                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
                    LABELED_STAT, METHOD_REF"/>
            <property name="allowLineBreaks" value="true"/>
        </module>
        <module name="ParenPad">
            <property name="tokens"
                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
                    RECORD_DEF"/>
        </module>
        <module name="OperatorWrap">
            <property name="option" value="NL"/>
            <property name="tokens"
                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
                    TYPE_EXTENSION_AND "/>
        </module>
        <module name="AnnotationLocation">
            <property name="id" value="AnnotationLocationMostCases"/>
            <property name="tokens"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
                      RECORD_DEF, COMPACT_CTOR_DEF"/>
        </module>
        <module name="AnnotationLocation">
            <property name="id" value="AnnotationLocationVariables"/>
            <property name="tokens" value="VARIABLE_DEF"/>
            <property name="allowSamelineMultipleAnnotations" value="true"/>
        </module>
        <module name="NonEmptyAtclauseDescription"/>
        <module name="InvalidJavadocPosition"/>
        <module name="JavadocTagContinuationIndentation"/>
        <module name="SummaryJavadoc">
            <property name="forbiddenSummaryFragments"
                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
        </module>
        <module name="JavadocParagraph"/>
        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
        <module name="AtclauseOrder">
            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
            <property name="target"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
        </module>
        <module name="JavadocMethod">
            <property name="accessModifiers" value="public"/>
            <property name="allowMissingParamTags" value="true"/>
            <property name="allowMissingReturnTag" value="true"/>
            <property name="allowedAnnotations" value="Override, Test"/>
            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
        </module>
        <module name="MissingJavadocMethod">
            <property name="scope" value="public"/>
            <property name="minLineCount" value="2"/>
            <property name="allowedAnnotations" value="Override, Test"/>
            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
                                   COMPACT_CTOR_DEF"/>
        </module>
        <module name="MissingJavadocType">
            <property name="scope" value="protected"/>
            <property name="tokens"
                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
                      RECORD_DEF, ANNOTATION_DEF"/>
            <property name="excludeScope" value="nothing"/>
        </module>
        <module name="MethodName">
            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
            <message key="name.invalidPattern"
                     value="Method name ''{0}'' must match pattern ''{1}''."/>
        </module>
        <module name="SingleLineJavadoc"/>
        <module name="EmptyCatchBlock">
            <property name="exceptionVariableName" value="expected"/>
        </module>
        <module name="CommentsIndentation">
            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
        </module>
        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
        <module name="SuppressionXpathFilter">
            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
                      default="checkstyle-xpath-suppressions.xml"/>
            <property name="optional" value="true"/>
        </module>
    </module>
</module>


================================================
FILE: config/checkstyle/suppressions.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suppressions PUBLIC
        "-//Checkstyle//DTD SuppressionFilter Configuration 1.2//EN"
        "http://checkstyle.org/dtds/suppressions_1_2.dtd">

<suppressions>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*" checks="SummaryJavadoc"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*" checks="MissingJavadocType"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*" checks="MissingJavadocMethod"/>

    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*[\\/]Settings.java" checks="TypeName"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*[\\/]Settings.java" checks="LineLength"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*[\\/]Settings.java" checks="MemberName"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*[\\/]Settings.java" checks="RequireThis"/>
    <suppress files=".*[\\/]net[\\/]elytrium[\\/].*[\\/]Settings.java" checks="AbbreviationAsWordInName"/>

    <suppress files=".*[\\/]net[\\/]elytrium[\\/]limboapi[\\/]server[\\/]LimboPlayerImpl.java" checks="Indentation"/>
</suppressions>


================================================
FILE: config/spotbugs/suppressions.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>

<FindBugsFilter>
    <Match>
        <Bug pattern="EI_EXPOSE_REP"/>
    </Match>
    <Match>
        <Bug pattern="EI_EXPOSE_REP2"/>
    </Match>
    <Match>
        <Bug pattern="THROWS_METHOD_THROWS_CLAUSE_BASIC_EXCEPTION"/>
    </Match>
    <Match>
        <Bug pattern="THROWS_METHOD_THROWS_CLAUSE_THROWABLE"/>
    </Match>
    <Match>
        <Bug pattern="CT_CONSTRUCTOR_THROW"/>
    </Match>
    <Match>
        <Bug pattern="AT_STALE_THREAD_WRITE_OF_PRIMITIVE"/>
    </Match>
</FindBugsFilter>


================================================
FILE: gradle/libs.versions.toml
================================================
[versions]
elytrium-commons = "1.2.3" # https://github.com/Elytrium/elytrium-java-commons
elytrium-fastprepare = "1.0.13" #https://github.com/Elytrium/FastPrepareAPI
gradle-licenser = "1.2.0" # https://github.com/CadixDev/licenser
gradle-shadow = "9.4.0" # https://github.com/GradleUp/shadow
gradle-spotbugs = "6.4.8" # https://github.com/spotbugs/spotbugs-gradle-plugin
minecraft-adventure = "4.15.0" # https://github.com/KyoriPowered/adventure
minecraft-bstats = "3.0.0" # https://github.com/Bastian/bStats
minecraft-velocity = "3.5.0-SNAPSHOT" # https://github.com/PaperMC/Velocity
tool-commons-io = "2.6" # https://github.com/apache/commons-io
tool-fastutil = "8.5.11" # https://github.com/vigna/fastutil/
tool-google-guava = "28.0-jre" # https://github.com/google/guava
tool-netty = "4.1.86.Final" # https://github.com/netty/netty
tool-spotbugs-annotations = "4.7.3" # https://github.com/spotbugs/spotbugs

[libraries]
elytrium-commons-config = { module = "net.elytrium.commons:config", version.ref = "elytrium-commons" }
elytrium-commons-kyori = { module = "net.elytrium.commons:kyori", version.ref = "elytrium-commons" }
elytrium-commons-utils = { module = "net.elytrium.commons:utils", version.ref = "elytrium-commons" }
elytrium-commons-velocity = { module = "net.elytrium.commons:velocity", version.ref = "elytrium-commons" }
elytrium-fastprepare = { module = "net.elytrium:fastprepare", version.ref = "elytrium-fastprepare" }
minecraft-adventure-nbt = { module = "net.kyori:adventure-nbt", version.ref = "minecraft-adventure" }
minecraft-bstats-velocity = { module = "org.bstats:bstats-velocity", version.ref = "minecraft-bstats" }
minecraft-velocity-api = { module = "com.velocitypowered:velocity-api", version.ref = "minecraft-velocity" }
minecraft-velocity-native = { module = "com.velocitypowered:velocity-native", version.ref = "minecraft-velocity" }
minecraft-velocity-proxy = { module = "com.velocitypowered:velocity-proxy", version.ref = "minecraft-velocity" }
tool-commons-io = { module = "commons-io:commons-io", version.ref = "tool-commons-io" }
tool-fastutil = { module = "it.unimi.dsi:fastutil-core", version.ref = "tool-fastutil" }
tool-google-guava = { module = "com.google.guava:guava", version.ref = "tool-google-guava" }
tool-netty-codec = { module = "io.netty:netty-codec", version.ref = "tool-netty" }
tool-netty-handler = { module = "io.netty:netty-handler", version.ref = "tool-netty" }
tool-spotbugs-annotations = { module = "com.github.spotbugs:spotbugs-annotations", version.ref = "tool-spotbugs-annotations" }

[plugins]
gradle-licenser = { id = "net.minecraftforge.licenser", version.ref = "gradle-licenser" }
gradle-shadow = { id = "com.gradleup.shadow", version.ref = "gradle-shadow" }
gradle-spotbugs = { id = "com.github.spotbugs", version.ref = "gradle-spotbugs" }


================================================
FILE: gradle/wrapper/gradle-wrapper.properties
================================================
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists


================================================
FILE: gradle.properties
================================================
org.gradle.jvmargs=-Xmx4096m
manifestUrl=https://launchermeta.mojang.com/mc/game/version_manifest.json

# 1 week
cacheValidMillis=604800000

# Change to invalidate mappings cache on CI
gameVersion=26.1

================================================
FILE: gradlew
================================================
#!/bin/sh

#
# Copyright © 2015-2021 the original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

##############################################################################
#
#   Gradle start up script for POSIX generated by Gradle.
#
#   Important for running:
#
#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
#       noncompliant, but you have some other compliant shell such as ksh or
#       bash, then to run this script, type that shell name before the whole
#       command line, like:
#
#           ksh Gradle
#
#       Busybox and similar reduced shells will NOT work, because this script
#       requires all of these POSIX shell features:
#         * functions;
#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;
#         * compound commands having a testable exit status, especially «case»;
#         * various built-in commands including «command», «set», and «ulimit».
#
#   Important for patching:
#
#   (2) This script targets any POSIX shell, so it avoids extensions provided
#       by Bash, Ksh, etc; in particular arrays are avoided.
#
#       The "traditional" practice of packing multiple parameters into a
#       space-separated string is a well documented source of bugs and security
#       problems, so this is (mostly) avoided, by progressively accumulating
#       options in "$@", and eventually passing that to Java.
#
#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
#       see the in-line comments for details.
#
#       There are tweaks for specific operating systems such as AIX, CygWin,
#       Darwin, MinGW, and NonStop.
#
#   (3) This script is generated from the Groovy template
#       https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
#       within the Gradle project.
#
#       You can find Gradle at https://github.com/gradle/gradle/.
#
##############################################################################

# Attempt to set APP_HOME

# Resolve links: $0 may be a link
app_path=$0

# Need this for daisy-chained symlinks.
while
    APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
    [ -h "$app_path" ]
do
    ls=$( ls -ld "$app_path" )
    link=${ls#*' -> '}
    case $link in             #(
      /*)   app_path=$link ;; #(
      *)    app_path=$APP_HOME$link ;;
    esac
done

APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

APP_NAME="Gradle"
APP_BASE_NAME=${0##*/}

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

warn () {
    echo "$*"
} >&2

die () {
    echo
    echo "$*"
    echo
    exit 1
} >&2

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "$( uname )" in                #(
  CYGWIN* )         cygwin=true  ;; #(
  Darwin* )         darwin=true  ;; #(
  MSYS* | MINGW* )  msys=true    ;; #(
  NONSTOP* )        nonstop=true ;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
        # IBM's JDK on AIX uses strange locations for the executables
        JAVACMD=$JAVA_HOME/jre/sh/java
    else
        JAVACMD=$JAVA_HOME/bin/java
    fi
    if [ ! -x "$JAVACMD" ] ; then
        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
    fi
else
    JAVACMD=java
    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
    case $MAX_FD in #(
      max*)
        MAX_FD=$( ulimit -H -n ) ||
            warn "Could not query maximum file descriptor limit"
    esac
    case $MAX_FD in  #(
      '' | soft) :;; #(
      *)
        ulimit -n "$MAX_FD" ||
            warn "Could not set maximum file descriptor limit to $MAX_FD"
    esac
fi

# Collect all arguments for the java command, stacking in reverse order:
#   * args from the command line
#   * the main class name
#   * -classpath
#   * -D...appname settings
#   * --module-path (only if needed)
#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.

# For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then
    APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
    CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )

    JAVACMD=$( cygpath --unix "$JAVACMD" )

    # Now convert the arguments - kludge to limit ourselves to /bin/sh
    for arg do
        if
            case $arg in                                #(
              -*)   false ;;                            # don't mess with options #(
              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath
                    [ -e "$t" ] ;;                      #(
              *)    false ;;
            esac
        then
            arg=$( cygpath --path --ignore --mixed "$arg" )
        fi
        # Roll the args list around exactly as many times as the number of
        # args, so each arg winds up back in the position where it started, but
        # possibly modified.
        #
        # NB: a `for` loop captures its iteration list before it begins, so
        # changing the positional parameters here affects neither the number of
        # iterations, nor the values presented in `arg`.
        shift                   # remove old arg
        set -- "$@" "$arg"      # push replacement arg
    done
fi

# Collect all arguments for the java command;
#   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
#     shell script including quotes and variable substitutions, so put them in
#     double quotes to make sure that they get re-expanded; and
#   * put everything else in single quotes, so that it's not re-expanded.

set -- \
        "-Dorg.gradle.appname=$APP_BASE_NAME" \
        -classpath "$CLASSPATH" \
        org.gradle.wrapper.GradleWrapperMain \
        "$@"

# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
#
# In Bash we could simply go:
#
#   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
#   set -- "${ARGS[@]}" "$@"
#
# but POSIX shell has neither arrays nor command substitution, so instead we
# post-process each arg (as a line of input to sed) to backslash-escape any
# character that might be a shell metacharacter, then use eval to reverse
# that process (while maintaining the separation between arguments), and wrap
# the whole thing up as a single "set" statement.
#
# This will of course break if any of these variables contains a newline or
# an unmatched quote.
#

eval "set -- $(
        printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
        xargs -n1 |
        sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
        tr '\n' ' '
    )" '"$@"'

exec "$JAVACMD" "$@"


================================================
FILE: gradlew.bat
================================================
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem      https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega


================================================
FILE: plugin/build.gradle
================================================
//file:noinspection GroovyAssignabilityCheck

buildscript() {
  dependencies() {
    classpath(libs.tool.commons.io)
    classpath(libs.tool.google.guava)
  }
}

plugins() {
  id("java")
  alias(libs.plugins.gradle.shadow)
}

compileJava() {
  getOptions().getRelease().set(21)
  getOptions().setEncoding("UTF-8")
}

dependencies() {
  implementation(project(":api"))
  implementation(libs.elytrium.commons.config)
  implementation(libs.elytrium.commons.utils)
  implementation(libs.elytrium.commons.velocity)
  implementation(libs.elytrium.commons.kyori)

  implementation(libs.elytrium.fastprepare)
  compileOnly(libs.minecraft.velocity.api)
  annotationProcessor(libs.minecraft.velocity.api)
  compileOnly(libs.minecraft.velocity.proxy) // From Elytrium Repo.
  compileOnly(libs.minecraft.velocity.native)

  // Needs for some velocity methods.
  compileOnly(libs.tool.netty.codec)
  compileOnly(libs.tool.netty.handler)
  compileOnly(libs.tool.fastutil)

  implementation(libs.minecraft.bstats.velocity)

  compileOnly(libs.tool.spotbugs.annotations)
}

shadowJar() {
  getArchiveClassifier().set("")
  setArchiveFileName("limboapi-${project.version}.jar")

  exclude("META-INF/versions/**")
  exclude("net/kyori/**")

  relocate("org.bstats", "net.elytrium.limboapi.thirdparty.org.bstats")
  relocate("net.elytrium.fastprepare", "net.elytrium.limboapi.thirdparty.fastprepare")
  relocate("net.elytrium.commons.velocity", "net.elytrium.limboapi.thirdparty.commons.velocity")
  relocate("net.elytrium.commons.kyori", "net.elytrium.limboapi.thirdparty.commons.kyori")
  relocate("net.elytrium.commons.config", "net.elytrium.limboapi.thirdparty.commons.config")
}

license() {
  matching("**/mcprotocollib/**") {
    header = rootProject.file("HEADER_MCPROTOCOLLIB.txt")
  }

  matching("**/LoginListener.java") {
    header = rootProject.file("HEADER_MIXED.txt")
  }

  matching("**/KickListener.java") {
    header = rootProject.file("HEADER_MIXED.txt")
  }

  matching("**/LoginTasksQueue.java") {
    header = rootProject.file("HEADER_MIXED.txt")
  }

  matching("**/MinecraftLimitedCompressDecoder.java") {
    header = rootProject.file("HEADER_MIXED.txt")
  }

  header = rootProject.file("HEADER.txt")
}

tasks.register("finalize") {
  doLast {
    file("build/libs/${project.name}-${project.version}.jar").delete()
  }
}

assemble.dependsOn(shadowJar)
build.finalizedBy(finalize)

import groovy.io.FileType
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
import org.apache.commons.io.FilenameUtils
import org.apache.commons.io.FileUtils
import com.google.common.hash.Hashing
import com.google.common.io.Files

import java.nio.file.Path
import java.util.function.Function
import java.util.stream.Collectors

enum MinecraftVersion {
  MINECRAFT_1_7_2(4),
  MINECRAFT_1_7_6(5),
  MINECRAFT_1_8(47),
  MINECRAFT_1_9(107),
  MINECRAFT_1_9_1(108),
  MINECRAFT_1_9_2(109),
  MINECRAFT_1_9_4(110),
  MINECRAFT_1_10(210),
  MINECRAFT_1_11(315),
  MINECRAFT_1_11_1(316),
  MINECRAFT_1_12(335),
  MINECRAFT_1_12_1(338),
  MINECRAFT_1_12_2(340),
  MINECRAFT_1_13(393),
  MINECRAFT_1_13_1(401),
  MINECRAFT_1_13_2(404),
  MINECRAFT_1_14(477),
  MINECRAFT_1_14_1(480),
  MINECRAFT_1_14_2(485),
  MINECRAFT_1_14_3(490),
  MINECRAFT_1_14_4(498),
  MINECRAFT_1_15(573),
  MINECRAFT_1_15_1(575),
  MINECRAFT_1_15_2(578),
  MINECRAFT_1_16(735),
  MINECRAFT_1_16_1(736),
  MINECRAFT_1_16_2(751),
  MINECRAFT_1_16_3(753),
  MINECRAFT_1_16_4(754),
  MINECRAFT_1_17(755),
  MINECRAFT_1_17_1(756),
  MINECRAFT_1_18(757),
  MINECRAFT_1_18_2(758),
  MINECRAFT_1_19(759),
  MINECRAFT_1_19_1(760),
  MINECRAFT_1_19_3(761),
  MINECRAFT_1_19_4(762),
  MINECRAFT_1_20(763),
  MINECRAFT_1_20_2(764),
  MINECRAFT_1_20_3(765),
  MINECRAFT_1_20_5(766),
  MINECRAFT_1_21(767),
  MINECRAFT_1_21_2(768),
  MINECRAFT_1_21_4(769),
  MINECRAFT_1_21_5(770),
  MINECRAFT_1_21_6(771),
  MINECRAFT_1_21_7(772),
  MINECRAFT_1_21_9(773),
  MINECRAFT_1_21_11(774),
  MINECRAFT_26_1(774)

  public static final List<MinecraftVersion> WORLD_VERSIONS = List.of(
    MINECRAFT_1_13,
    MINECRAFT_1_13_2,
    MINECRAFT_1_14,
    MINECRAFT_1_15,
    MINECRAFT_1_16,
    MINECRAFT_1_16_2,
    MINECRAFT_1_17,
    MINECRAFT_1_19,
    MINECRAFT_1_19_3,
    MINECRAFT_1_19_4,
    MINECRAFT_1_20,
    MINECRAFT_1_20_3,
    MINECRAFT_1_20_5,
    MINECRAFT_1_21_2,
    MINECRAFT_1_21_4,
    MINECRAFT_1_21_5,
    MINECRAFT_1_21_6,
    MINECRAFT_1_21_7,
    MINECRAFT_1_21_9,
    MINECRAFT_1_21_11,
    MINECRAFT_26_1
  )

  public static final MinecraftVersion MINIMUM_VERSION = MINECRAFT_1_7_2
  public static final MinecraftVersion MAXIMUM_VERSION = values()[values().length - 1]

  static MinecraftVersion fromVersionName(String name) {
    return valueOf("MINECRAFT_" + name.replace('.', '_'))
  }

  // Cache version name to reduce memory usage in general
  final String versionName = this.toString().substring(10).replace('_', '.')
  final int protocolVersion

  MinecraftVersion(int protocolVersion) {
    this.protocolVersion = protocolVersion
  }

  int getProtocolVersion() {
    return this.protocolVersion
  }

  String getVersionName() {
    return this.versionName
  }
}

project.ext.dataDirectory = new File(this.getLayout().getBuildDirectory().get().getAsFile(), "minecraft")
project.ext.generatedDir = new File(this.getLayout().getBuildDirectory().get().getAsFile(), "generated/minecraft")
project.ext.versionManifestFile = new File(dataDirectory, "manifest.json")

sourceSets {
  main {
    resources {
      srcDirs += generatedDir
    }
  }
}

tasks.register("downloadManifest") {
  this.println("> Downloading version manifest...")
  versionManifestFile.getParentFile().mkdirs()
  if (checkIsCacheValid(versionManifestFile)) {
    FileUtils.copyURLToFile(new URL(manifestUrl), versionManifestFile)
  }
}

boolean checkIsCacheValid(File file) {
  if (file.exists() && System.currentTimeMillis() - file.lastModified() < Long.parseLong(cacheValidMillis)) {
    println("> Found cached " + file.getName())
    return false
  }

  return true
}
File downloadVersionManifest(String version) {
  this.println("> Downloading ${version} manifest...")

  Object manifest = new JsonSlurper().parse(versionManifestFile)
  def optional = manifest.versions.stream().filter({ it.id == version }).findFirst()
  if (optional.empty()) {
    throw new RuntimeException("Couldn't find version: ${version}")
  }

  File output = new File(dataDirectory, "${version}/manifest.json")
  output.getParentFile().mkdirs()
  FileUtils.copyURLToFile(new URL(optional.get().url), output)
  return output
}

@SuppressWarnings('GrMethodMayBeStatic')
File getGeneratedCache(MinecraftVersion version) {
  File generated = new File(dataDirectory, "${version.getVersionName()}/generated")
  return new File(generated, "reports/blocks.json").exists()
          && new File(generated, "reports/${version >= MinecraftVersion.MINECRAFT_1_14 ? "registries" : "items"}.json").exists()
          && new File(generated, "data/minecraft/tags").exists()
          ? generated : null
}

static boolean validateServer(File file, String expected) {
  if (file == null || !file.exists()) {
    return false
  }

  def hash = Files.asByteSource(file).hash(Hashing.sha1())
  StringBuilder hashBuilder = new StringBuilder()
  hash.asBytes().each({hashBuilder.append(Integer.toString((it & 0xFF) + 0x100, 16).substring(1))})
  return hashBuilder.toString() == expected
}

File getServerJar(String version) {
  File manifestFile = this.downloadVersionManifest(version)
  Object manifest = new JsonSlurper().parse(manifestFile)

  File jarFile = new File(dataDirectory, "${version}/server.jar")
  if (!validateServer(jarFile, manifest.downloads.server.sha1)) {
    this.println("> Downloading ${version} server...")
    jarFile.getParentFile().mkdirs()
    FileUtils.copyURLToFile(new URL(manifest.downloads.server.url), jarFile)
  }

  return jarFile
}

File generateData(MinecraftVersion version) {
  File cache = getGeneratedCache(version)
  if (cache != null) {
    return cache
  }

  File jarFile = this.getServerJar(version.getVersionName())
  File parent = jarFile.getParentFile()
  File targetDir = new File(parent, "generated")

  try {
    FileUtils.deleteDirectory(targetDir)
  } catch (IOException ignored) {
    // Ignored.
  }

  String command
  if (version >= MinecraftVersion.MINECRAFT_1_18) {
    command = "\"%s\" -DbundlerMainClass=net.minecraft.data.Main -jar \"${jarFile.getAbsolutePath()}\" --reports --server"
  } else {
    command = "\"%s\" -cp \"${jarFile.getAbsolutePath()}\" net.minecraft.data.Main --reports --server"
  }

  List<String> commandLine;
  if (System.getProperty("os.name").toLowerCase().contains("win")) {
    File java = new File(System.getProperty("java.home"), "bin/java.exe")
    commandLine = ["cmd", "/c", String.format(command, java)]
  } else {
    File java = new File(System.getProperty("java.home"), "bin/java")
    commandLine = ["bash", "-c", String.format(command, java)]
  }
  commandLine.execute([], parent).waitFor()

  // Remove/compact files, reduces disk usage from ~2.9gb to ~92mb (or ~9.5mb on a compressed filesystem)
  jarFile.delete()
  FileUtils.deleteDirectory(new File(parent, "logs"))
  FileUtils.deleteDirectory(new File(parent, "libraries"))
  FileUtils.deleteDirectory(new File(parent, "versions"))

  new File(targetDir, "reports/commands.json").delete()

  FileUtils.deleteDirectory(new File(targetDir, ".cache"))
  FileUtils.deleteDirectory(new File(targetDir, "reports/biome_parameters"))
  FileUtils.deleteDirectory(new File(targetDir, "reports/biomes"))
  FileUtils.deleteDirectory(new File(targetDir, "reports/worldgen"))
  FileUtils.deleteDirectory(new File(targetDir, "reports/minecraft/components/item"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/datapacks"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/advancements"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/advancement"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/recipes"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/recipe"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/loot_tables"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/loot_table"))
  FileUtils.deleteDirectory(new File(targetDir, "data/minecraft/worldgen"))

  java.nio.file.Files.walk(parent.toPath(), 32).forEach { it ->
    if (it.fileName.toString().endsWith(".json")) {
      java.nio.file.Files.writeString(it, JsonOutput.toJson(new JsonSlurper().parse(it)))
    }
  }

  return targetDir
}

static Map<String, Map<String, String>> getDefaultProperties(Object data) {
  Map<String, Map<String, String>> defaultProperties = new HashMap<>()

  data.forEach({ key, block ->
    if (!block.containsKey("properties")) {
      return
    }

    for (Object blockState : block.states) {
      if (!blockState.containsKey("default") || !blockState.default) {
        continue
      }

      Map<String, String> properties = blockState["properties"]
      defaultProperties.put(key, properties)
      break
    }
  })

  return defaultProperties
}

static Map<MinecraftVersion, Map<String, String>> loadFallbackMapping(File file) {
  Object map = new JsonSlurper().parse(file)
  return MinecraftVersion.values().collectEntries({ version ->
    [version, map.getOrDefault(version.toString(), Collections.emptyMap())]
  })
}

static Map<MinecraftVersion, Map<String, Integer>> loadLegacyMapping(File file) {
  return new JsonSlurper().parse(file).collectEntries({ version, mapping ->
    [MinecraftVersion.valueOf(version), mapping.collectEntries({ block, id ->
      [block, Integer.parseInt(id)]
    })]
  })
}

static int getBlockID(String block,
                      Map<MinecraftVersion, Map<String, Integer>> mappings,
                      Map<MinecraftVersion, Map<String, Map<String, String>>> properties,
                      Map<MinecraftVersion, Map<String, String>> fallback,
                      MinecraftVersion version) {
  Map<String, Map<String, String>> defaultProperties
  if (version >= MinecraftVersion.MINECRAFT_1_13) {
    defaultProperties = properties[version]
  } else {
    defaultProperties = properties[MinecraftVersion.MINECRAFT_1_18_2]
  }

  String[] split = block.split("\\[")
  String noArgBlock = split[0]

  MinecraftVersion fallbackVersion = MinecraftVersion.MAXIMUM_VERSION
  while (fallbackVersion != version) {
    --fallbackVersion
    noArgBlock = fallback[fallbackVersion].getOrDefault(noArgBlock, noArgBlock)
  }

  Map<String, String> blockProperties = defaultProperties[noArgBlock]
  String targetBlockID
  if (blockProperties == null) {
    targetBlockID = noArgBlock
  } else {
    Map<String, String> currentProperties = new TreeMap<>(blockProperties)
    if (split.length > 1) {
      String[] args = split[1].split(",")
      Map<String, String> input = Arrays.stream(args)
              .map(arg -> arg.replace("]", "").split("="))
              .collect(Collectors.toMap(parts -> parts[0], parts -> parts[1]))

      input.forEach({ key, value ->
        if (currentProperties.containsKey(key)) {
          currentProperties.put(key, value)
        }
      })
    }

    targetBlockID = noArgBlock + Arrays.toString(
            currentProperties.collect({ k, v -> k + "=" + v }).toArray()
    ).replace(" ", "")
  }

  Integer id = mappings[version][targetBlockID]
  if (id == null && blockProperties != null) {
    targetBlockID = noArgBlock + Arrays.toString(
            new TreeMap<>(blockProperties).collect({ k, v -> k + "=" + v }).toArray()
    ).replace(" ", "")
    id = mappings[version][targetBlockID]
  }

  if (id == null) {
    System.err.println("No ${version.getVersionName()} fallback data for ${noArgBlock}, replacing with minecraft:stone")
    id = 1
  }

  return id
}

static Map<String, Integer> getBlockMappings(Object data, Map<String, Map<String, String>> defaultPropertiesMap) {
  Map<String, Integer> mapping = new HashMap<>()

  data.forEach({ blockID, blockData ->
    for (Object blockState : blockData.states) {
      int protocolID = blockState.id

      if (blockState.containsKey("properties")) {
        Map<String, String> stateProperties = blockState["properties"]
        Map<String, String> properties = new TreeMap<>(
                defaultPropertiesMap.getOrDefault(blockID, Collections.emptyMap()))

        properties.putAll(stateProperties)

        String stateID = blockID + Arrays.toString(
                properties.collect({ k, v -> k + "=" + v }).toArray()
        ).replace(" ", "")

        mapping.put(stateID, protocolID)
      } else {
        mapping.put(blockID, protocolID)
      }
    }
  })

  return mapping
}

void generateBlockMappings(File targetDir, Map<MinecraftVersion, Object> blockReports) {
  File defaultBlockPropertiesFile = new File(targetDir, "defaultblockproperties.json")
  File blockStatesFile = new File(targetDir, "blockstates.json")
  File blockStatesMappingFile = new File(targetDir, "blockstates_mapping.json")
  File legacyBlocksFile = new File(targetDir, "legacyblocks.json")

  if (checkIsCacheValid(defaultBlockPropertiesFile) || checkIsCacheValid(blockStatesFile)
          || checkIsCacheValid(blockStatesMappingFile) || checkIsCacheValid(legacyBlocksFile)) {
    this.println("> Generating default block properties...")

    Map<MinecraftVersion, Map<String, Map<String, String>>> defaultProperties =
            blockReports.collectEntries({ version, report ->
              [version, getDefaultProperties(report)]
            })

    defaultBlockPropertiesFile.write(JsonOutput.prettyPrint(
            JsonOutput.toJson(defaultProperties[MinecraftVersion.MAXIMUM_VERSION].sort())), "UTF-8")

    this.println("> Generating blockstates...")

    Map<MinecraftVersion, Map<String, Integer>> mappings = loadLegacyMapping(
            new File(this.getProjectDir(), "mapping/legacyblockmapping.json"))

    blockReports.forEach({ version, report ->
      mappings.put(version, getBlockMappings(report, defaultProperties[version]))
    })

    Map<String, Integer> blocks = mappings[MinecraftVersion.MAXIMUM_VERSION]

    blockStatesFile.write(
            JsonOutput.prettyPrint(JsonOutput.toJson(
                    blocks.sort(Map.Entry::getValue)
                            .collectEntries({ k, v -> [k, String.valueOf(v)] })
            )), "UTF-8")



    this.println("> Generating blockstates mapping...")

    Map<MinecraftVersion, Map<String, String>> fallbackMapping = loadFallbackMapping(
            new File(this.getProjectDir(), "mapping/fallbackdata.json"))

    Map<String, Map<String, String>> blockstateMapping = new LinkedHashMap<>()
    blocks.sort(Map.Entry::getValue)
            .forEach({ block, modernID ->
              Map<String, String> blockMapping = new LinkedHashMap<>()

              int lastID = -1
              for (MinecraftVersion version : MinecraftVersion.values()) {
                int id = getBlockID(block, mappings, defaultProperties, fallbackMapping, version)
                if (lastID != id) {
                  blockMapping.put(version.getVersionName(), String.valueOf(lastID = id))
                }
              }

              blockstateMapping.put(String.valueOf(modernID), blockMapping)
            })

    blockStatesMappingFile.write(
            JsonOutput.prettyPrint(JsonOutput.toJson(blockstateMapping)), "UTF-8")

    this.println("> Generating legacy blocks...")

    Map<String, String> legacyData = new JsonSlurper().parse(
            new File(this.getProjectDir(), "mapping/legacyblocks.json"))

    legacyData = legacyData.collectEntries({ legacy, modern ->
      [legacy, String.valueOf(getBlockID(modern, mappings, defaultProperties, fallbackMapping, MinecraftVersion.MAXIMUM_VERSION))]
    })

    legacyBlocksFile.write(
            JsonOutput.prettyPrint(JsonOutput.toJson(legacyData)), "UTF-8")
  }
}

static Map<String, Map<String, String>> sortRegistryMapping(Map<String, Map<String, String>> mapping) {
  return mapping.collectEntries({ modernID, map ->
    [modernID, map.sort({
      if (it.getKey().contains(".")) {
        return MinecraftVersion.fromVersionName(it.getKey())
      } else {
        return MinecraftVersion.MINIMUM_VERSION
      }
    })]
  }).sort()
}

void generateRegistryMapping(String target, File targetDir, Map<MinecraftVersion, Object> registriesReports) {
  File targetFile = new File(targetDir, "${target}s.json");
  File targetMappingFile = new File(targetDir, "${target}s_mapping.json");
  if (checkIsCacheValid(targetFile) || checkIsCacheValid(targetMappingFile)) {
    this.println("> Generating ${target}s...")

    Map<MinecraftVersion, Map<String, String>> idMap =
            registriesReports.collectEntries({ version, registry ->
              Object entries = registry["minecraft:${target}"].entries
              return [version, entries.collectEntries({ name, id -> [name, String.valueOf(id["protocol_id"])] })]
            })

    Map<String, String> modernIDs = Collections.max(idMap.entrySet(), Map.Entry.comparingByKey()).getValue()

    targetFile.write(JsonOutput.prettyPrint(
            JsonOutput.toJson(modernIDs.sort({Integer.parseInt(it.getValue()) }))), "UTF-8")

    this.println("> Generating ${target}s mapping...")

    Map<String, Map<String, String>> mapping = new JsonSlurper()
            .parse(new File(this.getProjectDir(), "mapping/legacy_${target}s_mapping.json"))
            .collectEntries({ key, value -> {
              if (modernIDs[key] == null) {
                throw new IllegalStateException("No modern id found for $key")
              }

              return [modernIDs[key], value]
            } })

    idMap.forEach({ version, ids ->
      ids.forEach({ key, id ->
        if (!modernIDs.containsKey(key)) {
          return
        }

        mapping.computeIfAbsent(modernIDs[key], _ -> new LinkedHashMap<>
Download .txt
gitextract_l5oqe6y4/

├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows/
│       ├── build.yml
│       └── release.yml
├── .gitignore
├── HEADER.txt
├── HEADER_MCPROTOCOLLIB.txt
├── HEADER_MIXED.txt
├── LICENSE
├── README.md
├── VERSION
├── api/
│   ├── HEADER.txt
│   ├── LICENSE
│   ├── build.gradle.kts
│   └── src/
│       └── main/
│           ├── java/
│           │   └── net/
│           │       └── elytrium/
│           │           └── limboapi/
│           │               └── api/
│           │                   ├── Limbo.java
│           │                   ├── LimboFactory.java
│           │                   ├── LimboSessionHandler.java
│           │                   ├── chunk/
│           │                   │   ├── BlockEntityVersion.java
│           │                   │   ├── BuiltInBiome.java
│           │                   │   ├── Dimension.java
│           │                   │   ├── VirtualBiome.java
│           │                   │   ├── VirtualBlock.java
│           │                   │   ├── VirtualBlockEntity.java
│           │                   │   ├── VirtualChunk.java
│           │                   │   ├── VirtualWorld.java
│           │                   │   ├── data/
│           │                   │   │   ├── BlockSection.java
│           │                   │   │   ├── BlockStorage.java
│           │                   │   │   ├── ChunkSnapshot.java
│           │                   │   │   └── LightSection.java
│           │                   │   └── util/
│           │                   │       └── CompactStorage.java
│           │                   ├── command/
│           │                   │   └── LimboCommandMeta.java
│           │                   ├── event/
│           │                   │   └── LoginLimboRegisterEvent.java
│           │                   ├── file/
│           │                   │   ├── BuiltInWorldFileType.java
│           │                   │   └── WorldFile.java
│           │                   ├── material/
│           │                   │   ├── Block.java
│           │                   │   ├── Item.java
│           │                   │   ├── VirtualItem.java
│           │                   │   └── WorldVersion.java
│           │                   ├── mcprotocollib/
│           │                   │   └── NibbleArray3D.java
│           │                   ├── player/
│           │                   │   ├── GameMode.java
│           │                   │   └── LimboPlayer.java
│           │                   ├── protocol/
│           │                   │   ├── PacketDirection.java
│           │                   │   ├── PreparedPacket.java
│           │                   │   ├── item/
│           │                   │   │   ├── ItemComponent.java
│           │                   │   │   └── ItemComponentMap.java
│           │                   │   ├── map/
│           │                   │   │   └── MapPalette.java
│           │                   │   └── packets/
│           │                   │       ├── PacketFactory.java
│           │                   │       ├── PacketMapping.java
│           │                   │       └── data/
│           │                   │           ├── AbilityFlags.java
│           │                   │           ├── BiomeData.java
│           │                   │           ├── MapData.java
│           │                   │           └── MapPalette.java
│           │                   └── utils/
│           │                       ├── EnumUniverse.java
│           │                       ├── OverlayMap.java
│           │                       └── OverlayVanillaMap.java
│           └── templates/
│               └── net/
│                   └── elytrium/
│                       └── limboapi/
│                           └── BuildConstants.java
├── build.gradle.kts
├── config/
│   ├── checkstyle/
│   │   ├── checkstyle.xml
│   │   └── suppressions.xml
│   └── spotbugs/
│       └── suppressions.xml
├── gradle/
│   ├── libs.versions.toml
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── plugin/
│   ├── build.gradle
│   ├── mapping/
│   │   ├── fallbackdata.json
│   │   ├── legacy_blockentities_mapping.json
│   │   ├── legacy_blocks_mapping.json
│   │   ├── legacy_data_component_types_mapping.json
│   │   ├── legacy_items_mapping.json
│   │   ├── legacyblockmapping.json
│   │   ├── legacyblocks.json
│   │   └── tag_types.json
│   └── src/
│       └── main/
│           ├── java/
│           │   └── net/
│           │       └── elytrium/
│           │           └── limboapi/
│           │               ├── LimboAPI.java
│           │               ├── Settings.java
│           │               ├── file/
│           │               │   ├── MCEditSchematicFile.java
│           │               │   ├── StructureNbtFile.java
│           │               │   ├── WorldEditSchemFile.java
│           │               │   └── WorldFileTypeRegistry.java
│           │               ├── injection/
│           │               │   ├── disconnect/
│           │               │   │   └── DisconnectListener.java
│           │               │   ├── dummy/
│           │               │   │   ├── ClosedChannel.java
│           │               │   │   ├── ClosedMinecraftConnection.java
│           │               │   │   └── DummyEventPool.java
│           │               │   ├── event/
│           │               │   │   └── EventManagerHook.java
│           │               │   ├── login/
│           │               │   │   ├── LoginListener.java
│           │               │   │   ├── LoginTasksQueue.java
│           │               │   │   └── confirmation/
│           │               │   │       └── LoginConfirmHandler.java
│           │               │   ├── packet/
│           │               │   │   ├── LegacyPlayerListItemHook.java
│           │               │   │   ├── LimboCompressDecoder.java
│           │               │   │   ├── MinecraftDiscardCompressDecoder.java
│           │               │   │   ├── MinecraftLimitedCompressDecoder.java
│           │               │   │   ├── PreparedPacketImpl.java
│           │               │   │   ├── RemovePlayerInfoHook.java
│           │               │   │   ├── ServerLoginSuccessHook.java
│           │               │   │   └── UpsertPlayerInfoHook.java
│           │               │   └── tablist/
│           │               │       ├── RewritingKeyedVelocityTabList.java
│           │               │       ├── RewritingTabList.java
│           │               │       ├── RewritingVelocityTabList.java
│           │               │       └── RewritingVelocityTabListLegacy.java
│           │               ├── material/
│           │               │   └── Biome.java
│           │               ├── mcprotocollib/
│           │               │   ├── BitStorage116.java
│           │               │   └── BitStorage19.java
│           │               ├── protocol/
│           │               │   ├── LimboProtocol.java
│           │               │   ├── data/
│           │               │   │   ├── BiomeStorage118.java
│           │               │   │   ├── BlockStorage17.java
│           │               │   │   ├── BlockStorage19.java
│           │               │   │   └── StorageUtils.java
│           │               │   ├── packets/
│           │               │   │   ├── PacketFactoryImpl.java
│           │               │   │   ├── c2s/
│           │               │   │   │   ├── MoveOnGroundOnlyPacket.java
│           │               │   │   │   ├── MovePacket.java
│           │               │   │   │   ├── MovePositionOnlyPacket.java
│           │               │   │   │   ├── MoveRotationOnlyPacket.java
│           │               │   │   │   ├── PlayerChatSessionPacket.java
│           │               │   │   │   └── TeleportConfirmPacket.java
│           │               │   │   └── s2c/
│           │               │   │       ├── ChangeGameStatePacket.java
│           │               │   │       ├── ChunkDataPacket.java
│           │               │   │       ├── ChunkUnloadPacket.java
│           │               │   │       ├── DefaultSpawnPositionPacket.java
│           │               │   │       ├── MapDataPacket.java
│           │               │   │       ├── PlayerAbilitiesPacket.java
│           │               │   │       ├── PositionRotationPacket.java
│           │               │   │       ├── SetExperiencePacket.java
│           │               │   │       ├── SetSlotPacket.java
│           │               │   │       ├── TimeUpdatePacket.java
│           │               │   │       ├── UpdateTagsPacket.java
│           │               │   │       └── UpdateViewPositionPacket.java
│           │               │   └── util/
│           │               │       └── NetworkSection.java
│           │               ├── server/
│           │               │   ├── CachedPackets.java
│           │               │   ├── LimboImpl.java
│           │               │   ├── LimboPlayerImpl.java
│           │               │   ├── LimboSessionHandlerImpl.java
│           │               │   ├── item/
│           │               │   │   ├── SimpleItemComponentManager.java
│           │               │   │   ├── SimpleItemComponentMap.java
│           │               │   │   └── type/
│           │               │   │       ├── BooleanItemComponent.java
│           │               │   │       ├── ComponentItemComponent.java
│           │               │   │       ├── ComponentsItemComponent.java
│           │               │   │       ├── DyedColorItemComponent.java
│           │               │   │       ├── EmptyItemComponent.java
│           │               │   │       ├── EnchantmentsItemComponent.java
│           │               │   │       ├── GameProfileItemComponent.java
│           │               │   │       ├── IntItemComponent.java
│           │               │   │       ├── StringItemComponent.java
│           │               │   │       ├── StringsItemComponent.java
│           │               │   │       ├── TagItemComponent.java
│           │               │   │       ├── VarIntItemComponent.java
│           │               │   │       └── WriteableItemComponent.java
│           │               │   └── world/
│           │               │       ├── SimpleBlock.java
│           │               │       ├── SimpleBlockEntity.java
│           │               │       ├── SimpleItem.java
│           │               │       ├── SimpleTagManager.java
│           │               │       ├── SimpleWorld.java
│           │               │       └── chunk/
│           │               │           ├── SimpleChunk.java
│           │               │           ├── SimpleChunkSnapshot.java
│           │               │           ├── SimpleLightSection.java
│           │               │           └── SimpleSection.java
│           │               └── utils/
│           │                   ├── LambdaUtil.java
│           │                   ├── OverlayIntObjectMap.java
│           │                   ├── OverlayObject2IntMap.java
│           │                   ├── ProtocolTools.java
│           │                   ├── ReloadListener.java
│           │                   └── SetIsObjectSet.java
│           └── resources/
│               └── mapping/
│                   ├── chat_type_1_19.nbt
│                   ├── chat_type_1_19_1.nbt
│                   ├── colors_main_map
│                   ├── colors_minecraft_1_12_map
│                   ├── colors_minecraft_1_16_map
│                   ├── colors_minecraft_1_17_map
│                   ├── colors_minecraft_1_8_map
│                   ├── colors_minimum_version_map
│                   ├── damage_type_1_19_4.nbt
│                   ├── damage_type_1_20.nbt
│                   ├── fluids.json
│                   ├── legacyitems.json
│                   ├── modern_block_id_remap.json
│                   └── modern_item_id_remap.json
└── settings.gradle.kts
Download .txt
SYMBOL INDEX (1374 symbols across 130 files)

FILE: api/src/main/java/net/elytrium/limboapi/api/Limbo.java
  type Limbo (line 19) | public interface Limbo {
    method spawnPlayer (line 21) | void spawnPlayer(Player player, LimboSessionHandler handler);
    method respawnPlayer (line 23) | void respawnPlayer(Player player);
    method getCurrentOnline (line 25) | long getCurrentOnline();
    method setName (line 27) | Limbo setName(String name);
    method setReadTimeout (line 29) | Limbo setReadTimeout(int millis);
    method setWorldTime (line 31) | Limbo setWorldTime(long ticks);
    method setGameMode (line 33) | Limbo setGameMode(GameMode gameMode);
    method setShouldRejoin (line 35) | Limbo setShouldRejoin(boolean shouldRejoin);
    method setShouldRespawn (line 37) | Limbo setShouldRespawn(boolean shouldRespawn);
    method setShouldUpdateTags (line 39) | @Deprecated
    method setReducedDebugInfo (line 42) | Limbo setReducedDebugInfo(boolean reducedDebugInfo);
    method setViewDistance (line 44) | Limbo setViewDistance(int viewDistance);
    method setSimulationDistance (line 46) | Limbo setSimulationDistance(int simulationDistance);
    method setMaxSuppressPacketLength (line 48) | Limbo setMaxSuppressPacketLength(int maxSuppressPacketLength);
    method registerCommand (line 50) | Limbo registerCommand(LimboCommandMeta commandMeta);
    method registerCommand (line 52) | Limbo registerCommand(CommandMeta commandMeta, Command command);
    method registerPacket (line 54) | Limbo registerPacket(PacketDirection direction, Class<?> packetClass, ...
    method dispose (line 56) | void dispose();

FILE: api/src/main/java/net/elytrium/limboapi/api/LimboFactory.java
  type LimboFactory (line 33) | public interface LimboFactory {
    method createSimpleBlock (line 42) | VirtualBlock createSimpleBlock(Block block);
    method createSimpleBlock (line 51) | VirtualBlock createSimpleBlock(short legacyID);
    method createSimpleBlock (line 60) | VirtualBlock createSimpleBlock(String modernID);
    method createSimpleBlock (line 70) | VirtualBlock createSimpleBlock(String modernID, Map<String, String> pr...
    method createSimpleBlock (line 80) | VirtualBlock createSimpleBlock(short legacyID, boolean modern);
    method createSimpleBlock (line 92) | VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean mot...
    method createSimpleBlock (line 105) | VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean mot...
    method createVirtualWorld (line 119) | VirtualWorld createVirtualWorld(Dimension dimension, double posX, doub...
    method createVirtualChunk (line 130) | @Deprecated
    method createVirtualChunk (line 143) | VirtualChunk createVirtualChunk(int posX, int posZ, VirtualBiome defau...
    method createVirtualChunk (line 155) | VirtualChunk createVirtualChunk(int posX, int posZ, BuiltInBiome defau...
    method createLimbo (line 164) | Limbo createLimbo(VirtualWorld world);
    method releasePreparedPacketThread (line 171) | void releasePreparedPacketThread(Thread thread);
    method createPreparedPacket (line 178) | PreparedPacket createPreparedPacket();
    method createPreparedPacket (line 188) | PreparedPacket createPreparedPacket(ProtocolVersion minVersion, Protoc...
    method createConfigPreparedPacket (line 195) | PreparedPacket createConfigPreparedPacket();
    method createConfigPreparedPacket (line 205) | PreparedPacket createConfigPreparedPacket(ProtocolVersion minVersion, ...
    method passLoginLimbo (line 212) | void passLoginLimbo(Player player);
    method getItem (line 221) | VirtualItem getItem(Item item);
    method getItem (line 230) | VirtualItem getItem(String itemID);
    method getLegacyItem (line 239) | VirtualItem getLegacyItem(int itemLegacyID);
    method createItemComponentMap (line 246) | ItemComponentMap createItemComponentMap();
    method getBlockEntity (line 248) | VirtualBlockEntity getBlockEntity(String entityID);
    method getPacketFactory (line 253) | PacketFactory getPacketFactory();
    method getPrepareMinVersion (line 255) | ProtocolVersion getPrepareMinVersion();
    method getPrepareMaxVersion (line 257) | ProtocolVersion getPrepareMaxVersion();
    method openWorldFile (line 266) | WorldFile openWorldFile(BuiltInWorldFileType apiType, Path file) throw...
    method openWorldFile (line 276) | WorldFile openWorldFile(BuiltInWorldFileType apiType, InputStream stre...
    method openWorldFile (line 286) | WorldFile openWorldFile(BuiltInWorldFileType apiType, CompoundBinaryTa...

FILE: api/src/main/java/net/elytrium/limboapi/api/LimboSessionHandler.java
  type LimboSessionHandler (line 12) | public interface LimboSessionHandler {
    method onSpawn (line 14) | default void onSpawn(Limbo server, LimboPlayer player) {
    method onConfig (line 18) | default void onConfig(Limbo server, LimboPlayer player) {
    method onMove (line 22) | default void onMove(double posX, double posY, double posZ) {
    method onMove (line 26) | default void onMove(double posX, double posY, double posZ, float yaw, ...
    method onRotate (line 30) | default void onRotate(float yaw, float pitch) {
    method onGround (line 34) | default void onGround(boolean onGround) {
    method onTeleport (line 38) | default void onTeleport(int teleportID) {
    method onChat (line 42) | default void onChat(String chat) {
    method onGeneric (line 49) | default void onGeneric(Object packet) {
    method onDisconnect (line 53) | default void onDisconnect() {

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/BlockEntityVersion.java
  type BlockEntityVersion (line 18) | public enum BlockEntityVersion {
    method BlockEntityVersion (line 43) | BlockEntityVersion(ProtocolVersion... versions) {
    method BlockEntityVersion (line 47) | BlockEntityVersion(Set<ProtocolVersion> versions) {
    method getMinSupportedVersion (line 51) | public ProtocolVersion getMinSupportedVersion() {
    method getVersions (line 55) | public Set<ProtocolVersion> getVersions() {
    method parse (line 67) | public static BlockEntityVersion parse(String from) {
    method from (line 71) | public static BlockEntityVersion from(ProtocolVersion protocolVersion) {

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/BuiltInBiome.java
  type BuiltInBiome (line 10) | public enum BuiltInBiome {

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/Dimension.java
  type Dimension (line 10) | public enum Dimension {
    method Dimension (line 23) | Dimension(String key, int legacyID, int modernID, int maxSections, boo...
    method getKey (line 32) | public String getKey() {
    method getLegacyID (line 36) | public int getLegacyID() {
    method getModernID (line 40) | public int getModernID() {
    method getMaxSections (line 44) | public int getMaxSections() {
    method hasLegacySkyLight (line 48) | public boolean hasLegacySkyLight() {
    method getDefaultBiome (line 52) | public BuiltInBiome getDefaultBiome() {

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBiome.java
  type VirtualBiome (line 10) | public interface VirtualBiome {
    method getName (line 12) | String getName();
    method getID (line 14) | int getID();

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlock.java
  type VirtualBlock (line 13) | public interface VirtualBlock {
    method getModernID (line 15) | short getModernID();
    method getModernStringID (line 17) | String getModernStringID();
    method getID (line 19) | @Deprecated
    method getBlockID (line 22) | short getBlockID(WorldVersion version);
    method getBlockID (line 24) | short getBlockID(ProtocolVersion version);
    method isSupportedOn (line 26) | boolean isSupportedOn(ProtocolVersion version);
    method isSupportedOn (line 28) | boolean isSupportedOn(WorldVersion version);
    method getBlockStateID (line 30) | short getBlockStateID(ProtocolVersion version);
    method isSolid (line 32) | boolean isSolid();
    method isAir (line 34) | boolean isAir();
    method isMotionBlocking (line 36) | boolean isMotionBlocking();

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlockEntity.java
  type VirtualBlockEntity (line 13) | public interface VirtualBlockEntity {
    method getID (line 15) | int getID(ProtocolVersion version);
    method getID (line 17) | int getID(BlockEntityVersion version);
    method isSupportedOn (line 19) | boolean isSupportedOn(ProtocolVersion version);
    method isSupportedOn (line 21) | boolean isSupportedOn(BlockEntityVersion version);
    method getModernID (line 23) | String getModernID();
    method getEntry (line 25) | Entry getEntry(int posX, int posY, int posZ, CompoundBinaryTag nbt);
    type Entry (line 27) | interface Entry {
      method getBlockEntity (line 29) | VirtualBlockEntity getBlockEntity();
      method getPosX (line 31) | int getPosX();
      method getPosY (line 33) | int getPosY();
      method getPosZ (line 35) | int getPosZ();
      method getNbt (line 37) | CompoundBinaryTag getNbt();
      method getID (line 39) | int getID(ProtocolVersion version);
      method getID (line 41) | int getID(BlockEntityVersion version);
      method isSupportedOn (line 43) | boolean isSupportedOn(ProtocolVersion version);
      method isSupportedOn (line 45) | boolean isSupportedOn(BlockEntityVersion version);

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualChunk.java
  type VirtualChunk (line 16) | public interface VirtualChunk {
    method setBlock (line 18) | void setBlock(int posX, int posY, int posZ, @Nullable VirtualBlock blo...
    method setBlockEntity (line 20) | void setBlockEntity(int posX, int posY, int posZ, @Nullable CompoundBi...
    method setBlockEntity (line 22) | void setBlockEntity(VirtualBlockEntity.Entry blockEntityEntry);
    method getBlock (line 24) | @NonNull
    method setBiome2D (line 27) | void setBiome2D(int posX, int posZ, @NonNull VirtualBiome biome);
    method setBiome3D (line 29) | void setBiome3D(int posX, int posY, int posZ, @NonNull VirtualBiome bi...
    method getBiome (line 31) | @NonNull
    method setBlockLight (line 34) | void setBlockLight(int posX, int posY, int posZ, byte light);
    method getBlockLight (line 36) | byte getBlockLight(int posX, int posY, int posZ);
    method setSkyLight (line 38) | void setSkyLight(int posX, int posY, int posZ, byte light);
    method getSkyLight (line 40) | byte getSkyLight(int posX, int posY, int posZ);
    method fillBlockLight (line 42) | void fillBlockLight(@IntRange(from = 0, to = 15) int level);
    method fillSkyLight (line 44) | void fillSkyLight(@IntRange(from = 0, to = 15) int level);
    method getPosX (line 46) | int getPosX();
    method getPosZ (line 48) | int getPosZ();
    method getFullChunkSnapshot (line 50) | ChunkSnapshot getFullChunkSnapshot();
    method getPartialChunkSnapshot (line 52) | ChunkSnapshot getPartialChunkSnapshot(long previousUpdate);

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualWorld.java
  type VirtualWorld (line 16) | public interface VirtualWorld {
    method setBlockEntity (line 18) | void setBlockEntity(int posX, int posY, int posZ, @Nullable CompoundBi...
    method getBlock (line 20) | @NonNull
    method setBiome2d (line 23) | void setBiome2d(int posX, int posZ, @NonNull VirtualBiome biome);
    method setBiome3d (line 25) | void setBiome3d(int posX, int posY, int posZ, @NonNull VirtualBiome bi...
    method getBiome (line 27) | VirtualBiome getBiome(int posX, int posY, int posZ);
    method getBlockLight (line 29) | byte getBlockLight(int posX, int posY, int posZ);
    method setBlockLight (line 31) | void setBlockLight(int posX, int posY, int posZ, byte light);
    method fillBlockLight (line 33) | void fillBlockLight(@IntRange(from = 0, to = 15) int level);
    method fillSkyLight (line 35) | void fillSkyLight(@IntRange(from = 0, to = 15) int level);
    method getChunks (line 37) | List<VirtualChunk> getChunks();
    method getOrderedChunks (line 39) | List<List<VirtualChunk>> getOrderedChunks();
    method getChunk (line 41) | @Nullable
    method getChunkOrNew (line 44) | VirtualChunk getChunkOrNew(int posX, int posZ);
    method getDimension (line 46) | @NonNull
    method getSpawnX (line 49) | double getSpawnX();
    method getSpawnY (line 51) | double getSpawnY();
    method getSpawnZ (line 53) | double getSpawnZ();
    method getYaw (line 55) | float getYaw();
    method getPitch (line 57) | float getPitch();
    method setBlock (line 59) | void setBlock(int posX, int posY, int posZ, @Nullable VirtualBlock blo...

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockSection.java
  type BlockSection (line 13) | public interface BlockSection {
    method setBlockAt (line 15) | void setBlockAt(int posX, int posY, int posZ, @Nullable VirtualBlock b...
    method getBlockAt (line 17) | VirtualBlock getBlockAt(int posX, int posY, int posZ);
    method getSnapshot (line 19) | BlockSection getSnapshot();
    method getLastUpdate (line 21) | long getLastUpdate();

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockStorage.java
  type BlockStorage (line 14) | public interface BlockStorage {
    method write (line 16) | void write(Object byteBufObject, ProtocolVersion version, int pass);
    method set (line 18) | void set(int posX, int posY, int posZ, @NonNull VirtualBlock block);
    method get (line 20) | @NonNull
    method getDataLength (line 23) | int getDataLength(ProtocolVersion version);
    method copy (line 25) | BlockStorage copy();
    method index (line 27) | static int index(int posX, int posY, int posZ) {

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/ChunkSnapshot.java
  type ChunkSnapshot (line 15) | public interface ChunkSnapshot {
    method getBlock (line 17) | VirtualBlock getBlock(int posX, int posY, int posZ);
    method getPosX (line 19) | int getPosX();
    method getPosZ (line 21) | int getPosZ();
    method isFullChunk (line 23) | boolean isFullChunk();
    method getSections (line 25) | BlockSection[] getSections();
    method getLight (line 27) | LightSection[] getLight();
    method getBiomes (line 29) | VirtualBiome[] getBiomes();
    method getBlockEntityEntries (line 31) | List<VirtualBlockEntity.Entry> getBlockEntityEntries();

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/data/LightSection.java
  type LightSection (line 12) | public interface LightSection {
    method setBlockLight (line 14) | void setBlockLight(int posX, int posY, int posZ, byte light);
    method getBlockLight (line 16) | NibbleArray3D getBlockLight();
    method getBlockLight (line 18) | byte getBlockLight(int posX, int posY, int posZ);
    method setSkyLight (line 20) | void setSkyLight(int posX, int posY, int posZ, byte light);
    method getSkyLight (line 22) | NibbleArray3D getSkyLight();
    method getSkyLight (line 24) | byte getSkyLight(int posX, int posY, int posZ);
    method getLastUpdate (line 26) | long getLastUpdate();
    method copy (line 28) | LightSection copy();

FILE: api/src/main/java/net/elytrium/limboapi/api/chunk/util/CompactStorage.java
  type CompactStorage (line 12) | public interface CompactStorage {
    method set (line 14) | void set(int index, int value);
    method get (line 16) | int get(int index);
    method write (line 18) | void write(Object byteBufObject, ProtocolVersion version);
    method getBitsPerEntry (line 20) | int getBitsPerEntry();
    method getDataLength (line 22) | @Deprecated(forRemoval = true)
    method getDataLength (line 27) | int getDataLength(ProtocolVersion version);
    method getData (line 29) | long[] getData();
    method copy (line 31) | CompactStorage copy();

FILE: api/src/main/java/net/elytrium/limboapi/api/command/LimboCommandMeta.java
  class LimboCommandMeta (line 19) | public class LimboCommandMeta implements CommandMeta {
    method LimboCommandMeta (line 28) | public LimboCommandMeta(@NonNull Collection<String> aliases) {
    method LimboCommandMeta (line 32) | public LimboCommandMeta(@NonNull Collection<String> aliases, @Nullable...
    method LimboCommandMeta (line 36) | public LimboCommandMeta(@NonNull Collection<String> aliases, @Nullable...
    method getAliases (line 42) | @NonNull
    method getHints (line 48) | @NonNull
    method getPlugin (line 54) | @Nullable

FILE: api/src/main/java/net/elytrium/limboapi/api/event/LoginLimboRegisterEvent.java
  class LoginLimboRegisterEvent (line 20) | public class LoginLimboRegisterEvent {
    method LoginLimboRegisterEvent (line 26) | public LoginLimboRegisterEvent(Player player) {
    method getPlayer (line 31) | public Player getPlayer() {
    method toString (line 35) | @Override
    method getOnJoinCallbacks (line 42) | public Queue<Runnable> getOnJoinCallbacks() {
    method getOnKickCallback (line 47) | public Function<KickedFromServerEvent, Boolean> getOnKickCallback() {
    method addOnJoinCallback (line 51) | public void addOnJoinCallback(Runnable callback) {
    method addCallback (line 58) | @Deprecated
    method setOnKickCallback (line 63) | public void setOnKickCallback(Function<KickedFromServerEvent, Boolean>...

FILE: api/src/main/java/net/elytrium/limboapi/api/file/BuiltInWorldFileType.java
  type BuiltInWorldFileType (line 10) | public enum BuiltInWorldFileType {

FILE: api/src/main/java/net/elytrium/limboapi/api/file/WorldFile.java
  type WorldFile (line 14) | public interface WorldFile {
    method toWorld (line 16) | default void toWorld(LimboFactory factory, VirtualWorld world, int off...
    method toWorld (line 20) | void toWorld(LimboFactory factory, VirtualWorld world, int offsetX, in...

FILE: api/src/main/java/net/elytrium/limboapi/api/material/Block.java
  type Block (line 10) | public enum Block {
    method Block (line 269) | Block(int id) {
    method getID (line 273) | public int getID() {

FILE: api/src/main/java/net/elytrium/limboapi/api/material/Item.java
  type Item (line 10) | public enum Item {
    method Item (line 351) | Item(int id) {
    method getID (line 355) | @Deprecated
    method getLegacyID (line 360) | public int getLegacyID() {

FILE: api/src/main/java/net/elytrium/limboapi/api/material/VirtualItem.java
  type VirtualItem (line 12) | public interface VirtualItem {
    method getID (line 14) | short getID(ProtocolVersion version);
    method getID (line 16) | short getID(WorldVersion version);
    method isSupportedOn (line 18) | boolean isSupportedOn(ProtocolVersion version);
    method isSupportedOn (line 20) | boolean isSupportedOn(WorldVersion version);
    method getModernID (line 22) | String getModernID();

FILE: api/src/main/java/net/elytrium/limboapi/api/material/WorldVersion.java
  type WorldVersion (line 18) | public enum WorldVersion {
    method WorldVersion (line 47) | WorldVersion(ProtocolVersion... versions) {
    method WorldVersion (line 51) | WorldVersion(Set<ProtocolVersion> versions) {
    method getMinSupportedVersion (line 55) | public ProtocolVersion getMinSupportedVersion() {
    method getVersions (line 59) | public Set<ProtocolVersion> getVersions() {
    method parse (line 71) | public static WorldVersion parse(String from) {
    method from (line 75) | public static WorldVersion from(ProtocolVersion protocolVersion) {

FILE: api/src/main/java/net/elytrium/limboapi/api/mcprotocollib/NibbleArray3D.java
  class NibbleArray3D (line 30) | public class NibbleArray3D {
    method NibbleArray3D (line 34) | public NibbleArray3D(int size) {
    method NibbleArray3D (line 38) | public NibbleArray3D(int size, int defaultValue) {
    method NibbleArray3D (line 43) | public NibbleArray3D(byte[] array) {
    method getData (line 47) | public byte[] getData() {
    method get (line 51) | public int get(int posX, int posY, int posZ) {
    method set (line 57) | public void set(int posX, int posY, int posZ, int value) {
    method set (line 61) | public void set(int key, int val) {
    method fill (line 70) | public void fill(int value) {
    method copy (line 76) | public NibbleArray3D copy() {

FILE: api/src/main/java/net/elytrium/limboapi/api/player/GameMode.java
  type GameMode (line 12) | public enum GameMode {
    method getID (line 31) | public short getID() {
    method getByID (line 44) | @Nullable

FILE: api/src/main/java/net/elytrium/limboapi/api/player/LimboPlayer.java
  type LimboPlayer (line 19) | public interface LimboPlayer {
    method writePacket (line 21) | void writePacket(Object packetObj);
    method writePacketAndFlush (line 23) | void writePacketAndFlush(Object packetObj);
    method flushPackets (line 25) | void flushPackets();
    method closeWith (line 27) | void closeWith(Object packetObj);
    method getScheduledExecutor (line 29) | ScheduledExecutorService getScheduledExecutor();
    method sendImage (line 31) | void sendImage(BufferedImage image);
    method sendImage (line 33) | void sendImage(BufferedImage image, boolean sendItem);
    method sendImage (line 35) | void sendImage(int mapID, BufferedImage image);
    method sendImage (line 37) | void sendImage(int mapID, BufferedImage image, boolean sendItem);
    method sendImage (line 39) | void sendImage(int mapID, BufferedImage image, boolean sendItem, boole...
    method setInventory (line 41) | void setInventory(VirtualItem item, int count);
    method setInventory (line 43) | void setInventory(VirtualItem item, int slot, int count);
    method setInventory (line 45) | void setInventory(int slot, VirtualItem item, int count, int data, Com...
    method setInventory (line 47) | void setInventory(int slot, VirtualItem item, int count, int data, Ite...
    method setGameMode (line 49) | void setGameMode(GameMode gameMode);
    method teleport (line 51) | void teleport(double posX, double posY, double posZ, float yaw, float ...
    method disableFalling (line 53) | void disableFalling();
    method enableFalling (line 55) | void enableFalling();
    method disconnect (line 57) | void disconnect();
    method disconnect (line 59) | void disconnect(RegisteredServer server);
    method sendAbilities (line 61) | void sendAbilities();
    method sendAbilities (line 63) | void sendAbilities(int abilities, float flySpeed, float walkSpeed);
    method sendAbilities (line 65) | void sendAbilities(byte abilities, float flySpeed, float walkSpeed);
    method getAbilities (line 67) | byte getAbilities();
    method getGameMode (line 69) | GameMode getGameMode();
    method getServer (line 71) | Limbo getServer();
    method getProxyPlayer (line 73) | Player getProxyPlayer();
    method getPing (line 75) | int getPing();
    method setWorldTime (line 77) | void setWorldTime(long ticks);

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/PacketDirection.java
  type PacketDirection (line 10) | public enum PacketDirection {

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/PreparedPacket.java
  type PreparedPacket (line 14) | public interface PreparedPacket {
    method prepare (line 16) | <T> PreparedPacket prepare(T packet);
    method prepare (line 18) | <T> PreparedPacket prepare(T[] packets);
    method prepare (line 20) | <T> PreparedPacket prepare(List<T> packets);
    method prepare (line 22) | <T> PreparedPacket prepare(T packet, ProtocolVersion from);
    method prepare (line 24) | <T> PreparedPacket prepare(T packet, ProtocolVersion from, ProtocolVer...
    method prepare (line 26) | <T> PreparedPacket prepare(T[] packets, ProtocolVersion from);
    method prepare (line 28) | <T> PreparedPacket prepare(T[] packets, ProtocolVersion from, Protocol...
    method prepare (line 30) | <T> PreparedPacket prepare(List<T> packets, ProtocolVersion from);
    method prepare (line 32) | <T> PreparedPacket prepare(List<T> packets, ProtocolVersion from, Prot...
    method prepare (line 34) | <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet);
    method prepare (line 36) | <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet, Protoc...
    method prepare (line 38) | <T> PreparedPacket prepare(Function<ProtocolVersion, T> packet, Protoc...
    method build (line 40) | PreparedPacket build();
    method release (line 42) | void release();

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponent.java
  type ItemComponent (line 10) | public interface ItemComponent<T> {
    method getName (line 12) | String getName();
    method setValue (line 14) | ItemComponent<T> setValue(T value);
    method getValue (line 16) | T getValue();

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponentMap.java
  type ItemComponentMap (line 13) | public interface ItemComponentMap {
    method add (line 15) | <T> ItemComponentMap add(ProtocolVersion version, String name, T value);
    method remove (line 17) | ItemComponentMap remove(ProtocolVersion version, String name);
    method getAdded (line 19) | List<ItemComponent> getAdded();
    method getRemoved (line 21) | List<ItemComponent> getRemoved();
    method read (line 23) | void read(ProtocolVersion version, Object buffer);
    method write (line 25) | void write(ProtocolVersion version, Object buffer);

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/map/MapPalette.java
  class MapPalette (line 13) | @Deprecated(forRemoval = true)
    method imageToBytes (line 16) | public static int[] imageToBytes(BufferedImage image) {
    method imageToBytes (line 20) | public static int[] imageToBytes(BufferedImage image, ProtocolVersion ...
    method tryFastMatchColor (line 24) | public static byte tryFastMatchColor(int rgb, ProtocolVersion version) {

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketFactory.java
  type PacketFactory (line 23) | public interface PacketFactory {
    method createChangeGameStatePacket (line 25) | Object createChangeGameStatePacket(int reason, float value);
    method createChunkDataPacket (line 27) | Object createChunkDataPacket(ChunkSnapshot chunkSnapshot, boolean lega...
    method createChunkDataPacket (line 29) | Object createChunkDataPacket(ChunkSnapshot chunkSnapshot, Dimension di...
    method createChunkUnloadPacket (line 31) | Object createChunkUnloadPacket(int posX, int posZ);
    method createDefaultSpawnPositionPacket (line 33) | Object createDefaultSpawnPositionPacket(int posX, int posY, int posZ, ...
    method createDefaultSpawnPositionPacket (line 35) | Object createDefaultSpawnPositionPacket(String dimension, int posX, in...
    method createMapDataPacket (line 37) | Object createMapDataPacket(int mapID, byte scale, MapData mapData);
    method createPlayerAbilitiesPacket (line 42) | Object createPlayerAbilitiesPacket(int flags, float flySpeed, float wa...
    method createPlayerAbilitiesPacket (line 47) | Object createPlayerAbilitiesPacket(byte flags, float flySpeed, float w...
    method createPositionRotationPacket (line 49) | Object createPositionRotationPacket(double posX, double posY, double p...
    method createSetExperiencePacket (line 52) | Object createSetExperiencePacket(float expBar, int level, int totalExp);
    method createSetSlotPacket (line 54) | Object createSetSlotPacket(int windowID, int slot, VirtualItem item, i...
    method createSetSlotPacket (line 56) | Object createSetSlotPacket(int windowID, int slot, VirtualItem item, i...
    method createTimeUpdatePacket (line 58) | Object createTimeUpdatePacket(long worldAge, long timeOfDay);
    method createUpdateViewPositionPacket (line 60) | Object createUpdateViewPositionPacket(int posX, int posZ);
    method createUpdateTagsPacket (line 62) | Object createUpdateTagsPacket(WorldVersion version);
    method createUpdateTagsPacket (line 64) | Object createUpdateTagsPacket(ProtocolVersion version);
    method createUpdateTagsPacket (line 66) | Object createUpdateTagsPacket(Map<String, Map<String, List<Integer>>> ...

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketMapping.java
  class PacketMapping (line 13) | public class PacketMapping {
    method PacketMapping (line 21) | public PacketMapping(int id, ProtocolVersion protocolVersion, boolean ...
    method PacketMapping (line 25) | public PacketMapping(int id, ProtocolVersion protocolVersion, @Nullabl...
    method getID (line 32) | public int getID() {
    method getProtocolVersion (line 36) | public ProtocolVersion getProtocolVersion() {
    method getLastValidProtocolVersion (line 40) | @Nullable
    method isEncodeOnly (line 45) | public boolean isEncodeOnly() {

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/AbilityFlags.java
  class AbilityFlags (line 13) | public class AbilityFlags {

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/BiomeData.java
  class BiomeData (line 18) | public class BiomeData {
    method BiomeData (line 23) | public BiomeData(ChunkSnapshot chunk) {
    method getPost115Biomes (line 52) | public int[] getPost115Biomes() {
    method getPre115Biomes (line 56) | public byte[] getPre115Biomes() {

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapData.java
  class MapData (line 13) | public class MapData {
    method MapData (line 24) | public MapData(byte[] data) {
    method MapData (line 28) | public MapData(int posX, byte[] data) {
    method MapData (line 32) | public MapData(int columns, int rows, int posX, int posY, byte[] data) {
    method getColumns (line 40) | public int getColumns() {
    method getRows (line 44) | public int getRows() {
    method getX (line 48) | public int getX() {
    method getY (line 52) | public int getY() {
    method getData (line 56) | public byte[] getData() {
    method toString (line 60) | @Override

FILE: api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapPalette.java
  class MapPalette (line 21) | public class MapPalette {
    method readBuffer (line 39) | private static byte[] readBuffer(String filename) {
    method imageToBytes (line 55) | public static int[] imageToBytes(BufferedImage image) {
    method imageToBytes (line 67) | public static int[] imageToBytes(BufferedImage image, ProtocolVersion ...
    method imageToBytes (line 80) | public static int[] imageToBytes(int[] image, ProtocolVersion version) {
    method imageToBytes (line 93) | public static int[] imageToBytes(int[] from, int[] to, ProtocolVersion...
    method imageToBytes (line 110) | public static byte[] imageToBytes(int[] from, byte[] to, ProtocolVersi...
    method tryFastMatchColor (line 126) | public static byte tryFastMatchColor(int rgb, ProtocolVersion version) {
    method getAlpha (line 140) | private static int getAlpha(int rgb) {
    method convertImage (line 152) | public static int[] convertImage(int[] image, MapVersion version) {
    method convertImage (line 165) | public static int[] convertImage(int[] from, int[] to, MapVersion vers...
    method convertImage (line 183) | public static byte[] convertImage(byte[] from, byte[] to, MapVersion v...
    method convertImage (line 201) | public static byte[] convertImage(int[] from, byte[] to, MapVersion ve...
    method remapByte (line 210) | private static byte remapByte(byte[] remapBuffer, byte oldByte) {
    type MapVersion (line 214) | public enum MapVersion {
      method MapVersion (line 228) | MapVersion(EnumSet<ProtocolVersion> versions) {
      method getVersions (line 232) | public EnumSet<ProtocolVersion> getVersions() {
      method fromProtocolVersion (line 242) | public static MapVersion fromProtocolVersion(ProtocolVersion version) {

FILE: api/src/main/java/net/elytrium/limboapi/api/utils/EnumUniverse.java
  class EnumUniverse (line 13) | public final class EnumUniverse {
    method EnumUniverse (line 15) | private EnumUniverse() {
    method createProtocolLookup (line 19) | public static <T extends Enum<T>> Map<String, T> createProtocolLookup(...

FILE: api/src/main/java/net/elytrium/limboapi/api/utils/OverlayMap.java
  class OverlayMap (line 14) | public abstract class OverlayMap<K, V> implements Map<K, V> {
    method OverlayMap (line 20) | public OverlayMap(Map<K, V> parent, Map<K, V> overlay) {
    method size (line 25) | @Override
    method isEmpty (line 30) | @Override
    method containsKey (line 35) | @Override
    method containsValue (line 44) | @Override
    method get (line 53) | @Override
    method put (line 63) | @Nullable
    method remove (line 69) | @Override
    method putAll (line 74) | @Override
    method clear (line 79) | @Override
    method isOverride (line 84) | public boolean isOverride() {
    method setOverride (line 88) | public void setOverride(boolean override) {

FILE: api/src/main/java/net/elytrium/limboapi/api/utils/OverlayVanillaMap.java
  class OverlayVanillaMap (line 17) | public class OverlayVanillaMap<K, V> extends OverlayMap<K, V> {
    method OverlayVanillaMap (line 19) | public OverlayVanillaMap(Map<K, V> parent, Map<K, V> overlay) {
    method keySet (line 23) | @Override
    method values (line 28) | @NotNull
    method entrySet (line 34) | @NotNull

FILE: api/src/main/templates/net/elytrium/limboapi/BuildConstants.java
  class BuildConstants (line 11) | public class BuildConstants {

FILE: plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java
  class LimboAPI (line 121) | @Plugin(
    method LimboAPI (line 165) | @Inject
    method onProxyInitialization (line 207) | @Subscribe
    method postProxyInitialization (line 278) | @Subscribe(order = PostOrder.LAST)
    method reload (line 283) | public void reload() {
    method reloadVersion (line 308) | private void reloadVersion() {
    method reloadPreparedPacketFactory (line 326) | public void reloadPreparedPacketFactory() {
    method createSimpleBlock (line 339) | @Override
    method createSimpleBlock (line 344) | @Override
    method createSimpleBlock (line 349) | @Override
    method createSimpleBlock (line 354) | @Override
    method createSimpleBlock (line 359) | @Override
    method createSimpleBlock (line 368) | @Override
    method createSimpleBlock (line 373) | @Override
    method createVirtualWorld (line 378) | @Override
    method createVirtualChunk (line 383) | @Override
    method createVirtualChunk (line 388) | @Override
    method createVirtualChunk (line 393) | @Override
    method createLimbo (line 398) | @Override
    method releasePreparedPacketThread (line 403) | @Override
    method createPreparedPacket (line 408) | @Override
    method createPreparedPacket (line 413) | @Override
    method createConfigPreparedPacket (line 418) | @Override
    method createConfigPreparedPacket (line 423) | @Override
    method encodeSingleLogin (line 428) | public ByteBuf encodeSingleLogin(MinecraftPacket packet, ProtocolVersi...
    method encodeSingleLoginUncompressed (line 432) | public ByteBuf encodeSingleLoginUncompressed(MinecraftPacket packet, P...
    method inject3rdParty (line 436) | public void inject3rdParty(Player player, MinecraftConnection connecti...
    method setState (line 446) | public void setState(MinecraftConnection connection, StateRegistry sta...
    method setActiveSessionHandler (line 452) | public void setActiveSessionHandler(MinecraftConnection connection, St...
    method setEncoderState (line 459) | public void setEncoderState(MinecraftConnection connection, StateRegis...
    method fixDecoderState (line 482) | public void fixDecoderState(MinecraftConnection connection, StateRegis...
    method deject3rdParty (line 496) | public void deject3rdParty(ChannelPipeline pipeline) {
    method fixDecompressor (line 500) | public void fixDecompressor(ChannelPipeline pipeline, int threshold, b...
    method fixCompressor (line 519) | public void fixCompressor(ChannelPipeline pipeline, ProtocolVersion ve...
    method passLoginLimbo (line 544) | @Override
    method getItem (line 551) | @Override
    method getItem (line 556) | @Override
    method getLegacyItem (line 561) | @Override
    method createItemComponentMap (line 566) | @Override
    method getBlockEntity (line 571) | @Override
    method getPacketFactory (line 576) | @Override
    method getServer (line 581) | public VelocityServer getServer() {
    method setLimboJoined (line 585) | public void setLimboJoined(Player player) {
    method unsetLimboJoined (line 593) | public void unsetLimboJoined(Player player) {
    method isLimboJoined (line 597) | public boolean isLimboJoined(Player player) {
    method getPackets (line 601) | public CachedPackets getPackets() {
    method addLoginQueue (line 605) | public void addLoginQueue(Player player, LoginTasksQueue queue) {
    method removeLoginQueue (line 609) | public void removeLoginQueue(Player player) {
    method hasLoginQueue (line 613) | public boolean hasLoginQueue(Player player) {
    method getLoginQueue (line 617) | public LoginTasksQueue getLoginQueue(Player player) {
    method setKickCallback (line 621) | public void setKickCallback(Player player, Function<KickedFromServerEv...
    method removeKickCallback (line 625) | public void removeKickCallback(Player player) {
    method getKickCallback (line 629) | public Function<KickedFromServerEvent, Boolean> getKickCallback(Player...
    method setNextServer (line 633) | public void setNextServer(Player player, RegisteredServer nextServer) {
    method removeNextServer (line 637) | public void removeNextServer(Player player) {
    method hasNextServer (line 641) | public boolean hasNextServer(Player player) {
    method getNextServer (line 645) | public RegisteredServer getNextServer(Player player) {
    method setInitialID (line 649) | public void setInitialID(Player player, UUID nextServer) {
    method removeInitialID (line 653) | public void removeInitialID(Player player) {
    method getInitialID (line 657) | public UUID getInitialID(Player player) {
    method getLoginListener (line 661) | public LoginListener getLoginListener() {
    method isCompressionEnabled (line 665) | public boolean isCompressionEnabled() {
    method getPreparedPacketFactory (line 669) | public PreparedPacketFactory getPreparedPacketFactory() {
    method getPrepareMinVersion (line 673) | public ProtocolVersion getPrepareMinVersion() {
    method getPrepareMaxVersion (line 677) | public ProtocolVersion getPrepareMaxVersion() {
    method getEventManagerHook (line 681) | public EventManagerHook getEventManagerHook() {
    method openWorldFile (line 685) | @Override
    method openWorldFile (line 690) | @Override
    method openWorldFile (line 695) | @Override
    method setLogger (line 700) | private static void setLogger(Logger logger) {
    method getLogger (line 704) | public static Logger getLogger() {
    method setSerializer (line 708) | private static void setSerializer(Serializer serializer) {
    method getSerializer (line 712) | public static Serializer getSerializer() {

FILE: plugin/src/main/java/net/elytrium/limboapi/Settings.java
  class Settings (line 24) | public class Settings extends YamlConfig {
    class MAIN (line 46) | @Comment("Don't use \\n, use {NL} for new line, and {PRFX} for prefix.")
      class MESSAGES (line 131) | public static class MESSAGES {

FILE: plugin/src/main/java/net/elytrium/limboapi/file/MCEditSchematicFile.java
  class MCEditSchematicFile (line 25) | public class MCEditSchematicFile implements WorldFile {
    method MCEditSchematicFile (line 33) | public MCEditSchematicFile(CompoundBinaryTag tag) {
    method toWorld (line 44) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/file/StructureNbtFile.java
  class StructureNbtFile (line 30) | public class StructureNbtFile implements WorldFile {
    method StructureNbtFile (line 35) | public StructureNbtFile(CompoundBinaryTag tag) {
    method toWorld (line 40) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/file/WorldEditSchemFile.java
  class WorldEditSchemFile (line 32) | public class WorldEditSchemFile implements WorldFile {
    method WorldEditSchemFile (line 41) | public WorldEditSchemFile(CompoundBinaryTag rootTag) {
    method toWorld (line 81) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/file/WorldFileTypeRegistry.java
  type WorldFileTypeRegistry (line 30) | public enum WorldFileTypeRegistry {
    method WorldFileTypeRegistry (line 45) | WorldFileTypeRegistry(BuiltInWorldFileType apiType, Function<CompoundB...
    method fromApiType (line 50) | public static WorldFileTypeRegistry fromApiType(BuiltInWorldFileType a...
    method fromApiType (line 54) | public static WorldFile fromApiType(BuiltInWorldFileType apiType, Path...
    method fromApiType (line 58) | public static WorldFile fromApiType(BuiltInWorldFileType apiType, Inpu...
    method fromApiType (line 62) | public static WorldFile fromApiType(BuiltInWorldFileType apiType, Comp...
    method fromNbt (line 66) | public WorldFile fromNbt(Path file) throws IOException {
    method fromNbt (line 70) | public WorldFile fromNbt(InputStream stream) throws IOException {
    method fromNbt (line 74) | public WorldFile fromNbt(CompoundBinaryTag tag) {

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/disconnect/DisconnectListener.java
  class DisconnectListener (line 25) | public class DisconnectListener {
    method DisconnectListener (line 29) | public DisconnectListener(LimboAPI plugin) {
    method onDisconnect (line 33) | @Subscribe

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/dummy/ClosedChannel.java
  class ClosedChannel (line 35) | public class ClosedChannel implements Channel {
    method ClosedChannel (line 39) | public ClosedChannel(EventLoop eventLoop) {
    method id (line 43) | @Override
    method eventLoop (line 48) | @Override
    method parent (line 53) | @Override
    method config (line 58) | @Override
    method isOpen (line 63) | @Override
    method isRegistered (line 68) | @Override
    method isActive (line 73) | @Override
    method metadata (line 78) | @Override
    method localAddress (line 83) | @Override
    method remoteAddress (line 88) | @Override
    method closeFuture (line 93) | @Override
    method isWritable (line 98) | @Override
    method bytesBeforeUnwritable (line 103) | @Override
    method bytesBeforeWritable (line 108) | @Override
    method unsafe (line 113) | @Override
    method pipeline (line 118) | @Override
    method alloc (line 123) | @Override
    method bind (line 128) | @Override
    method bind (line 133) | @Override
    method connect (line 138) | @Override
    method connect (line 143) | @Override
    method connect (line 148) | @Override
    method connect (line 153) | @Override
    method disconnect (line 158) | @Override
    method disconnect (line 163) | @Override
    method close (line 168) | @Override
    method close (line 173) | @Override
    method deregister (line 178) | @Override
    method deregister (line 183) | @Override
    method read (line 188) | @Override
    method write (line 193) | @Override
    method write (line 198) | @Override
    method flush (line 203) | @Override
    method writeAndFlush (line 208) | @Override
    method writeAndFlush (line 213) | @Override
    method newPromise (line 218) | @Override
    method newProgressivePromise (line 223) | @Override
    method newSucceededFuture (line 228) | @Override
    method newFailedFuture (line 233) | @Override
    method voidPromise (line 238) | @Override
    method attr (line 243) | @Override
    method hasAttr (line 248) | @Override
    method compareTo (line 253) | @Override
    method equals (line 258) | @Override
    method hashCode (line 263) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/dummy/ClosedMinecraftConnection.java
  class ClosedMinecraftConnection (line 24) | public class ClosedMinecraftConnection extends MinecraftConnection {
    method ClosedMinecraftConnection (line 26) | public ClosedMinecraftConnection(Channel channel, VelocityServer serve...
    method isClosed (line 30) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/dummy/DummyEventPool.java
  class DummyEventPool (line 38) | @SuppressWarnings("ConstantConditions")
    method parent (line 42) | @Override
    method inEventLoop (line 47) | @Override
    method inEventLoop (line 52) | @Override
    method newPromise (line 57) | @Override
    method newProgressivePromise (line 62) | @Override
    method newSucceededFuture (line 67) | @Override
    method newFailedFuture (line 72) | @Override
    method isShuttingDown (line 77) | @Override
    method shutdownGracefully (line 82) | @Override
    method shutdownGracefully (line 87) | @Override
    method terminationFuture (line 92) | @Override
    method shutdown (line 97) | @Override
    method shutdownNow (line 102) | @Override
    method isShutdown (line 107) | @Override
    method isTerminated (line 112) | @Override
    method awaitTermination (line 117) | @Override
    method next (line 122) | @Override
    method iterator (line 127) | @Override
    method submit (line 132) | @Override
    method submit (line 137) | @Override
    method submit (line 142) | @Override
    method invokeAll (line 147) | @NonNull
    method invokeAll (line 153) | @NonNull
    method invokeAny (line 159) | @NonNull
    method invokeAny (line 165) | @Override
    method schedule (line 170) | @Override
    method schedule (line 175) | @Override
    method scheduleAtFixedRate (line 180) | @Override
    method scheduleWithFixedDelay (line 185) | @Override
    method register (line 190) | @Override
    method register (line 195) | @Override
    method register (line 200) | @Override
    method execute (line 205) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java
  class EventManagerHook (line 46) | @SuppressWarnings("unchecked")
    method EventManagerHook (line 62) | public EventManagerHook(LimboAPI plugin, VelocityEventManager eventMan...
    method onGameProfileRequest (line 67) | @Subscribe(order = PostOrder.FIRST)
    method onKickedFromServer (line 110) | @Subscribe(order = PostOrder.LAST)
    method proceedProfile (line 128) | public void proceedProfile(GameProfile profile) {
    method reloadHandlers (line 132) | @SuppressWarnings("rawtypes")

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginListener.java
  class LoginListener (line 93) | public class LoginListener {
    method LoginListener (line 106) | public LoginListener(LimboAPI plugin, VelocityServer server) {
    method hookInitialServer (line 111) | @Subscribe
    method hookLoginSession (line 120) | @SuppressWarnings("ConstantConditions")
    method fireRegisterEvent (line 276) | private void fireRegisterEvent(ConnectedPlayer player, MinecraftConnec...
    method hookPlaySession (line 289) | @Subscribe

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java
  class LoginTasksQueue (line 83) | public class LoginTasksQueue {
    method LoginTasksQueue (line 101) | public LoginTasksQueue(LimboAPI plugin, Object handler, VelocityServer...
    method next (line 111) | public void next() {
    method finish (line 123) | private void finish() {
    method initialize (line 199) | private void initialize(MinecraftConnection connection) throws Throwab...
    method connectToServer (line 240) | @SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/login/confirmation/LoginConfirmHandler.java
  class LoginConfirmHandler (line 38) | public class LoginConfirmHandler implements MinecraftSessionHandler {
    method LoginConfirmHandler (line 51) | public LoginConfirmHandler(LimboAPI plugin, MinecraftConnection connec...
    method setPlayer (line 56) | public void setPlayer(ConnectedPlayer player) {
    method isDone (line 60) | public boolean isDone() {
    method thenRun (line 64) | public CompletableFuture<Void> thenRun(Runnable runnable) {
    method waitForConfirmation (line 68) | public void waitForConfirmation(Runnable runnable) {
    method handle (line 94) | @Override
    method handleGeneric (line 101) | @Override
    method handleUnknown (line 109) | @Override
    method writabilityChanged (line 114) | @Override
    method disconnected (line 125) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/LegacyPlayerListItemHook.java
  class LegacyPlayerListItemHook (line 40) | @SuppressWarnings("unchecked")
    method LegacyPlayerListItemHook (line 47) | private LegacyPlayerListItemHook(LimboAPI plugin) {
    method handle (line 51) | @Override
    method init (line 87) | public static void init(LimboAPI plugin, StateRegistry.PacketRegistry ...

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/LimboCompressDecoder.java
  type LimboCompressDecoder (line 20) | public interface LimboCompressDecoder {

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/MinecraftDiscardCompressDecoder.java
  class MinecraftDiscardCompressDecoder (line 25) | public class MinecraftDiscardCompressDecoder extends MessageToMessageDec...
    method decode (line 27) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/MinecraftLimitedCompressDecoder.java
  class MinecraftLimitedCompressDecoder (line 46) | public class MinecraftLimitedCompressDecoder extends MinecraftCompressDe...
    method MinecraftLimitedCompressDecoder (line 53) | public MinecraftLimitedCompressDecoder(int threshold, VelocityCompress...
    method decode (line 59) | @Override
    method setUncompressedCap (line 85) | public void setUncompressedCap(int uncompressedCap) {

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/PreparedPacketImpl.java
  class PreparedPacketImpl (line 26) | public class PreparedPacketImpl extends PreparedPacket implements net.el...
    method PreparedPacketImpl (line 28) | public PreparedPacketImpl(ProtocolVersion minVersion, ProtocolVersion ...
    method prepare (line 32) | @Override
    method prepare (line 37) | @Override
    method prepare (line 42) | @Override
    method prepare (line 47) | @Override
    method prepare (line 52) | @Override
    method prepare (line 57) | @Override
    method prepare (line 62) | @Override
    method prepare (line 67) | @Override
    method prepare (line 72) | @Override
    method prepare (line 77) | @Override
    method prepare (line 82) | @Override
    method prepare (line 87) | @Override
    method build (line 92) | @Override
    method release (line 97) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/RemovePlayerInfoHook.java
  class RemovePlayerInfoHook (line 40) | @SuppressWarnings("unchecked")
    method RemovePlayerInfoHook (line 47) | private RemovePlayerInfoHook(LimboAPI plugin) {
    method handle (line 51) | @Override
    method init (line 81) | public static void init(LimboAPI plugin, StateRegistry.PacketRegistry ...

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/ServerLoginSuccessHook.java
  class ServerLoginSuccessHook (line 23) | public class ServerLoginSuccessHook extends ServerLoginSuccessPacket imp...

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/packet/UpsertPlayerInfoHook.java
  class UpsertPlayerInfoHook (line 41) | @SuppressWarnings("unchecked")
    method UpsertPlayerInfoHook (line 48) | private UpsertPlayerInfoHook(LimboAPI plugin) {
    method handle (line 52) | @Override
    method init (line 98) | public static void init(LimboAPI plugin, StateRegistry.PacketRegistry ...

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingKeyedVelocityTabList.java
  class RewritingKeyedVelocityTabList (line 30) | public class RewritingKeyedVelocityTabList extends KeyedVelocityTabList ...
    method RewritingKeyedVelocityTabList (line 38) | public RewritingKeyedVelocityTabList(ConnectedPlayer player, ProxyServ...
    method addEntry (line 46) | @Override
    method getEntry (line 51) | @Override
    method containsEntry (line 56) | @Override
    method removeEntry (line 61) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingTabList.java
  type RewritingTabList (line 26) | public interface RewritingTabList {
    method getPlayer (line 28) | Player getPlayer();
    method rewriteEntry (line 30) | default TabListEntry rewriteEntry(TabListEntry entry) {
    method rewriteUuid (line 50) | default UUID rewriteUuid(UUID uuid) {

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingVelocityTabList.java
  class RewritingVelocityTabList (line 32) | public class RewritingVelocityTabList extends VelocityTabList implements...
    method RewritingVelocityTabList (line 51) | public RewritingVelocityTabList(ConnectedPlayer player) {
    method addEntry (line 62) | @Override
    method getEntry (line 67) | @Override
    method containsEntry (line 72) | @Override
    method removeEntry (line 77) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingVelocityTabListLegacy.java
  class RewritingVelocityTabListLegacy (line 30) | public class RewritingVelocityTabListLegacy extends VelocityTabListLegac...
    method RewritingVelocityTabListLegacy (line 38) | public RewritingVelocityTabListLegacy(ConnectedPlayer player, ProxySer...
    method addEntry (line 46) | @Override
    method getEntry (line 51) | @Override
    method containsEntry (line 56) | @Override
    method removeEntry (line 61) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/material/Biome.java
  type Biome (line 33) | public enum Biome implements VirtualBiome {
    method Biome (line 100) | Biome(BuiltInBiome index, String name, int id, Element element) {
    method encodeBiome (line 107) | public CompoundBinaryTag encodeBiome(ProtocolVersion version) {
    method getName (line 115) | @Override
    method getID (line 120) | @Override
    method getElement (line 125) | public Element getElement() {
    method of (line 135) | public static Biome of(BuiltInBiome index) {
    method getRegistry (line 139) | public static CompoundBinaryTag getRegistry(ProtocolVersion version) {
    class Element (line 146) | public static class Element {
      method Element (line 156) | public Element(boolean hasPrecipitation, float depth, float temperat...
      method encode (line 166) | public CompoundBinaryTag encode(ProtocolVersion version) {
      method hasPrecipitation (line 184) | public boolean hasPrecipitation() {
      method getDepth (line 188) | public float getDepth() {
      method getTemperature (line 192) | public float getTemperature() {
      method getScale (line 196) | public float getScale() {
      method getDownfall (line 200) | public float getDownfall() {
      method getCategory (line 204) | public String getCategory() {
      method getEffects (line 208) | public Effects getEffects() {
      method toString (line 212) | @Override
    class Effects (line 226) | public static class Effects {
      method Effects (line 248) | public Effects(int skyColor,
      method encode (line 266) | public CompoundBinaryTag encode() {
      method builder (line 305) | public static EffectsBuilder builder(int skyColor, int waterFogColor...
      method getSkyColor (line 313) | public int getSkyColor() {
      method getWaterFogColor (line 317) | public int getWaterFogColor() {
      method getFogColor (line 321) | public int getFogColor() {
      method getWaterColor (line 325) | public int getWaterColor() {
      method getFoliageColor (line 329) | @Nullable
      method getGrassColorModifier (line 334) | @Nullable
      method getMusic (line 339) | @Nullable
      method getAmbientSound (line 344) | @Nullable
      method getAdditionsSound (line 349) | @Nullable
      method getMoodSound (line 354) | @Nullable
      method getParticle (line 359) | @Nullable
      method toString (line 364) | @Override
      class MoodSound (line 381) | public static final class MoodSound {
        method MoodSound (line 389) | private MoodSound(int tickDelay, double offset, int blockSearchExt...
        method of (line 396) | public static MoodSound of(int tickDelay, double offset, int block...
        method encode (line 400) | public CompoundBinaryTag encode() {
        method getTickDelay (line 409) | public int getTickDelay() {
        method getOffset (line 413) | public double getOffset() {
        method getBlockSearchExtent (line 417) | public int getBlockSearchExtent() {
        method getSound (line 421) | @NonNull
        method toString (line 426) | @Override
      class Music (line 437) | public static final class Music {
        method Music (line 445) | private Music(boolean replaceCurrentMusic, @NonNull String sound, ...
        method of (line 452) | public static Music of(boolean replaceCurrentMusic, @NonNull Strin...
        method encode (line 456) | public CompoundBinaryTag encode() {
        method isReplaceCurrentMusic (line 465) | public boolean isReplaceCurrentMusic() {
        method getSound (line 469) | @NonNull
        method getMaxDelay (line 474) | public int getMaxDelay() {
        method getMinDelay (line 478) | public int getMinDelay() {
        method toString (line 482) | @Override
      class AdditionsSound (line 493) | public static final class AdditionsSound {
        method AdditionsSound (line 499) | private AdditionsSound(@NonNull String sound, double tickChance) {
        method of (line 504) | public static AdditionsSound of(@NonNull String sound, double tick...
        method encode (line 508) | public CompoundBinaryTag encode() {
        method getSound (line 515) | @NonNull
        method getTickChance (line 520) | public double getTickChance() {
        method toString (line 524) | @Override
      class Particle (line 533) | public static final class Particle {
        method Particle (line 539) | private Particle(float probability, @NonNull ParticleOptions optio...
        method of (line 544) | public static Particle of(float probability, @NonNull ParticleOpti...
        method encode (line 548) | public CompoundBinaryTag encode() {
        method getProbability (line 555) | public float getProbability() {
        method getOptions (line 559) | @NonNull
        method toString (line 564) | @Override
        class ParticleOptions (line 572) | public static class ParticleOptions {
          method ParticleOptions (line 577) | public ParticleOptions(@NonNull String type) {
          method encode (line 581) | public CompoundBinaryTag encode() {
          method getType (line 587) | @NonNull
          method toString (line 592) | @Override
      class EffectsBuilder (line 601) | public static class EffectsBuilder {
        method skyColor (line 615) | public EffectsBuilder skyColor(int skyColor) {
        method waterFogColor (line 620) | public EffectsBuilder waterFogColor(int waterFogColor) {
        method fogColor (line 625) | public EffectsBuilder fogColor(int fogColor) {
        method waterColor (line 630) | public EffectsBuilder waterColor(int waterColor) {
        method foliageColor (line 635) | public EffectsBuilder foliageColor(Integer foliageColor) {
        method grassColorModifier (line 640) | public EffectsBuilder grassColorModifier(String grassColorModifier) {
        method music (line 645) | public EffectsBuilder music(Music music) {
        method ambientSound (line 650) | public EffectsBuilder ambientSound(String ambientSound) {
        method additionsSound (line 655) | public EffectsBuilder additionsSound(AdditionsSound additionsSound) {
        method moodSound (line 660) | public EffectsBuilder moodSound(MoodSound moodSound) {
        method particle (line 665) | public EffectsBuilder particle(Particle particle) {
        method build (line 670) | public Effects build() {
        method toString (line 686) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/mcprotocollib/BitStorage116.java
  class BitStorage116 (line 34) | public class BitStorage116 implements CompactStorage {
    method BitStorage116 (line 69) | public BitStorage116(int bitsPerEntry, int size) {
    method BitStorage116 (line 73) | public BitStorage116(int bitsPerEntry, int size, long[] data) {
    method set (line 100) | @Override
    method get (line 113) | @Override
    method write (line 124) | @Override
    method getBitsPerEntry (line 136) | @Override
    method getDataLength (line 141) | @Override
    method getData (line 150) | @Override
    method copy (line 155) | @Override
    method cellIndex (line 160) | private int cellIndex(int index) {
    method bitIndex (line 164) | private int bitIndex(int index, int cellIndex) {

FILE: plugin/src/main/java/net/elytrium/limboapi/mcprotocollib/BitStorage19.java
  class BitStorage19 (line 34) | public class BitStorage19 implements CompactStorage {
    method BitStorage19 (line 41) | public BitStorage19(int bitsPerEntry, int size) {
    method BitStorage19 (line 45) | public BitStorage19(int bitsPerEntry, long[] data) {
    method set (line 57) | @Override
    method get (line 76) | @Override
    method write (line 94) | @Override
    method getBitsPerEntry (line 104) | @Override
    method getDataLength (line 109) | @Override
    method getData (line 114) | @Override
    method copy (line 119) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/LimboProtocol.java
  class LimboProtocol (line 64) | @SuppressWarnings("unchecked")
    method overlayRegistry (line 136) | private static void overlayRegistry(StateRegistry stateRegistry,
    method init (line 182) | public static void init() throws Throwable {
    method createLocalStateRegistry (line 530) | public static StateRegistry createLocalStateRegistry() {
    method register (line 541) | public static void register(StateRegistry stateRegistry,
    method register (line 552) | public static void register(StateRegistry stateRegistry,
    method register (line 576) | public static void register(StateRegistry.PacketRegistry registry,
    method createMapping (line 605) | private static StateRegistry.PacketMapping createMapping(int id, Proto...
    method createMapping (line 609) | private static StateRegistry.PacketMapping createMapping(int id, Proto...
    method getLimboStateRegistry (line 614) | public static StateRegistry getLimboStateRegistry() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/data/BiomeStorage118.java
  class BiomeStorage118 (line 34) | public class BiomeStorage118 {
    method BiomeStorage118 (line 42) | public BiomeStorage118(ProtocolVersion version) {
    method BiomeStorage118 (line 53) | private BiomeStorage118(ProtocolVersion version, List<VirtualBiome> pa...
    method set (line 60) | public void set(int posX, int posY, int posZ, @NonNull VirtualBiome bi...
    method set (line 65) | public void set(int index, @NonNull VirtualBiome biome) {
    method get (line 70) | @NonNull
    method get (line 75) | private VirtualBiome get(int index) {
    method write (line 84) | public void write(ByteBuf buf, ProtocolVersion version) {
    method getDataLength (line 96) | public int getDataLength(ProtocolVersion version) {
    method copy (line 108) | public BiomeStorage118 copy() {
    method getIndex (line 112) | private int getIndex(VirtualBiome biome) {
    method resize (line 133) | private void resize(int newSize) {
    method toString (line 143) | @Override
    method index (line 153) | private static int index(int posX, int posY, int posZ) {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/data/BlockStorage17.java
  class BlockStorage17 (line 31) | public class BlockStorage17 implements BlockStorage {
    method BlockStorage17 (line 35) | public BlockStorage17() {
    method BlockStorage17 (line 39) | private BlockStorage17(VirtualBlock[] blocks) {
    method write (line 43) | @Override
    method set (line 78) | @Override
    method get (line 83) | @NonNull
    method getDataLength (line 90) | @Override
    method copy (line 95) | @Override
    method toString (line 100) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/data/BlockStorage19.java
  class BlockStorage19 (line 37) | public class BlockStorage19 implements BlockStorage {
    method BlockStorage19 (line 45) | public BlockStorage19(ProtocolVersion version) {
    method BlockStorage19 (line 56) | private BlockStorage19(ProtocolVersion version, List<VirtualBlock> pal...
    method write (line 63) | @Override
    method set (line 82) | @Override
    method getIndex (line 88) | private int getIndex(VirtualBlock block) {
    method createStorage (line 116) | private CompactStorage createStorage(int bitsPerEntry) {
    method get (line 122) | @NonNull
    method getDataLength (line 133) | @Override
    method copy (line 150) | @Override
    method toString (line 155) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/data/StorageUtils.java
  class StorageUtils (line 22) | public class StorageUtils {
    method fixBitsPerEntry (line 24) | public static int fixBitsPerEntry(ProtocolVersion version, int bitsPer...

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/PacketFactoryImpl.java
  class PacketFactoryImpl (line 46) | public class PacketFactoryImpl implements PacketFactory {
    method createChangeGameStatePacket (line 48) | @Override
    method createChunkDataPacket (line 53) | @Override
    method createChunkDataPacket (line 58) | @Override
    method createChunkUnloadPacket (line 63) | @Override
    method createDefaultSpawnPositionPacket (line 68) | @Override
    method createDefaultSpawnPositionPacket (line 73) | @Override
    method createMapDataPacket (line 78) | @Override
    method createPlayerAbilitiesPacket (line 83) | @Override
    method createPlayerAbilitiesPacket (line 88) | @Override
    method createPositionRotationPacket (line 93) | @Override
    method createSetExperiencePacket (line 99) | @Override
    method createSetSlotPacket (line 104) | @Override
    method createSetSlotPacket (line 109) | @Override
    method createTimeUpdatePacket (line 114) | @Override
    method createUpdateViewPositionPacket (line 119) | @Override
    method createUpdateTagsPacket (line 124) | @Override
    method createUpdateTagsPacket (line 129) | @Override
    method createUpdateTagsPacket (line 134) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MoveOnGroundOnlyPacket.java
  class MoveOnGroundOnlyPacket (line 27) | public class MoveOnGroundOnlyPacket implements MinecraftPacket {
    method decode (line 32) | @Override
    method encode (line 43) | @Override
    method handle (line 48) | @Override
    method decodeExpectedMaxLength (line 57) | @Override
    method decodeExpectedMinLength (line 62) | @Override
    method toString (line 67) | @Override
    method isOnGround (line 75) | public boolean isOnGround() {
    method isCollideHorizontally (line 79) | public boolean isCollideHorizontally() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MovePacket.java
  class MovePacket (line 28) | public class MovePacket implements MinecraftPacket {
    method decode (line 38) | @Override
    method encode (line 58) | @Override
    method handle (line 63) | @Override
    method decodeExpectedMaxLength (line 72) | @Override
    method decodeExpectedMinLength (line 77) | @Override
    method toString (line 82) | @Override
    method getX (line 95) | public double getX() {
    method getY (line 99) | public double getY() {
    method getZ (line 103) | public double getZ() {
    method getYaw (line 107) | public float getYaw() {
    method getPitch (line 111) | public float getPitch() {
    method isOnGround (line 115) | public boolean isOnGround() {
    method isCollideHorizontally (line 119) | public boolean isCollideHorizontally() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MovePositionOnlyPacket.java
  class MovePositionOnlyPacket (line 27) | public class MovePositionOnlyPacket implements MinecraftPacket {
    method decode (line 35) | @Override
    method encode (line 53) | @Override
    method handle (line 58) | @Override
    method decodeExpectedMaxLength (line 67) | @Override
    method decodeExpectedMinLength (line 72) | @Override
    method toString (line 77) | @Override
    method getX (line 88) | public double getX() {
    method getY (line 92) | public double getY() {
    method getZ (line 96) | public double getZ() {
    method isOnGround (line 100) | public boolean isOnGround() {
    method isCollideHorizontally (line 104) | public boolean isCollideHorizontally() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MoveRotationOnlyPacket.java
  class MoveRotationOnlyPacket (line 28) | public class MoveRotationOnlyPacket implements MinecraftPacket {
    method decode (line 35) | @Override
    method encode (line 49) | @Override
    method handle (line 54) | @Override
    method decodeExpectedMaxLength (line 63) | @Override
    method decodeExpectedMinLength (line 68) | @Override
    method toString (line 73) | @Override
    method getYaw (line 83) | public float getYaw() {
    method getPitch (line 87) | public float getPitch() {
    method isOnGround (line 91) | public boolean isOnGround() {
    method isCollideHorizontally (line 95) | public boolean isCollideHorizontally() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/PlayerChatSessionPacket.java
  class PlayerChatSessionPacket (line 30) | @SuppressWarnings("unused")
    method decode (line 36) | @Override
    method encode (line 42) | @Override
    method handle (line 48) | @Override
    method getHolderId (line 58) | public UUID getHolderId() {
    method setHolderId (line 62) | public void setHolderId(UUID holderId) {
    method getPlayerKey (line 66) | public IdentifiedKey getPlayerKey() {
    method setPlayerKey (line 70) | public void setPlayerKey(IdentifiedKey playerKey) {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/TeleportConfirmPacket.java
  class TeleportConfirmPacket (line 27) | public class TeleportConfirmPacket implements MinecraftPacket {
    method decode (line 31) | @Override
    method encode (line 36) | @Override
    method handle (line 41) | @Override
    method decodeExpectedMaxLength (line 50) | @Override
    method decodeExpectedMinLength (line 55) | @Override
    method toString (line 60) | @Override
    method getTeleportID (line 67) | public int getTeleportID() {

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChangeGameStatePacket.java
  class ChangeGameStatePacket (line 26) | public class ChangeGameStatePacket implements MinecraftPacket {
    method ChangeGameStatePacket (line 32) | public ChangeGameStatePacket(int reason, float value) {
    method ChangeGameStatePacket (line 37) | public ChangeGameStatePacket() {
    method decode (line 41) | @Override
    method encode (line 46) | @Override
    method handle (line 52) | @Override
    method toString (line 57) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChunkDataPacket.java
  class ChunkDataPacket (line 49) | public class ChunkDataPacket implements MinecraftPacket {
    method ChunkDataPacket (line 61) | public ChunkDataPacket(ChunkSnapshot chunkSnapshot, boolean hasLegacyS...
    method findHeightMapId (line 96) | private int findHeightMapId(String key) {
    method ChunkDataPacket (line 104) | public ChunkDataPacket() {
    method decode (line 108) | @Override
    method encode (line 113) | @Override
    method createChunkData (line 236) | private ByteBuf createChunkData(ProtocolVersion version) {
    method createHeightMap (line 293) | private CompoundBinaryTag createHeightMap(boolean pre116) {
    method create117Mask (line 317) | private long[] create117Mask() {
    method write17 (line 326) | private void write17(ByteBuf out, ByteBuf data) {
    method handle (line 348) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChunkUnloadPacket.java
  method ChunkUnloadPacket (line 28) | public ChunkUnloadPacket() {
  method decode (line 33) | @Override
  method encode (line 38) | @Override
  method handle (line 57) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/DefaultSpawnPositionPacket.java
  class DefaultSpawnPositionPacket (line 26) | public class DefaultSpawnPositionPacket implements MinecraftPacket {
    method DefaultSpawnPositionPacket (line 35) | public DefaultSpawnPositionPacket(String dimension, int posX, int posY...
    method DefaultSpawnPositionPacket (line 44) | public DefaultSpawnPositionPacket() {
    method decode (line 48) | @Override
    method encode (line 53) | @Override
    method handle (line 80) | @Override
    method toString (line 85) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/MapDataPacket.java
  class MapDataPacket (line 27) | public class MapDataPacket implements MinecraftPacket {
    method MapDataPacket (line 33) | public MapDataPacket(int mapID, byte scale, MapData mapData) {
    method MapDataPacket (line 39) | public MapDataPacket() {
    method decode (line 43) | @Override
    method encode (line 48) | @Override
    method handle (line 85) | @Override
    method toString (line 90) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/PlayerAbilitiesPacket.java
  class PlayerAbilitiesPacket (line 26) | public class PlayerAbilitiesPacket implements MinecraftPacket {
    method PlayerAbilitiesPacket (line 32) | public PlayerAbilitiesPacket(byte flags, float flySpeed, float walkSpe...
    method PlayerAbilitiesPacket (line 38) | public PlayerAbilitiesPacket() {
    method decode (line 42) | @Override
    method encode (line 47) | @Override
    method handle (line 54) | @Override
    method toString (line 59) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/PositionRotationPacket.java
  class PositionRotationPacket (line 26) | public class PositionRotationPacket implements MinecraftPacket {
    method PositionRotationPacket (line 37) | @Deprecated(forRemoval = true)
    method PositionRotationPacket (line 42) | public PositionRotationPacket(double posX, double posY, double posZ, f...
    method PositionRotationPacket (line 53) | public PositionRotationPacket() {
    method decode (line 57) | @Override
    method encode (line 62) | @Override
    method encodeModern (line 71) | public void encodeModern(ByteBuf buf, ProtocolVersion protocolVersion) {
    method encodeLegacy (line 89) | public void encodeLegacy(ByteBuf buf, ProtocolVersion protocolVersion) {
    method handle (line 111) | @Override
    method toString (line 116) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/SetExperiencePacket.java
  class SetExperiencePacket (line 26) | public class SetExperiencePacket implements MinecraftPacket {
    method SetExperiencePacket (line 32) | public SetExperiencePacket(float expBar, int level, int totalExp) {
    method SetExperiencePacket (line 38) | public SetExperiencePacket() {
    method decode (line 42) | @Override
    method encode (line 47) | @Override
    method handle (line 59) | @Override
    method toString (line 64) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/SetSlotPacket.java
  class SetSlotPacket (line 31) | public class SetSlotPacket implements MinecraftPacket {
    method SetSlotPacket (line 43) | public SetSlotPacket(int windowID, int slot, VirtualItem item, int cou...
    method SetSlotPacket (line 54) | public SetSlotPacket() {
    method decode (line 58) | @Override
    method encode (line 63) | @Override
    method encodeModern (line 72) | public void encodeModern(ByteBuf buf, ProtocolUtils.Direction directio...
    method encodeLegacy (line 93) | public void encodeLegacy(ByteBuf buf, ProtocolUtils.Direction directio...
    method handle (line 135) | @Override
    method toString (line 140) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/TimeUpdatePacket.java
  class TimeUpdatePacket (line 26) | public class TimeUpdatePacket implements MinecraftPacket {
    method TimeUpdatePacket (line 31) | public TimeUpdatePacket(long worldAge, long timeOfDay) {
    method TimeUpdatePacket (line 36) | public TimeUpdatePacket() {
    method decode (line 40) | @Override
    method encode (line 45) | @Override
    method handle (line 62) | @Override
    method toString (line 67) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/UpdateTagsPacket.java
  class UpdateTagsPacket (line 30) | public class UpdateTagsPacket implements MinecraftPacket {
    method UpdateTagsPacket (line 34) | public UpdateTagsPacket() {
    method UpdateTagsPacket (line 38) | public UpdateTagsPacket(Map<String, Map<String, List<Integer>>> tags) {
    method toVelocityTags (line 42) | public Map<String, Map<String, int[]>> toVelocityTags() {
    method decode (line 58) | @Override
    method encode (line 63) | @Override
    method writeTagList (line 81) | private static void writeTagList(ByteBuf buf, Map<String, List<Integer...
    method handle (line 90) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/UpdateViewPositionPacket.java
  class UpdateViewPositionPacket (line 26) | public class UpdateViewPositionPacket implements MinecraftPacket {
    method UpdateViewPositionPacket (line 31) | public UpdateViewPositionPacket(int posX, int posZ) {
    method UpdateViewPositionPacket (line 36) | public UpdateViewPositionPacket() {
    method decode (line 40) | @Override
    method encode (line 45) | @Override
    method handle (line 51) | @Override
    method toString (line 56) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/protocol/util/NetworkSection.java
  class NetworkSection (line 34) | public class NetworkSection {
    method NetworkSection (line 47) | public NetworkSection(int index, BlockSection section, NibbleArray3D b...
    method getDataLength (line 55) | public int getDataLength(ProtocolVersion version) {
    method writeData (line 76) | public void writeData(ByteBuf buf, int pass, ProtocolVersion version) {
    method ensureStorageCreated (line 94) | private BlockStorage ensureStorageCreated(ProtocolVersion version) {
    method createStorage (line 108) | private BlockStorage createStorage(ProtocolVersion version) {
    method write17Data (line 116) | private void write17Data(ByteBuf buf, BlockStorage storage, ProtocolVe...
    method write19Data (line 126) | private void write19Data(ByteBuf buf, BlockStorage storage, ProtocolVe...
    method write114Data (line 134) | private void write114Data(ByteBuf buf, BlockStorage storage, ProtocolV...
    method write118Biomes (line 142) | private void write118Biomes(ByteBuf buf, ProtocolVersion version) {
    method ensure118BiomeCreated (line 146) | private BiomeStorage118 ensure118BiomeCreated(ProtocolVersion version) {
    method fillBlocks (line 163) | private void fillBlocks(BlockStorage storage) {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/CachedPackets.java
  class CachedPackets (line 27) | public class CachedPackets {
    method CachedPackets (line 38) | public CachedPackets(LimboAPI plugin) {
    method createPackets (line 42) | public void createPackets() {
    method createDisconnectPacket (line 61) | private DisconnectPacket createDisconnectPacket(String message, Protoc...
    method getTooBigPacket (line 65) | public PreparedPacket getTooBigPacket() {
    method getInvalidPing (line 69) | public PreparedPacket getInvalidPing() {
    method getInvalidSwitch (line 73) | public PreparedPacket getInvalidSwitch() {
    method getTimeOut (line 77) | public PreparedPacket getTimeOut(StateRegistry stateRegistry) {
    method dispose (line 85) | public void dispose() {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java
  class LimboImpl (line 123) | public class LimboImpl implements Limbo {
    method LimboImpl (line 182) | public LimboImpl(LimboAPI plugin, VirtualWorld world) {
    method refresh (line 190) | protected void refresh() {
    method createLevelChunksLoadStartGameState (line 283) | private ChangeGameStatePacket createLevelChunksLoadStartGameState() {
    method createRegistrySyncLegacy (line 287) | private RegistrySyncPacket createRegistrySyncLegacy(ProtocolVersion ve...
    method createRegistrySyncModern (line 298) | private void createRegistrySyncModern(PreparedPacket packet, ProtocolV...
    method createTagsUpdate (line 352) | private TagsUpdatePacket createTagsUpdate(ProtocolVersion version) {
    method addPostJoin (line 356) | private PreparedPacket addPostJoin(PreparedPacket packet) {
    method spawnPlayer (line 365) | @Override
    method spawnPlayerLocal (line 436) | protected void spawnPlayerLocal(Class<? extends LimboSessionHandler> h...
    method spawnPlayerLocal (line 468) | private void spawnPlayerLocal(ConnectedPlayer player, LimboSessionHand...
    method onSpawn (line 556) | protected void onSpawn(Class<? extends LimboSessionHandler> handlerClass,
    method respawnPlayer (line 615) | @Override
    method getCurrentOnline (line 651) | @Override
    method onDisconnect (line 656) | public void onDisconnect() {
    method setName (line 678) | @Override
    method setReadTimeout (line 686) | @Override
    method setWorldTime (line 692) | @Override
    method setGameMode (line 700) | @Override
    method setShouldRejoin (line 708) | @Override
    method setShouldRespawn (line 716) | @Override
    method setShouldUpdateTags (line 724) | @Override
    method setReducedDebugInfo (line 732) | @Override
    method setViewDistance (line 740) | @Override
    method setSimulationDistance (line 748) | @Override
    method setMaxSuppressPacketLength (line 756) | @Override
    method registerCommand (line 763) | @Override
    method registerCommand (line 770) | @Override
    method registerPacket (line 782) | public Limbo registerPacket(PacketDirection direction, Class<?> packet...
    method dispose (line 793) | @Override
    method takeSnapshot (line 802) | private List<PreparedPacket> takeSnapshot() {
    method localDispose (line 836) | private void localDispose() {
    method tryRegister (line 844) | private <T extends Command> boolean tryRegister(CommandRegistrar<T> re...
    method createRegistry (line 854) | private CompoundBinaryTag createRegistry(String registryName, Map<Stri...
    method createRegistry (line 869) | private CompoundBinaryTag createRegistry(String registryName, ListBina...
    method createDimensionData (line 875) | private CompoundBinaryTag createDimensionData(Dimension dimension, Pro...
    method createJoinGamePacket (line 963) | private JoinGamePacket createJoinGamePacket(ProtocolVersion version) {
    method soundVariant (line 1332) | private CompoundBinaryTag soundVariant(Function<CompoundBinaryTag.Buil...
    method createLegacyJoinGamePacket (line 1339) | private JoinGamePacket createLegacyJoinGamePacket() {
    method createDefaultSpawnPositionPacket (line 1345) | private DefaultSpawnPositionPacket createDefaultSpawnPositionPacket() {
    method createWorldTicksPacket (line 1350) | private TimeUpdatePacket createWorldTicksPacket() {
    method createAvailableCommandsPacket (line 1354) | private AvailableCommandsPacket createAvailableCommandsPacket() {
    method createFirstChunks (line 1364) | private PreparedPacket createFirstChunks() {
    method createDelayedChunksPackets (line 1382) | private List<PreparedPacket> createDelayedChunksPackets() {
    method createFastClientServerSwitch (line 1415) | private List<MinecraftPacket> createFastClientServerSwitch(JoinGamePac...
    method createSafeClientServerSwitch (line 1441) | private List<MinecraftPacket> createSafeClientServerSwitch(JoinGamePac...
    method getBrandMessage (line 1462) | private PreparedPacket getBrandMessage(Class<? extends LimboSessionHan...
    method createBrandMessage (line 1471) | private PluginMessagePacket createBrandMessage(ProtocolVersion version) {
    method createPlayerPosAndLook (line 1483) | private PositionRotationPacket createPlayerPosAndLook(double posX, dou...
    method createUpdateViewPosition (line 1487) | private UpdateViewPositionPacket createUpdateViewPosition(int posX, in...
    method createChunkData (line 1491) | private ChunkDataPacket createChunkData(VirtualChunk chunk, Dimension ...
    method getReadTimeout (line 1495) | public Integer getReadTimeout() {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java
  class LimboPlayerImpl (line 57) | public class LimboPlayerImpl implements LimboPlayer {
    method LimboPlayerImpl (line 68) | public LimboPlayerImpl(LimboAPI plugin, LimboImpl server, ConnectedPla...
    method writePacket (line 78) | @Override
    method writePacketAndFlush (line 83) | @Override
    method flushPackets (line 88) | @Override
    method closeWith (line 93) | @Override
    method getScheduledExecutor (line 98) | @Override
    method sendImage (line 103) | @Override
    method sendImage (line 108) | @Override
    method sendImage (line 113) | @Override
    method sendImage (line 118) | @Override
    method sendImage (line 123) | @Override
    method setInventory (line 176) | @Override
    method setInventory (line 181) | @Override
    method setInventory (line 186) | @Override
    method setInventory (line 191) | @Override
    method setGameMode (line 196) | @Override
    method teleport (line 227) | @Override
    method disableFalling (line 232) | @Override
    method enableFalling (line 237) | @Override
    method disconnect (line 242) | @Override
    method disconnect (line 267) | @Override
    method deject (line 291) | private void deject() {
    method sendToRegisteredServer (line 296) | private void sendToRegisteredServer(RegisteredServer server) {
    method sendAbilities (line 321) | @Override
    method sendAbilities (line 326) | @Override
    method sendAbilities (line 331) | @Override
    method getAbilities (line 336) | @Override
    method getGameMode (line 345) | @Override
    method getServer (line 350) | @Override
    method getProxyPlayer (line 355) | @Override
    method getPing (line 360) | @Override
    method setWorldTime (line 370) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java
  class LimboSessionHandlerImpl (line 69) | public class LimboSessionHandlerImpl implements MinecraftSessionHandler {
    method LimboSessionHandlerImpl (line 105) | public LimboSessionHandlerImpl(LimboAPI plugin, LimboImpl limbo, Conne...
    method onConfig (line 124) | public void onConfig(LimboPlayer player) {
    method onSpawn (line 169) | public void onSpawn() {
    method disconnectToConfig (line 176) | public void disconnectToConfig(Runnable runnable) {
    method handle (line 203) | @Override
    method handle (line 230) | public boolean handle(MovePacket packet) {
    method handle (line 241) | public boolean handle(MovePositionOnlyPacket packet) {
    method handle (line 250) | public boolean handle(MoveRotationOnlyPacket packet) {
    method handle (line 259) | public boolean handle(MoveOnGroundOnlyPacket packet) {
    method handle (line 267) | public boolean handle(TeleportConfirmPacket packet) {
    method handle (line 275) | @Override
    method handle (line 302) | @Override
    method handle (line 307) | @Override
    method handle (line 312) | @Override
    method handle (line 317) | @Override
    method handle (line 322) | @Override
    method handleChat (line 327) | private boolean handleChat(String message) {
    method handleUnknown (line 338) | @Override
    method handleGeneric (line 349) | @Override
    method writabilityChanged (line 386) | @Override
    method kickTooBigPacket (line 397) | private void kickTooBigPacket(String type, int length) {
    method release (line 405) | public void release() {
    method disconnected (line 420) | @Override
    method disconnect (line 465) | public void disconnect(Runnable runnable) {
    method getPreviousServer (line 476) | public RegisteredServer getPreviousServer() {
    method getPing (line 480) | public int getPing() {
    method setJoinGameTriggered (line 484) | public void setJoinGameTriggered(boolean joinGameTriggered) {
    method setRespawnTask (line 488) | public void setRespawnTask(ScheduledFuture<?> respawnTask) {
    method getSettings (line 496) | public ClientSettingsPacket getSettings() {
    method getBrand (line 500) | public String getBrand() {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/SimpleItemComponentManager.java
  class SimpleItemComponentManager (line 46) | public class SimpleItemComponentManager {
    method SimpleItemComponentManager (line 87) | public SimpleItemComponentManager() {
    method register (line 140) | public <T> void register(String name, Function<ProtocolVersion, Writea...
    method createComponent (line 144) | public <T> WriteableItemComponent<T> createComponent(ProtocolVersion v...
    method getId (line 148) | public int getId(String name, ProtocolVersion version) {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/SimpleItemComponentMap.java
  class SimpleItemComponentMap (line 29) | public class SimpleItemComponentMap implements ItemComponentMap {
    method SimpleItemComponentMap (line 35) | public SimpleItemComponentMap(SimpleItemComponentManager manager) {
    method add (line 39) | @Override
    method remove (line 45) | @Override
    method getAdded (line 51) | @Override
    method getRemoved (line 56) | @Override
    method read (line 61) | @Override
    method write (line 67) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/BooleanItemComponent.java
  class BooleanItemComponent (line 23) | public class BooleanItemComponent extends WriteableItemComponent<Boolean> {
    method BooleanItemComponent (line 25) | public BooleanItemComponent(String name) {
    method write (line 29) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/ComponentItemComponent.java
  class ComponentItemComponent (line 25) | public class ComponentItemComponent extends WriteableItemComponent<Compo...
    method ComponentItemComponent (line 27) | public ComponentItemComponent(String name) {
    method write (line 31) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/ComponentsItemComponent.java
  class ComponentsItemComponent (line 27) | public class ComponentsItemComponent extends WriteableItemComponent<List...
    method ComponentsItemComponent (line 29) | public ComponentsItemComponent(String name) {
    method write (line 33) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/DyedColorItemComponent.java
  class DyedColorItemComponent (line 24) | public class DyedColorItemComponent extends WriteableItemComponent<Pair<...
    method DyedColorItemComponent (line 26) | public DyedColorItemComponent(String name) {
    method write (line 30) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/EmptyItemComponent.java
  class EmptyItemComponent (line 24) | public class EmptyItemComponent extends WriteableItemComponent<BinaryTag> {
    method EmptyItemComponent (line 26) | public EmptyItemComponent(String name) {
    method write (line 30) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/EnchantmentsItemComponent.java
  class EnchantmentsItemComponent (line 26) | public class EnchantmentsItemComponent extends WriteableItemComponent<Pa...
    method EnchantmentsItemComponent (line 28) | public EnchantmentsItemComponent(String name) {
    method write (line 32) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/GameProfileItemComponent.java
  class GameProfileItemComponent (line 26) | public class GameProfileItemComponent extends WriteableItemComponent<Gam...
    method GameProfileItemComponent (line 30) | public GameProfileItemComponent(String name) {
    method write (line 34) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/IntItemComponent.java
  class IntItemComponent (line 23) | public class IntItemComponent extends WriteableItemComponent<Integer> {
    method IntItemComponent (line 25) | public IntItemComponent(String name) {
    method write (line 29) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/StringItemComponent.java
  class StringItemComponent (line 24) | public class StringItemComponent extends WriteableItemComponent<String> {
    method StringItemComponent (line 26) | public StringItemComponent(String name) {
    method write (line 30) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/StringsItemComponent.java
  class StringsItemComponent (line 25) | public class StringsItemComponent extends WriteableItemComponent<List<St...
    method StringsItemComponent (line 27) | public StringsItemComponent(String name) {
    method write (line 31) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/TagItemComponent.java
  class TagItemComponent (line 25) | public class TagItemComponent extends WriteableItemComponent<BinaryTag> {
    method TagItemComponent (line 27) | public TagItemComponent(String name) {
    method write (line 31) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/VarIntItemComponent.java
  class VarIntItemComponent (line 24) | public class VarIntItemComponent extends WriteableItemComponent<Integer> {
    method VarIntItemComponent (line 26) | public VarIntItemComponent(String name) {
    method write (line 30) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/item/type/WriteableItemComponent.java
  class WriteableItemComponent (line 24) | public abstract class WriteableItemComponent<T> implements ItemComponent...
    method WriteableItemComponent (line 29) | public WriteableItemComponent(String name) {
    method write (line 33) | public abstract void write(ProtocolVersion version, ByteBuf buffer);
    method getName (line 35) | @Override
    method setValue (line 40) | @Override
    method getValue (line 46) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleBlock.java
  class SimpleBlock (line 40) | public class SimpleBlock implements VirtualBlock {
    method init (line 54) | @SuppressWarnings("unchecked")
    method SimpleBlock (line 148) | public SimpleBlock(boolean solid, boolean air, boolean motionBlocking,...
    method SimpleBlock (line 152) | public SimpleBlock(boolean solid, boolean air, boolean motionBlocking,...
    method findId (line 156) | private static short findId(String modernID) {
    method SimpleBlock (line 166) | public SimpleBlock(boolean solid, boolean air, boolean motionBlocking,...
    method SimpleBlock (line 175) | public SimpleBlock(boolean solid, boolean air, boolean motionBlocking,...
    method SimpleBlock (line 179) | public SimpleBlock(boolean solid, boolean air, boolean motionBlocking,...
    method SimpleBlock (line 183) | public SimpleBlock(SimpleBlock block) {
    method getModernID (line 192) | @Override
    method getModernStringID (line 197) | @Override
    method getID (line 202) | @Override
    method getBlockID (line 207) | @Override
    method getBlockID (line 212) | @Override
    method isSupportedOn (line 217) | @Override
    method isSupportedOn (line 222) | @Override
    method getBlockStateID (line 227) | @Override
    method isSolid (line 232) | @Override
    method isAir (line 237) | @Override
    method isMotionBlocking (line 242) | @Override
    method fromModernID (line 247) | public static VirtualBlock fromModernID(String modernID) {
    method fromModernID (line 262) | public static VirtualBlock fromModernID(String modernID, Map<String, S...
    method transformID (line 267) | private static short transformID(String modernID, Map<String, String> ...
    method transformID (line 284) | private static short transformID(String modernID, Set<String> properti...
    method remapModernID (line 307) | private static String remapModernID(String modernID) {
    method solid (line 317) | @NonNull
    method solid (line 322) | @NonNull
    method solid (line 327) | @NonNull
    method solid (line 332) | @NonNull
    method nonSolid (line 337) | @NonNull
    method nonSolid (line 342) | @NonNull
    method nonSolid (line 347) | @NonNull
    method nonSolid (line 352) | @NonNull
    method fromLegacyID (line 357) | @NonNull
    method toString (line 367) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleBlockEntity.java
  class SimpleBlockEntity (line 34) | public class SimpleBlockEntity implements VirtualBlockEntity {
    method SimpleBlockEntity (line 43) | public SimpleBlockEntity(String modernId) {
    method getID (line 47) | @Override
    method getID (line 52) | @Override
    method isSupportedOn (line 57) | @Override
    method isSupportedOn (line 62) | @Override
    method getModernID (line 67) | @Override
    method getEntry (line 72) | @Override
    method init (line 77) | @SuppressWarnings("unchecked")
    method fromModernID (line 93) | public static SimpleBlockEntity fromModernID(String id) {
    class Entry (line 97) | public class Entry implements VirtualBlockEntity.Entry {
      method Entry (line 103) | public Entry(int posX, int posY, int posZ, CompoundBinaryTag nbt) {
      method getBlockEntity (line 110) | @Override
      method getPosX (line 115) | @Override
      method getPosY (line 120) | @Override
      method getPosZ (line 125) | @Override
      method getNbt (line 130) | @Override
      method getID (line 135) | @Override
      method getID (line 140) | @Override
      method isSupportedOn (line 145) | @Override
      method isSupportedOn (line 150) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleItem.java
  class SimpleItem (line 34) | public class SimpleItem implements VirtualItem {
    method SimpleItem (line 44) | public SimpleItem(String modernId) {
    method getID (line 48) | @Override
    method getID (line 53) | @Override
    method isSupportedOn (line 63) | @Override
    method isSupportedOn (line 68) | @Override
    method getModernID (line 73) | public String getModernID() {
    method init (line 77) | @SuppressWarnings("unchecked")
    method fromItem (line 125) | public static SimpleItem fromItem(Item item) {
    method fromLegacyID (line 129) | public static SimpleItem fromLegacyID(int id) {
    method fromModernID (line 133) | public static SimpleItem fromModernID(String id) {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleTagManager.java
  class SimpleTagManager (line 35) | public class SimpleTagManager {
    method init (line 40) | @SuppressWarnings("unchecked")
    method getUpdateTagsPacket (line 66) | public static UpdateTagsPacket getUpdateTagsPacket(ProtocolVersion ver...
    method getUpdateTagsPacket (line 70) | public static UpdateTagsPacket getUpdateTagsPacket(WorldVersion versio...
    method localGetTagsForVersion (line 74) | private static UpdateTagsPacket localGetTagsForVersion(LinkedTreeMap<S...

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleWorld.java
  class SimpleWorld (line 41) | public class SimpleWorld implements VirtualWorld {
    method SimpleWorld (line 55) | public SimpleWorld(@NonNull Dimension dimension, double posX, double p...
    method setBlock (line 69) | @Override
    method setBlockEntity (line 74) | @Override
    method getBlock (line 79) | @NonNull
    method setBiome2d (line 85) | @Override
    method setBiome3d (line 90) | @Override
    method getBiome (line 95) | @Override
    method getBlockLight (line 100) | @Override
    method setBlockLight (line 105) | @Override
    method fillBlockLight (line 110) | @Override
    method fillSkyLight (line 117) | @Override
    method getChunks (line 124) | @Override
    method getOrderedChunks (line 129) | @Override
    method getDistanceToSpawn (line 136) | private int getDistanceToSpawn(VirtualChunk chunk) {
    method getChunk (line 142) | @Nullable
    method getChunkOrNew (line 148) | @Override
    method localCreateChunk (line 164) | private void localCreateChunk(int posX, int posZ) {
    method getDimension (line 180) | @NonNull
    method getSpawnX (line 186) | @Override
    method getSpawnY (line 191) | @Override
    method getSpawnZ (line 196) | @Override
    method getYaw (line 201) | @Override
    method getPitch (line 206) | @Override
    method chunkAction (line 211) | private <T> T chunkAction(int posX, int posZ, Function<SimpleChunk, T>...
    method getChunkIndex (line 220) | private static long getChunkIndex(int posX, int posZ) {
    method getChunkXZ (line 224) | private static int getChunkXZ(int pos) {
    method getChunkCoordinate (line 228) | private static int getChunkCoordinate(int pos) {

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleChunk.java
  class SimpleChunk (line 36) | public class SimpleChunk implements VirtualChunk {
    method SimpleChunk (line 49) | public SimpleChunk(int posX, int posZ) {
    method SimpleChunk (line 53) | public SimpleChunk(int posX, int posZ, VirtualBiome defaultBiome) {
    method setBlock (line 64) | @Override
    method setBlockEntity (line 69) | @Override
    method setBlockEntity (line 79) | @Override
    method getSection (line 84) | private SimpleSection getSection(int posY) {
    method getBlock (line 95) | @NonNull
    method setBiome2D (line 106) | @Override
    method setBiome3D (line 113) | @Override
    method getBiome (line 118) | @NonNull
    method setBlockLight (line 124) | @Override
    method getBlockLight (line 129) | @Override
    method setSkyLight (line 134) | @Override
    method getSkyLight (line 139) | @Override
    method getLightSection (line 144) | private LightSection getLightSection(int posY) {
    method fillBlockLight (line 148) | @Override
    method fillSkyLight (line 155) | @Override
    method getPosX (line 162) | @Override
    method getPosZ (line 167) | @Override
    method getFullChunkSnapshot (line 172) | @Override
    method getPartialChunkSnapshot (line 177) | @Override
    method createSnapshot (line 182) | private ChunkSnapshot createSnapshot(boolean full, long previousUpdate) {
    method getBiomeIndex (line 201) | private static int getBiomeIndex(int posX, int posY, int posZ) {
    method getSectionIndex (line 205) | private static int getSectionIndex(int posY) {
    method toString (line 209) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleChunkSnapshot.java
  class SimpleChunkSnapshot (line 28) | public class SimpleChunkSnapshot implements ChunkSnapshot {
    method SimpleChunkSnapshot (line 38) | public SimpleChunkSnapshot(int posX, int posZ, boolean fullChunk, Simp...
    method getBlock (line 49) | @Override
    method getPosX (line 55) | @Override
    method getPosZ (line 60) | @Override
    method isFullChunk (line 65) | @Override
    method getSections (line 70) | @Override
    method getLight (line 75) | @Override
    method getBiomes (line 80) | @Override
    method getBlockEntityEntries (line 85) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleLightSection.java
  class SimpleLightSection (line 24) | public class SimpleLightSection implements LightSection {
    method SimpleLightSection (line 33) | public SimpleLightSection() {
    method SimpleLightSection (line 37) | private SimpleLightSection(NibbleArray3D blockLight, NibbleArray3D sky...
    method setBlockLight (line 43) | @Override
    method getBlockLight (line 56) | @Override
    method getBlockLight (line 61) | @Override
    method setSkyLight (line 67) | @Override
    method getSkyLight (line 80) | @Override
    method getSkyLight (line 85) | @Override
    method checkIndexes (line 91) | private void checkIndexes(int posX, int posY, int posZ) {
    method checkIndex (line 97) | private boolean checkIndex(int pos) {
    method getLastUpdate (line 101) | @Override
    method copy (line 106) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleSection.java
  class SimpleSection (line 29) | public class SimpleSection implements BlockSection {
    method SimpleSection (line 35) | public SimpleSection() {
    method SimpleSection (line 39) | public SimpleSection(BlockStorage blocks) {
    method SimpleSection (line 43) | public SimpleSection(BlockStorage blocks, long lastUpdate) {
    method setBlockAt (line 48) | @Override
    method getBlockAt (line 55) | @Override
    method checkIndexes (line 61) | private void checkIndexes(int posX, int posY, int posZ) {
    method checkIndex (line 67) | private boolean checkIndex(int pos) {
    method getSnapshot (line 71) | @Override
    method getLastUpdate (line 76) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/LambdaUtil.java
  class LambdaUtil (line 28) | public final class LambdaUtil {
    method getterOf (line 31) | public static <T, R> Function<T, R> getterOf(Field field) throws Throw...
    method setterOf (line 45) | public static <T, R> BiConsumer<T, R> setterOf(Field f) throws Throwab...

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/OverlayIntObjectMap.java
  class OverlayIntObjectMap (line 30) | public class OverlayIntObjectMap<K> extends OverlayMap<Integer, K> imple...
    method OverlayIntObjectMap (line 32) | public OverlayIntObjectMap(Map<Integer, K> parent, Map<Integer, K> ove...
    method get (line 36) | @Override
    method put (line 41) | @Override
    method remove (line 46) | @Override
    method entries (line 51) | @Override
    method containsKey (line 56) | @Override
    method keySet (line 61) | @Override
    method values (line 66) | @NotNull
    method entrySet (line 72) | @NotNull

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/OverlayObject2IntMap.java
  class OverlayObject2IntMap (line 29) | public class OverlayObject2IntMap<K> extends OverlayMap<K, Integer> impl...
    method OverlayObject2IntMap (line 31) | public OverlayObject2IntMap(Object2IntMap<K> parent, Object2IntMap<K> ...
    method getInt (line 36) | @Override
    method put (line 46) | @Override
    method defaultReturnValue (line 51) | @Override
    method defaultReturnValue (line 56) | @Override
    method object2IntEntrySet (line 61) | @Override
    method keySet (line 69) | @NotNull
    method values (line 78) | @Override
    method containsValue (line 86) | @Override

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/ProtocolTools.java
  class ProtocolTools (line 24) | public class ProtocolTools {
    method writeContainerId (line 26) | public static void writeContainerId(ByteBuf buf, ProtocolVersion versi...
    method readContainerId (line 34) | public static int readContainerId(ByteBuf buf, ProtocolVersion version) {

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/ReloadListener.java
  class ReloadListener (line 24) | public class ReloadListener {
    method ReloadListener (line 28) | public ReloadListener(LimboAPI plugin) {
    method onReload (line 32) | @Subscribe

FILE: plugin/src/main/java/net/elytrium/limboapi/utils/SetIsObjectSet.java
  class SetIsObjectSet (line 27) | public class SetIsObjectSet<K> implements ObjectSet<K> {
    method SetIsObjectSet (line 31) | public SetIsObjectSet(Set<K> set) {
    method size (line 35) | @Override
    method isEmpty (line 40) | @Override
    method contains (line 45) | @Override
    method iterator (line 50) | @Override
    method toArray (line 55) | @NonNull
    method toArray (line 61) | @NonNull
    method add (line 67) | @Override
    method remove (line 72) | @Override
    method containsAll (line 77) | @Override
    method addAll (line 82) | @Override
    method removeAll (line 87) | @Override
    method retainAll (line 92) | @Override
    method clear (line 97) | @Override
    class IteratorIsObjectIterator (line 102) | private static final class IteratorIsObjectIterator<K> implements Obje...
      method IteratorIsObjectIterator (line 106) | private IteratorIsObjectIterator(Iterator<K> iterator) {
      method hasNext (line 110) | @Override
      method next (line 115) | @Override
Condensed preview — 178 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (925K chars).
[
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "chars": 928,
    "preview": "---\nname: Bug Report\nabout: Report the problem that has occurred in our project.\ntitle: \"[BUG] \"\nlabels: bug\nassignees: "
  },
  {
    "path": ".github/ISSUE_TEMPLATE/feature_request.md",
    "chars": 481,
    "preview": "---\nname: Feature Request\nabout: Suggest an idea to improve our project.\ntitle: \"[ENHANCEMENT] \"\nlabels: enhancement\nass"
  },
  {
    "path": ".github/workflows/build.yml",
    "chars": 2471,
    "preview": "name: Java CI with Gradle\n\non:\n  push:\n    branches:\n      - master\n  pull_request:\n    branches:\n      - master\n\njobs:\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "chars": 1975,
    "preview": "name: Java CI with Gradle\n\non:\n  release:\n    types: [published]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n "
  },
  {
    "path": ".gitignore",
    "chars": 1427,
    "preview": "# IntelliJ user-specific stuff\n.idea/\n*.iml\n\n# Compiled class file\n*.class\n\n# Log file\n*.log\n\n# Package Files\n*.jar\n*.zi"
  },
  {
    "path": "HEADER.txt",
    "chars": 669,
    "preview": "Copyright (C) 2021 - 2025 Elytrium\n\nThis program is free software: you can redistribute it and/or modify\nit under the te"
  },
  {
    "path": "HEADER_MCPROTOCOLLIB.txt",
    "chars": 1133,
    "preview": "This file is part of MCProtocolLib, licensed under the MIT License (MIT).\n\nCopyright (C) 2013-2021 Steveice10\n\nPermissio"
  },
  {
    "path": "HEADER_MIXED.txt",
    "chars": 1412,
    "preview": "Copyright (C) 2021 - 2025 Elytrium\n\nThis program is free software: you can redistribute it and/or modify\nit under the te"
  },
  {
    "path": "LICENSE",
    "chars": 34523,
    "preview": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C)"
  },
  {
    "path": "README.md",
    "chars": 8163,
    "preview": "<img src=\"https://elytrium.net/src/img/elytrium.webp\" alt=\"Elytrium\" align=\"right\">\n\n# LimboAPI\n\n[![Join our Discord](ht"
  },
  {
    "path": "VERSION",
    "chars": 7,
    "preview": "1.1.26\n"
  },
  {
    "path": "api/HEADER.txt",
    "chars": 205,
    "preview": "Copyright (C) 2021 - 2025 Elytrium\n\nThe LimboAPI (excluding the LimboAPI plugin) is licensed under the terms of the MIT "
  },
  {
    "path": "api/LICENSE",
    "chars": 1047,
    "preview": "Copyright 2021 Elytrium\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software a"
  },
  {
    "path": "api/build.gradle.kts",
    "chars": 2820,
    "preview": "@file:Suppress(\"GroovyAssignabilityCheck\")\n\nimport net.minecraftforge.licenser.LicenseExtension\nimport net.minecraftforg"
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/Limbo.java",
    "chars": 1645,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/LimboFactory.java",
    "chars": 8277,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/LimboSessionHandler.java",
    "chars": 1053,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/BlockEntityVersion.java",
    "chars": 2916,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/BuiltInBiome.java",
    "chars": 358,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/Dimension.java",
    "chars": 1497,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBiome.java",
    "chars": 338,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlock.java",
    "chars": 836,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualBlockEntity.java",
    "chars": 1051,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualChunk.java",
    "chars": 1640,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/VirtualWorld.java",
    "chars": 1613,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockSection.java",
    "chars": 614,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/data/BlockStorage.java",
    "chars": 849,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/data/ChunkSnapshot.java",
    "chars": 767,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/data/LightSection.java",
    "chars": 716,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/chunk/util/CompactStorage.java",
    "chars": 739,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/command/LimboCommandMeta.java",
    "chars": 1710,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/event/LoginLimboRegisterEvent.java",
    "chars": 1860,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/file/BuiltInWorldFileType.java",
    "chars": 347,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/file/WorldFile.java",
    "chars": 773,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/material/Block.java",
    "chars": 5685,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/material/Item.java",
    "chars": 6976,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/material/VirtualItem.java",
    "chars": 563,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/material/WorldVersion.java",
    "chars": 3365,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/mcprotocollib/NibbleArray3D.java",
    "chars": 2564,
    "preview": "/*\n * This file is part of MCProtocolLib, licensed under the MIT License (MIT).\n *\n * Copyright (C) 2013-2021 Steveice10"
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/player/GameMode.java",
    "chars": 982,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/player/LimboPlayer.java",
    "chars": 2071,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/PacketDirection.java",
    "chars": 332,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/PreparedPacket.java",
    "chars": 1327,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponent.java",
    "chars": 390,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/item/ItemComponentMap.java",
    "chars": 716,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/map/MapPalette.java",
    "chars": 952,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketFactory.java",
    "chars": 2760,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/PacketMapping.java",
    "chars": 1364,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/AbilityFlags.java",
    "chars": 524,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/BiomeData.java",
    "chars": 1810,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapData.java",
    "chars": 1436,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/protocol/packets/data/MapPalette.java",
    "chars": 7874,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/utils/EnumUniverse.java",
    "chars": 726,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/utils/OverlayMap.java",
    "chars": 1977,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/java/net/elytrium/limboapi/api/utils/OverlayVanillaMap.java",
    "chars": 1158,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "api/src/main/templates/net/elytrium/limboapi/BuildConstants.java",
    "chars": 399,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * The LimboAPI (excluding the LimboAPI plugin) is licensed under the terms "
  },
  {
    "path": "build.gradle.kts",
    "chars": 1840,
    "preview": "import com.github.spotbugs.snom.SpotBugsExtension\nimport com.github.spotbugs.snom.SpotBugsTask\n\nplugins {\n    java\n    c"
  },
  {
    "path": "config/checkstyle/checkstyle.xml",
    "chars": 19382,
    "preview": "<?xml version=\"1.0\"?>\n<!DOCTYPE module PUBLIC\n        \"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN\"\n        \"htt"
  },
  {
    "path": "config/checkstyle/suppressions.xml",
    "chars": 1074,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE suppressions PUBLIC\n        \"-//Checkstyle//DTD SuppressionFilter Confi"
  },
  {
    "path": "config/spotbugs/suppressions.xml",
    "chars": 542,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n\n<FindBugsFilter>\n    <Match>\n        <Bug pattern=\"EI_EXPOSE_REP\"/>\n    </Match>"
  },
  {
    "path": "gradle/libs.versions.toml",
    "chars": 2808,
    "preview": "[versions]\nelytrium-commons = \"1.2.3\" # https://github.com/Elytrium/elytrium-java-commons\nelytrium-fastprepare = \"1.0.13"
  },
  {
    "path": "gradle/wrapper/gradle-wrapper.properties",
    "chars": 202,
    "preview": "distributionBase=GRADLE_USER_HOME\ndistributionPath=wrapper/dists\ndistributionUrl=https\\://services.gradle.org/distributi"
  },
  {
    "path": "gradle.properties",
    "chars": 201,
    "preview": "org.gradle.jvmargs=-Xmx4096m\nmanifestUrl=https://launchermeta.mojang.com/mc/game/version_manifest.json\n\n# 1 week\ncacheVa"
  },
  {
    "path": "gradlew",
    "chars": 8047,
    "preview": "#!/bin/sh\n\n#\n# Copyright © 2015-2021 the original authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"Lice"
  },
  {
    "path": "gradlew.bat",
    "chars": 2674,
    "preview": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \""
  },
  {
    "path": "plugin/build.gradle",
    "chars": 25693,
    "preview": "//file:noinspection GroovyAssignabilityCheck\n\nbuildscript() {\n  dependencies() {\n    classpath(libs.tool.commons.io)\n   "
  },
  {
    "path": "plugin/mapping/fallbackdata.json",
    "chars": 36007,
    "preview": "{\n  \"MINECRAFT_1_21_11\": {\n    \"minecraft:golden_dandelion\": \"minecraft:dandelion\",\n    \"minecraft:potted_golden_dandeli"
  },
  {
    "path": "plugin/mapping/legacy_blockentities_mapping.json",
    "chars": 1943,
    "preview": "{\n  \"minecraft:banner\": {\n    \"legacy\": \"18\"\n  },\n  \"minecraft:barrel\": {\n    \"legacy\": \"25\"\n  },\n  \"minecraft:beacon\": "
  },
  {
    "path": "plugin/mapping/legacy_blocks_mapping.json",
    "chars": 45265,
    "preview": "{\n  \"minecraft:acacia_button\": {\n    \"1.13\": \"288\",\n    \"1.13.2\": \"288\"\n  },\n  \"minecraft:acacia_door\": {\n    \"1.13\": \"4"
  },
  {
    "path": "plugin/mapping/legacy_data_component_types_mapping.json",
    "chars": 2,
    "preview": "{}"
  },
  {
    "path": "plugin/mapping/legacy_items_mapping.json",
    "chars": 66077,
    "preview": "{\n  \"minecraft:acacia_boat\": {\n    \"1.13\": \"762\",\n    \"1.13.2\": \"767\"\n  },\n  \"minecraft:acacia_button\": {\n    \"1.13\": \"2"
  },
  {
    "path": "plugin/mapping/legacyblocks.json",
    "chars": 8971,
    "preview": "{\n  \"0\": \"minecraft:air\",\n  \"1\": \"minecraft:stone\",\n  \"2\": \"minecraft:grass_block\",\n  \"3\": \"minecraft:dirt\",\n  \"4\": \"min"
  },
  {
    "path": "plugin/mapping/tag_types.json",
    "chars": 401,
    "preview": "{\n  \"tag_types\": {\n    \"blocks\": \"minecraft:block\",\n    \"entity_types\": \"minecraft:entity_type\",\n    \"fluids\": \"minecraf"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java",
    "chars": 28035,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/Settings.java",
    "chars": 6246,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/file/MCEditSchematicFile.java",
    "chars": 2609,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/file/StructureNbtFile.java",
    "chars": 2856,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/file/WorldEditSchemFile.java",
    "chars": 4182,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/file/WorldFileTypeRegistry.java",
    "chars": 2987,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/disconnect/DisconnectListener.java",
    "chars": 1435,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/dummy/ClosedChannel.java",
    "chars": 5183,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/dummy/ClosedMinecraftConnection.java",
    "chars": 1157,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/dummy/DummyEventPool.java",
    "chars": 4839,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/event/EventManagerHook.java",
    "chars": 8427,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginListener.java",
    "chars": 16596,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/login/LoginTasksQueue.java",
    "chars": 15489,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/login/confirmation/LoginConfirmHandler.java",
    "chars": 5120,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/LegacyPlayerListItemHook.java",
    "chars": 4401,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/LimboCompressDecoder.java",
    "chars": 807,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/MinecraftDiscardCompressDecoder.java",
    "chars": 1226,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/MinecraftLimitedCompressDecoder.java",
    "chars": 3613,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/PreparedPacketImpl.java",
    "chars": 3361,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/RemovePlayerInfoHook.java",
    "chars": 4119,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/ServerLoginSuccessHook.java",
    "chars": 988,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/packet/UpsertPlayerInfoHook.java",
    "chars": 4954,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingKeyedVelocityTabList.java",
    "chars": 2336,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingTabList.java",
    "chars": 2064,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingVelocityTabList.java",
    "chars": 2725,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/injection/tablist/RewritingVelocityTabListLegacy.java",
    "chars": 2340,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/material/Biome.java",
    "chars": 19909,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/mcprotocollib/BitStorage116.java",
    "chars": 6750,
    "preview": "/*\n * This file is part of MCProtocolLib, licensed under the MIT License (MIT).\n *\n * Copyright (C) 2013-2021 Steveice10"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/mcprotocollib/BitStorage19.java",
    "chars": 4467,
    "preview": "/*\n * This file is part of MCProtocolLib, licensed under the MIT License (MIT).\n *\n * Copyright (C) 2013-2021 Steveice10"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/LimboProtocol.java",
    "chars": 36388,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/data/BiomeStorage118.java",
    "chars": 5018,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/data/BlockStorage17.java",
    "chars": 3803,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/data/BlockStorage19.java",
    "chars": 5699,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/data/StorageUtils.java",
    "chars": 1257,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/PacketFactoryImpl.java",
    "chars": 5596,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MoveOnGroundOnlyPacket.java",
    "chars": 2630,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MovePacket.java",
    "chars": 3542,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MovePositionOnlyPacket.java",
    "chars": 3226,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/MoveRotationOnlyPacket.java",
    "chars": 2958,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/PlayerChatSessionPacket.java",
    "chars": 2520,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/c2s/TeleportConfirmPacket.java",
    "chars": 2245,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChangeGameStatePacket.java",
    "chars": 1992,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChunkDataPacket.java",
    "chars": 14025,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/ChunkUnloadPacket.java",
    "chars": 2281,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/DefaultSpawnPositionPacket.java",
    "chars": 3296,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/MapDataPacket.java",
    "chars": 3082,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/PlayerAbilitiesPacket.java",
    "chars": 2132,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/PositionRotationPacket.java",
    "chars": 4213,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/SetExperiencePacket.java",
    "chars": 2296,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/SetSlotPacket.java",
    "chars": 4783,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/TimeUpdatePacket.java",
    "chars": 2393,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/UpdateTagsPacket.java",
    "chars": 3363,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/packets/s2c/UpdateViewPositionPacket.java",
    "chars": 1976,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/protocol/util/NetworkSection.java",
    "chars": 6639,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/CachedPackets.java",
    "chars": 3329,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/LimboImpl.java",
    "chars": 69133,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/LimboPlayerImpl.java",
    "chars": 13951,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/LimboSessionHandlerImpl.java",
    "chars": 19342,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/SimpleItemComponentManager.java",
    "chars": 7104,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/SimpleItemComponentMap.java",
    "chars": 2983,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/BooleanItemComponent.java",
    "chars": 1121,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/ComponentItemComponent.java",
    "chars": 1264,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/ComponentsItemComponent.java",
    "chars": 1467,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/DyedColorItemComponent.java",
    "chars": 1228,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/EmptyItemComponent.java",
    "chars": 1120,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/EnchantmentsItemComponent.java",
    "chars": 1561,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/GameProfileItemComponent.java",
    "chars": 1718,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/IntItemComponent.java",
    "chars": 1109,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/StringItemComponent.java",
    "chars": 1189,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/StringsItemComponent.java",
    "chars": 1326,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/TagItemComponent.java",
    "chars": 1240,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/VarIntItemComponent.java",
    "chars": 1190,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/item/type/WriteableItemComponent.java",
    "chars": 1426,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleBlock.java",
    "chars": 13901,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleBlockEntity.java",
    "chars": 4537,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleItem.java",
    "chars": 4640,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleTagManager.java",
    "chars": 4857,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/SimpleWorld.java",
    "chars": 7215,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleChunk.java",
    "chars": 6876,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleChunkSnapshot.java",
    "chars": 2684,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleLightSection.java",
    "chars": 3814,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/server/world/chunk/SimpleSection.java",
    "chars": 2695,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/LambdaUtil.java",
    "chars": 2124,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/OverlayIntObjectMap.java",
    "chars": 2340,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/OverlayObject2IntMap.java",
    "chars": 2960,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/ProtocolTools.java",
    "chars": 1417,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/ReloadListener.java",
    "chars": 1183,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/java/net/elytrium/limboapi/utils/SetIsObjectSet.java",
    "chars": 2818,
    "preview": "/*\n * Copyright (C) 2021 - 2025 Elytrium\n *\n * This program is free software: you can redistribute it and/or modify\n * i"
  },
  {
    "path": "plugin/src/main/resources/mapping/fluids.json",
    "chars": 146,
    "preview": "{\n  \"minecraft:empty\": \"0\",\n  \"minecraft:flowing_water\": \"1\",\n  \"minecraft:water\": \"2\",\n  \"minecraft:flowing_lava\": \"3\","
  },
  {
    "path": "plugin/src/main/resources/mapping/legacyitems.json",
    "chars": 11320,
    "preview": "{\n  \"0\": \"minecraft:air\",\n  \"1\": \"minecraft:stone\",\n  \"2\": \"minecraft:short_grass\",\n  \"3\": \"minecraft:dirt\",\n  \"4\": \"min"
  },
  {
    "path": "plugin/src/main/resources/mapping/modern_block_id_remap.json",
    "chars": 93,
    "preview": "{\n  \"minecraft:grass\": \"minecraft:short_grass\",\n  \"minecraft:chain\": \"minecraft:iron_chain\"\n}"
  },
  {
    "path": "plugin/src/main/resources/mapping/modern_item_id_remap.json",
    "chars": 49,
    "preview": "{\n  \"minecraft:turtle_scute\": \"minecraft:scute\"\n}"
  },
  {
    "path": "settings.gradle.kts",
    "chars": 453,
    "preview": "dependencyResolutionManagement {\n    repositories {\n        mavenCentral()\n        maven {\n            name = \"elytrium-"
  }
]

// ... and 12 more files (download for full content)

About this extraction

This page contains the full source code of the Elytrium/LimboAPI GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 178 files (41.0 MB), approximately 238.4k tokens, and a symbol index with 1374 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!