This is a quick fork of Incendo's cloud-minecraft repository that adds Minestom support, as well as a few performance optimisations for platforms that do supertype checks.
Everything is published at https://repo.spectr.is/.
Add our repository and dependencies to your build.gradle(.kts):
repositories {
maven("https://repo.spectr.is/snapshots") {
name = "spectris-snapshots"
mavenContent { snapshotsOnly() }
}
}
dependencies {
// 2.1.0-SNAPSHOT is the latest snapshot as of right now
implementation("org.incendo:cloud-minestom:2.1.0-SNAPSHOT")
// or, for the supertype caching optimisations:
implementation("org.incendo:cloud-paper:2.1.0-SNAPSHOT") // or cloud-bungee or cloud-bukkit
}final MinestomCommandManager<CommandSender> manager = new MinestomCommandManager<>(
ExecutionCoordinator.simpleCoordinator(),
SenderMapper.identity()
);
// Register whatever commands via the manager, or use the annotation parser (as instructed w/ https://cloud.incendo.org/core/)As of right now there's only two built-in parsers that I bothered to add.
You'll see a decent amount of random parsers that I've added after needing them lol
| Parser | Type | Description |
|---|---|---|
PlayerParser |
Player |
Resolves an online player by username |
EntityTypeParser |
EntityType |
Resolves an entity type by namespaced key |
InstanceParser |
Instance |
Resolves a loaded instance by UUID |
DimensionTypeParser |
DimensionType |
Resolves a dimension type by namespaced key |
VecParser |
Vec |
Resolves a Vec from x y z (supports relative coordinates (~ ~ ~) |
PosParser |
Pos |
Resolves a Pos from x y z, (+ optional pitch/yaw - also supports relative coords (~ ~ ~ ~ ~)) |
ItemStackParser |
ItemStack |
Resolves an ItemStack from id:meta:count |
EnchantmentParser |
RegistryKey<Enchantment> |
Resolves an enchantment registry key by namespaced key |
SoundEventParser |
SoundEvent |
Resolves a builtin sound event by namespaced key |
AttributeParser |
Attribute |
Resolves an entity attribute by namespaced key |
- JavaDoc: https://javadoc.io/doc/org.incendo
- Docs: https://cloud.incendo.org/minecraft
- Incendo Discord: https://discord.gg/aykZu32
- cloud-brigadier: integration with Mojang Brigadier
- cloud-paper: integration for Bukkit-based platforms with specific support for Paper API
- cloud-bukkit: integration for Bukkit-based platforms, dependency of cloud-paper
- cloud-velocity: integration for Velocity API
- cloud-sponge7: integration for Sponge API v7
- cloud-bungee: integration for Bungeecord API
- cloud-cloudburst: integration for cloudburst
- cloud-minecraft-extras: optional extras using adventure API
- cloud-minecraft-bom: bill of materials for cloud-minecraft dependencies
