MCPcopy Index your code
hub / github.com/boxbeam/RedLib

github.com/boxbeam/RedLib @6.6.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 6.6.1 ↗ · + Follow
1,267 symbols 3,609 edges 124 files 803 documented · 63%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RedLib

RedLib is a Spigot plugin development library, designed to make your life easier and soothe the pain points of plugin development. Below, find instructions for the various components of RedLib.

Support Discord: https://discord.gg/agu5xGy2YZ

Docs: https://redempt.dev/javadoc/com/github/Redempt/RedLib/index.html

Installation for Development

RedLib is a standalone plugin, but can also be used as a shaded dependency if you do not want to distribute RedLib directly. To use it as a plugin dependency, you must add it as a dependency in your plugin.yml:

depend: [RedLib]

To get the jar, either download it from the releases tab either here on GitHub or on Spigot, or build it locally.

Gradle

repositories {
        maven { url = 'https://redempt.dev' }
}

dependencies {
        compileOnly 'com.github.Redempt:RedLib:Tag'
}

Replace Tag with a release tag for RedLib. You can see the latest version here.

To shade RedLib, change the dependency from compileOnly to implementation, and install the gradle shadow plugin.

If you are having a problem while building, such as plugin.yml is duplicate, try setting duplicatesStrategy to DuplicatesStrategy.EXCLUDE.

tasks {
        processResources {
                duplicatesStrategy = DuplicatesStrategy.EXCLUDE
        }
}

Maven:

<repository>
        <id>redempt.dev</id>
        <url>https://redempt.dev</url>
</repository>
<dependency>
        <groupId>com.github.Redempt</groupId>
        <artifactId>RedLib</artifactId>
        <version>Tag</version>
        <scope>provided</scope>
</dependency>

Replace Tag with a release tag for RedLib. You can see the latest version here.

To shade RedLib, change the scope from provided to compile.

Build locally:

For Windows, use Git Bash. For Linux or OSX, just ensure you have Git installed.Navigate to the directory where you want to clone the repository, and run:

git clone https://github.com/Redempt/RedLib
cd RedLib
./gradlew jar

After running these commands, the jar will be at build/libs/RedLib.jar. You may also need to add the jar to your classpath. After that, you should be good to go!

Usage

For info on how to use RedLib, please see the wiki.

Extension points exported contracts — how you extend this code

TypeConverter (Interface)
An interface which converts data in config for a given type @param The type @author Redempt [6 implementers]
src/redempt/redlib/config/conversion/TypeConverter.java
DataHolder (Interface)
An arbitrary data structure which can map keys to values @author Redempt [4 implementers]
src/redempt/redlib/config/data/DataHolder.java
BlockDataBackend (Interface)
Represents a data backend for a BlockDataManager @author Redempt [2 implementers]
src/redempt/redlib/blockdata/backend/BlockDataBackend.java
Instantiator (Interface)
A utility to instantiate objects from values loaded from config @author Redempt [2 implementers]
src/redempt/redlib/config/instantiation/Instantiator.java
BypassPolicy (Interface)
Represents a policy that allows players to bypass certain protection types for certain blocks @author Redempt [1 implementers]
src/redempt/redlib/protection/BypassPolicy.java

Core symbols most depended-on inside this repo

get
called by 174
src/redempt/redlib/config/data/DataHolder.java
add
called by 134
src/redempt/redlib/region/MultiRegion.java
forEach
called by 92
src/redempt/redlib/sql/SQLHelper.java
size
called by 71
src/redempt/redlib/misc/Hologram.java
getY
called by 65
src/redempt/redlib/blockdata/BlockPosition.java
getX
called by 63
src/redempt/redlib/region/RegionMap.java
getZ
called by 63
src/redempt/redlib/region/RegionMap.java
getPlayer
called by 62
src/redempt/redlib/region/events/RegionExitEvent.java

Shape

Method 1,134
Class 119
Enum 7
Interface 7

Languages

Java100%

Modules by API surface

src/redempt/redlib/sql/SQLHelper.java40 symbols
src/redempt/redlib/region/MultiRegion.java35 symbols
src/redempt/redlib/region/SpheroidRegion.java32 symbols
src/redempt/redlib/region/CuboidRegion.java32 symbols
src/redempt/redlib/multiblock/MultiBlockStructure.java32 symbols
src/redempt/redlib/region/Region.java30 symbols
src/redempt/redlib/inventorygui/PaginationPanel.java29 symbols
src/redempt/redlib/inventorygui/InventoryGUI.java29 symbols
src/redempt/redlib/itemutils/MockInventory.java26 symbols
src/redempt/redlib/itemutils/ItemUtils.java25 symbols
src/redempt/redlib/dev/profiler/ProfilerCommands.java24 symbols
src/redempt/redlib/blockdata/BlockDataManager.java24 symbols

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add RedLib \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact