PotatoMC Native Plugin API

The high-performance Paper-grade native Rust plugin development kit for PotatoMC. Build ultra-fast native dynamic libraries (.so / .dll / .dylib) with zero JVM garbage-collection overhead.

Tick Latency
0.04 ms

Zero JNI bridge delay

Idle Memory
18 MB RSS

vs 1.5GB JVM heap

GC Overhead
0.00 %

Deterministic Rust drops

Paper Parity
26.2

Native dialogs, PDC, forms

Showing 20 of 20 modules
Category:

API Modules Directory

Click any module for code examples & signatures
Core API

Lifecycle & Architecture

Understand the native .so / .dll dynamic library lifecycle and the Plugin trait entrypoints.

Paper: JavaPlugin / PluginBase
Plugin Traitdlopenon_enableon_disable
Core API

Event System

Register high-speed event handlers with priority execution, Cancellable traits, and zero GC.

Paper: org.bukkit.event.Listener
EventPriorityCancellableZero-AllocationRayon
Core API

Brigadier Commands

Fluent command tree builder, type-safe arguments, tab completion, and console/player dispatch.

Paper: Commodore / Paper Brigadier
BrigadierArgumentBuilderTabComplete
Core API

Configuration API

Thread-safe YAML/TOML configuration parsing and automatic reloading mirroring Bukkit configs.

Paper: FileConfiguration / YamlConfiguration
YAMLThread-SafeDefaultsHot-Reload
Core API

Scheduler API

Synchronous tick delays, repeating tasks, and async Rayon background worker threadpools.

Paper: BukkitScheduler / Folia
RayonTickSchedulerAsync TasksRepeating
Core API

PDC & Items

Persistent Data Container key-value tags directly on ItemStacks, entities, and world chunks.

Paper: PersistentDataContainer
NBT StorageNamespacedKeyByte Serialization
Interface & Visuals

Text & MiniMessage

Adventure component architecture, MiniMessage gradient tags, hover events, and clickable links.

Paper: net.kyori.adventure.text
MiniMessageHex ColorsHover/ClickAdventure
26.2 Feature
Interface & Visuals

Dialogs, Forms & Books

Native Java 26.2 modal dialogs, Bedrock crossplay forms (Simple/Modal/Custom), and virtual books.

Paper: Native 26.2 Dialogs / Geyser Forms
Java 26.2Bedrock FormsVirtual BookSign GUI
26.2 Feature
Interface & Visuals

Scoreboards & Teams

FastBoard-style zero-allocation sidebar lines, below-name health hearts, and team collision rules.

Paper: org.bukkit.scoreboard.Scoreboard
FastBoardBelowName HeartsTabListTeams
Interface & Visuals

BossBar API

Server-side boss health bars with custom colors, segmented division notches, and player tracking.

Paper: org.bukkit.boss.BossBar
BossBarColorSegmented NotchesPlayer Flags
26.2 Feature
Interface & Visuals

Toast Notifications & Events

Advancement-style popup toasts (Task, Goal, Challenge), item cooldown sweeps, and game event packets.

Paper: Advancement / Player#setCooldown
Advancement ToastCooldown WipeElder Guardian Flash
Interface & Visuals

GUI & Chest Menus

Declarative chest inventory menus, animated item slots, click filters, and cancellation handlers.

Paper: InventoryView / SmartInvs
Chest GUIInventoryClickEventSlot Locking
26.2 Feature
Items & World

Custom Model Data & Items

Direct resource pack CustomModelData getters/setters, declarative ItemVariant templates, and registry.

Paper: ItemMeta#setCustomModelData
CustomModelDataItemVariantItemRegistryRP Hooks
26.2 Feature
Items & World

NPC & Fake Players

Spawn fake player or mob NPCs, Mojang skin textures, poses, equipment, pathing, and click listeners.

Paper: Citizens2 / FancyNpcs
Fake PlayerSkinDataPathfindingNpcBehavior
Items & World

Advanced Entity API

Control glowing outlines, invulnerability, gravity flags, scoreboard tags, and living entity cameras.

Paper: LivingEntity / Entity Metadata
Glowing ShadersScoreboard TagsLivingEntityInvulnerable
Items & World

Raytracing & Targeting

Line-of-sight target block & entity detection, camera direction vectors, and AABB collision testing.

Paper: LivingEntity#getTargetBlock
TargetBlockBoundingBoxRayTraceAABB Collision
Items & World

Sounds & Environment

Spatial and player audio playback, real & cosmetic lightning strikes, weather toggles, and world blocks.

Paper: World#playSound / strikeLightning
SoundCategoryCosmetic LightningWeatherHighestBlock
Items & World

Potions & Particles

Apply status potion effects with ambient flags, custom particles with count/offsets, and area clouds.

Paper: World#spawnParticle / PotionEffect
PotionEffectTypeParticle EffectsOffset Spawns
Guides & Parity

Paper Migration Guide

A comprehensive handbook mapping familiar Java/Paper idioms to PotatoMC Rust constructs.

Paper: Architecture Bridge
Java to RustIdiom CheatsheetMemory Safety
Guides & Parity

Minecraft 26.2 Parity Matrix

Real-time live verification table tracking parity across all Minecraft subsystems and vanilla mobs.

Paper: Feature Parity
Live Matrix100% TrackedSubsystem Status

Architectural Parity: Paper Java vs PotatoMC Native Rust

Feature / SubsystemPaper / Spigot (JVM)PotatoMC Native APIBenefit
Plugin CompilationBytecode JAR (JVM classloader)Native cdylib (.so / .dll / .dylib)Executes directly on host CPU with zero interpreter overhead
Memory ManagementGenerational GC pauses (ZGC / G1GC)Deterministic compile-time RAII dropsZero stop-the-world hitches; stable 20.0 TPS under heavy load
Event DispatchReflection method invokes & object allocationDirect function pointer execution<0.05 microsecond latency per registered event listener
Concurrency & ThreadsSingle main server tick loop + Bukkit asyncWork-stealing Rayon pipeline & safe mutexesNative multi-core parallelism without race conditions
Interactive UIChest inventory GUI hacks & title packets26.2 Modal Dialogs + Bedrock Forms + BooksRich client popups, forms, toggles, and crossplay menus

Quick Start: Scaffold Your First Native Plugin

No Git clone required — one command setup
Terminal Command (curl + bash)
curl -sSL https://raw.githubusercontent.com/Flaxa-Technologies/potato-api/main/scripts/create-plugin.sh | bash -s MyAwesomePlugin "Flaxa Studios" linux

AI Assistant Native Context Bundling

Every scaffolded PotatoMC plugin project automatically comes equipped with pre-compiled AGENT.md and CLAUDE.md instruction contexts. When opening your plugin in Cursor, Claude Code, GitHub Copilot, or Antigravity, your AI assistant will instantly understand:

  • ❯All 26 PotatoMC event signatures & Cancellable traits
  • ❯Correct .cdylib crate typing and cross-compilation targets
  • ❯Scoreboard, Dialog, BossBar, and PDC API builders
  • ❯Common Java Bukkit idioms mapped to safe Rust alternatives