Bukkit layer for developers
Beta. The layer is early and unfinished. What is here is true for the source in the vanillite-bukkit repository; the layer evolves faster than the server, so check its README for the newest state. Parts marked "since 0.1.3" are not in 0.1.2, which Vanillite 0.1.0-beta.3 installs. Vanillite 0.1.0-beta.4 installs 0.1.3. Parts marked "after 0.1.3" are in the source but in no layer release yet.
This page is for people who write or port Java plugins for Vanillite. If you want to run existing plugins, read Installing plugins and Spigot and Paper compatibility instead.
What it is
The layer is an ordinary native plugin (id = "bukkit", threading = "serialized"). It starts a Java virtual machine inside the server and runs the Bukkit/Paper API on top of the native plugin API.
flowchart TB
S[Vanillite server]
N["Layer, native part (Rust)<br/>starts the JVM"]
J["Layer, Java part<br/>Bukkit and Paper API implementation"]
P[Your Paper plugin jars]
S <-->|plugin ABI| N
N <-->|Foreign Function and Memory API| J
J --> P
- The JVM is started with
-Xrs(signals stay with the server). Class path, Java home and further options are inplugins/bukkit/config.tomlunder[jvm]; youroptionsare added last and win. - Memory (since 0.1.3): the layer picks the JVM's memory options itself: the serial garbage collector (unless
optionsselects another), a small heap that grows only as far as the plugins need, and compact object headers (Java 25). Four[jvm]keys tune it:compact-object-headers(on),max-heap(MiB, 0 is the JVM's default),heap-free(40: percent of free heap kept after a full collection) andidle-gc-delay(60: seconds after the start and after the last player left until a full garbage collection hands unused heap back to the system; it runs only while nobody is online, 0 is never). Releases up to 0.1.2 used-XX:+UseSerialGC -Xms16m. - Java calls the server through downcalls from the host's function table. The server calls Java through upcalls. There is no JNI glue per function.
- API objects (
World,Block,Player,Entity) are thin wrappers around ids. No world state is copied into the Java heap. - Every API class is an abstract class that implements what is supported. At run time a final subclass is generated whose remaining methods throw an error that names the method.
- Only native events that some plugin listens to are subscribed: the jars are scanned for
@EventHandlermethods before they are loaded. Without a listener there is no call into Java. - It targets the Paper API 26.3 (the jar is downloaded at the first start into
plugins/bukkit/libraries/, checked by hash, never shipped). Plugins check the brand: the layer reports itself as Vanillite and as Paper-compatible. - As on Paper, plugins also find the SQLite and MySQL JDBC drivers and Apache Commons Lang 2 there (layer 0.1.2). They are downloaded with the Paper API and registered at the start, so a plugin can open a database from any of its threads, for example WorldGuard's profile cache.
- Licence: the native host is Apache 2.0, the Bukkit/Paper implementation GPL-3.0. It is written from the public API with no Paper or Spigot code.
NMS mode (after 0.1.3)
Some plugins (holograms, NPCs, tab lists) do not stay with the API: they use Minecraft's own classes (net.minecraft) and CraftBukkit's. Layer 0.1.3 has none of them, so these plugins fail. The layer's source now has an NMS mode for them:
- It loads Mojang's server classes from the server jar that Vanillite keeps in its cache (host function
vanilla_server_jar, ABI 1.14) in a separate class loader. It adds in memory the members that plugins expect from Paper (getBukkitEntity,getWorld, extra constructors and public fields). The jar is never shipped with the layer. - Opened classes: every class and field of
net.minecraftis made public when the class loads (the class bytes are patched in place), because Spigot and Paper open many of them and plugins read them directly. Methods keep their access. - It runs a shadow server: Mojang's server object with no worlds and no ticks, whose registries come from the world's data packs and are checked against Vanillite's. If they differ, NMS mode stays off and the log says why.
- Vanillite stays the server. Players and entities in it are mirrors of Vanillite's state, packets a plugin sends go through Mojang's own pipeline to Vanillite, and entity ids come from Vanillite's counter (
entity_ids_reserve). - Shadow levels: a plugin sees a
ServerLevelfor each world. It reads block entities from Vanillite and writes loaded ones back, and has a biome manager, a world border and a spawn. The shadow server runsexecute()tasks in its next tick and has a respawn dimension without world data (FancyNpcs needs this). Paper'sPaperLevelOverrides,getChunkIfLoadedandserverLevelDataexist. - Chunks for map plugins (needs ABI 1.25): Mojang's
ChunkMap.readof a shadow level returns Vanillite's chunk in Vanilla's chunk format, taken through the host functionschunk_captureandchunk_capture_nbt(Plugin API: players, entities and worlds). Dynmap reads chunks like this and renders, whatever format the world is stored in. A small adapter (compat/squaremap) replaces squaremap's own chunk reader, which needs Paper's chunk system. A chunk read from another thread goes through a task of the world. - More Paper and CraftBukkit members that plugins use:
CommandSourceStack.getBukkitSender(Paper's command sources are Mojang's own in NMS mode, for Lamp and Commodore), the connection'sisDisconnected,Entity.bukkitEntity(OpenInv saves offline players with it),CraftEventFactory.callInventoryOpenEvent, theCraftInventoryViewconstructor,CraftPlayer's persistent data container andPaperConfig(plugins use it to detect Paper). - Plugins that need NMS in
onLoad: Shopkeepers converts items through NMS before the shadow server exists. The layer notices that, starts NMS mode and loads the plugin again from scratch when it is enabled. - The layer also gets CraftBukkit compatibility classes (
CraftPlayer,CraftEntity,CraftWorld,CraftItemStack,CraftBlockState,PaperAdventure,VanillaCommandWrapper). The server's class is namedorg.bukkit.craftbukkit.CraftServer. Without NMS mode the server object extends a plain variant that names no Mojang type, so plugins that look at the server's methods by reflection (Multiverse-Core does) still link. Item stacks work the same way: without NMS modenew ItemStack(...)is a plain Bukkit stack that links no Mojang class (EssentialsX needs this at its start). Only once Mojang's classes are attached does the layer hand outCraftItemStack, the subclass that holds the Mojang stack. - Items and data (stage N3):
CraftItemStackwraps a live Mojang item stack that stays in sync with the Bukkit stack, so plugins can read and change it directly. Persistent data works on items and, through the host'sentity_dataABI, on entities. Plugin messages go both ways (Messenger, channels registered with the server). Entity classes carry their CraftBukkit names, and the layer answers the Paper checks some plugins make (MythicMobs looks for a Paper class). Renamed Bukkit enum constants are rewritten when a class loads (see "Older plugins" below). - Plugin menus (stage N4): a plugin can open its own Mojang container menu (a subclass of
AbstractContainerMenu) for a player. The layer sends the screen to the client, takes the client's clicks and the close from Vanillite, runs them through Mojang's own handlers with Bukkit's click and close events, and sends the menu's changes every tick. While a plugin uses a player mirror, its inventory, cursor, crafting grid and ender chest are synced both ways with Vanillite's real inventory.CraftInventory,CraftInventoryCrafting,CraftInventoryView,CraftMenuTypeand a few more exist as facades over Mojang's containers and menus, and the members Paper adds to menus (getBukkitViewand others) are added in memory. It was written for InvSee++ 0.31.22: in a local test with two bots,/invsee <player>opened the other bot's inventory, and a stack moved there arrived in that player's real Vanillite inventory. Other plugins with their own menus were not tried with a real client. - Offline players (needs ABI 1.23): a plugin can also work with a player who is not online, as InvSee++ does to show an offline player's inventory. Plugin classes that extend
CraftPlayerorCraftHumanEntitywith Paper's constructor get a generated superclass at class load that wraps a Mojang player who is in no world (name, own menu view,loadDataandsaveData). The shadow server's player list reads and saves such a player's data through the host functionsplayer_data_loadandplayer_data_save(Plugin API: players, entities and worlds): Vanillite's data fixers upgrade the file, and a save only changes the file of an offline player. There is no published test of it with a real plugin yet. - PacketEvents: the shadow server also has a network. It listens like a Minecraft server does, and while a plugin has a handler on it, every Vanillite connection gets a tapped channel from the handshake on. Each packet passes that channel's Mojang pipeline on the network thread, so PacketEvents (also built into GrimAC and AntiPopup) can read, change and drop it. Packets that plugins send leave through the head of the pipeline, past the server's own packet listeners.
MinecraftServer.SERVERexists before the plugins load, because PacketEvents reads it inonLoad. - It starts only when an installed jar refers to
net.minecraftor CraftBukkit classes (also in nested jars). Without such a plugin nothing of it is loaded: no extra RAM and no start-up cost. With one, NMS mode costs about 150 MB of RAM when idle (an estimate from the layer's tests; it was about 204 MB before stage N3, which unpacks the server jar unsigned, skips a start-up check of Mojang's data fixers and loads loot tables lazily). The keynmsin the[bukkit]section ofplugins/bukkit/config.tomlis"auto"(default),"on"or"off". NMS mode needs the layer's own class loader, so it stays off whenjvm.class-pathruns the layer from the class path. - Data fixer on demand: Mojang's data fixer (it upgrades old data, for example NBT-API's self-test at its start) takes about 250 MiB of heap and a few seconds to build. The layer builds it at the first use and lets it go after
data-fixer-keepseconds without use (key in the[bukkit]section, default 60,0keeps it for good). The idle collection then hands the memory back. A later use builds it again. - The log tells what happens:
NMS mode for <jar> (…),NMS mode: shadow server ready in … ms, orNMS mode is off: <reason>. - A link checker in the repository (
bukkit/test) lists the internal classes of a plugin jar that the layer cannot resolve.
How many real plugins run with it: in the second test on Spigot and Paper compatibility about ten plugins that need NMS mode ran or ran partly (TAB, DecentHolograms, Shopkeepers, OpenInv, FancyNpcs, AxGraves, Dynmap, squaremap and others). The module nms has an offline self test.
Older plugins (after 0.1.3)
Paper turned some API types that were enums (Biome, Sound, Attribute, Villager.Profession and more) into interfaces. A plugin built against the old API then fails with IncompatibleClassChangeError: Found interface org.bukkit.block.Biome, but class was expected. As Paper does, the layer rewrites such plugins when their classes load:
- Who: plugins whose
api-versionis below the server's, or that have none. Plugins built for the current API, and jars that never name a former enum, are not touched. - Calls: calls on these types become interface calls.
name(),ordinal(),compareTo,getDeclaringClass(),toString(),values(),valueOf(String),Enum.valueOfandClass.getEnumConstants()go to helper classes, soswitchon them keeps working. A plugin'sEnumSetandEnumMapof former enums get the layer's own replacements. - Renamed constants:
MaterialandBiomeconstants that Vanilla renamed after 1.13 read the new ones (Material.GRASSisSHORT_GRASS). - Cache: the rewritten classes are kept in
plugins/bukkit/cache/legacy-api/, so the next start is quicker. - Written from the public API, with no Paper code.
Which plugins this helps is not measured yet; the list on Spigot and Paper compatibility is from before it.
World generators of Bukkit plugins (after 0.1.3)
The layer registers the named generator bukkit. A world with generator = "bukkit:<Plugin>[:<id>]" (World generators) is generated by that plugin's getDefaultWorldGenerator(world, id); WorldCreator.generator(...) in createWorld takes the same path, and World.getGenerator and getBiomeProvider return the plugin's objects. STARTUP plugins are enabled first, as on Paper. A missing plugin or generator leaves the world unstarted.
A world without generation.generator takes worlds.<name>.generator of a bukkit.yml in the server folder (Plugin:id), so a server moved from Bukkit or Paper keeps its plugin generators. The server turns it into bukkit:<Plugin>[:<id>]. The first start in a Paper or Spigot folder also writes these generators and Multiverse's worlds into vanillite.toml (Move a world to Vanillite and back).
The generator runs in steps, like on Paper (plugin ABI 1.17, see Plugin API: slots and hosted plugins):
shouldGenerate*: Vanilla's noise, surface, caves, decorations (features), structures and mobs run before the generator's own part when itsshouldGenerate*method says so. Without them the generator makes that part alone.generateNoise,generateSurface,generateBedrock,generateCaves: each is called as its own step, and only those the generator implements. The oldgenerateChunkDatawithcreateChunkDatastill works and writes straight into the server's block arrays.- Biomes: the biomes of the generator's
BiomeProvider(Vanilla's without one) are written into the chunk before the terrain.ChunkData.getBiomereads them, andBiomeGrid.setBiomeof old generators changes them. - Populators:
getDefaultPopulatorsrun after the features step, on aLimitedRegionof the 3×3 chunks around the populated chunk, andWorld.getPopulatorsreturns them. Entities and block entities are not part of that area: spawning or placing them there is not supported. A populator that only has the oldpopulate(World, Random, Chunk)is not run; the log says so.
A generator that is not parallel capable (isParallelCapable) gets one chunk at a time. Without built-in steps nothing of this costs anything: the server only wraps its own generator when a plugin asks for built-in parts.
How to write a plugin for it
Write a normal Paper plugin against the Paper API: plugin.yml or paper-plugin.yml, a main class, @EventHandler methods. Nothing Vanillite-specific is needed. Two examples are in the repository (examples/hello and examples/bench, built by scripts/build.sh): HelloBukkit is a trivial plugin, VBench measures common API calls and runs the same jar on Paper, so you can compare.
To build and try the layer itself you need Rust (stable) and a JDK 25:
scripts/build.sh # build/dist/plugins/: bukkit/ + the example jars
cp -r build/dist/plugins/. /path/to/server/plugins/
The repository's checks are scripts/quick-check.sh (format, lint, bindings up to date, Java compiles without warnings) and scripts/check.sh (build, tests, self test). After a change of the plugin ABI, scripts/bindgen.sh regenerates the Java bindings from the ABI's layout data.
What is implemented
| Area | State |
|---|---|
| Plugin loading | plugin.yml and paper-plugin.yml, dependency order, libraries: from Maven Central, shared class lookup. After 0.1.3: plugins built against an older API are rewritten at class load (see above) |
PluginManager, permissions |
Bukkit's SimplePluginManager and permission registry (attachments, defaults). The layer is the server's permission provider |
| Commands | Bukkit's SimpleCommandMap, Tab completion, late registration through ABI 1.12. A Bukkit command beats a Vanilla command of the same name. The server class declares commandMap and getCommandMap as CraftBukkit does, for command libraries such as ACF and Lamp (since 0.1.3). After 0.1.3 a command runs on the global owner, so it can use every world |
| Events | AsyncPlayerPreLoginEvent, PlayerLoginEvent, PlayerJoinEvent, PlayerQuitEvent, AsyncPlayerChatEvent, AsyncChatEvent, PlayerCommandPreprocessEvent, PlayerTeleportEvent, PlayerRespawnEvent, PlayerMoveEvent, PlayerInteractEvent, BlockBreakEvent, BlockPlaceEvent, BlockBurnEvent, BlockIgniteEvent, BlockExplodeEvent, BlockFromToEvent, BlockPistonExtendEvent, BlockPistonRetractEvent, EntityDamageEvent, EntityDamageByEntityEvent, EntityExplodeEvent, EntitySpawnEvent, CreatureSpawnEvent, InventoryOpenEvent, InventoryClickEvent, InventoryDragEvent, InventoryCloseEvent. After 0.1.3: PlayerCommandSendEvent, built from the command tree packet a player gets (the root's commands, argument nodes are not parsed), and PaperServerListPingEvent, built from the handshake and status response packets (MOTD, counts, sample, version, icon, hidden players, cancel; the client address needs ABI 1.16). Both are built only when a plugin jar refers to them. Also after 0.1.3: PlayerDeathEvent and EntityDeathEvent (see below) and EntityTargetEvent with EntityTargetLivingEntityEvent. Also after 0.1.3: an event that a plugin's own action fires (spawnEntity, createExplosion, damage from a task or command) reaches the Bukkit listeners at once, as on Paper: on a host with ABI 1.21 the layer subscribes its handlers with the flag NESTED (on an older host such events are dropped). Bukkit priorities interleave with native plugins |
| Scheduler | BukkitScheduler: asynchronous tasks run on a Java thread pool. Synchronous tasks are host tasks on a world's owner (up to 0.1.3, the overworld's, which stood in for the main thread); after 0.1.3 they run on the global owner, the layer's main thread, which may use every world (ABI 1.18). Paper's Folia schedulers (global, region, async and entity) run on the same scheduler (since 0.1.3) |
| Console and logging | Log4j Core is the logging back end with one context, so plugins can add console filters and appenders; SLF4J goes there too (since 0.1.3) |
| Items and inventories | Item stacks with metadata (also skull profiles with textures, leather and map colours), player and custom inventories, ender chests, plugin menus. After 0.1.3: Paper's data component API on item stacks (getData, setData, hasData, unsetData, resetData, and the ItemComponentTypesBridge builders for lore, tooltip display, custom model data, enchantments, profiles, dyed colour, potion contents, fireworks, banner patterns and armour trims, written as Vanilla's component SNBT), attribute modifiers, PotionMeta and FireworkMeta on their components, firework rockets (meta, flight, detonation), and the ItemMeta components tool, food, use cooldown, equippable and jukebox playable (Shopkeepers needs them) |
| Registries, tags | Paper's registries and Tag.* from the server's registries and data packs; older enchantment and effect names still work. After 0.1.3 Material.values() lists no legacy materials for plugin classes, as Paper rewrites it |
| Worlds, entities, players, blocks | Chunks, border, heights, time, seed, game rules (with Paper's older rule names), difficulty, PvP, saving, creating and unloading worlds (Server.createWorld, host function world_create, since 0.1.3; after 0.1.3 createWorld opens the world at once through world_open, so the plugin can use it on return), the world's spawn (getSpawnLocation, setSpawnLocation), blocks in unloaded chunks (loaded on read), the default world's dimensions named after level-name (<level>, <level>_nether, <level>_the_end), plugin world generators with biomes, populators and Vanilla steps (after 0.1.3), weather and its durations (after 0.1.3, world_weather), player statistics with Bukkit's names mapped to Vanilla's criteria (after 0.1.3, player_statistic), server icons, entity lists (near players and spawn), spawning typed entities, lightning, explosions, ray traces, sounds, entity properties (on ground, fire and freeze ticks, gravity, glowing, silent, invisible, air, attributes), velocity, teleport, remove, passengers and vehicles, custom names, scoreboard tags, potion effects, AI, a player's saturation, level, experience, eye location and target block, titles, action bar, tab list header and footer, sounds, ping, block light, neighbours, biome change, metadata, scoreboard teams by name. After 0.1.3 also: a player's abilities (setAllowFlight, setFlySpeed, setWalkSpeed; setFlying refuses flight without allowFlight like CraftBukkit), a player's own time and weather (setPlayerTime, resetPlayerTime, getPlayerTime, getPlayerTimeOffset, isPlayerTimeRelative, setPlayerWeather, resetPlayerWeather, getPlayerWeather; ABI 1.18), getNoDamageTicks and setNoDamageTicks for players (ABI 1.19), the potion contents of arrows and area effect clouds (Arrow.getBasePotionType, getCustomEffects, hasCustomEffects, hasCustomEffect), a player's health scale, Server.getIPBans, and a mob's target (Mob.getTarget, Mob.setTarget; a setTarget from another world's task runs on the mob's world, so WorldGuard no longer throws). Also after 0.1.3: mobs' health and maximum health, equipment and its drop chances, persistence and item pickup, BlockData.isOccluding, LivingEntity.isSleeping, and nested containers and lists in an entity's persistent data (ABI 1.20; MythicMobs tags the mobs it spawns this way) |
| Minecraft internals | NMS mode with Mojang's classes and CraftBukkit compatibility classes, plugin container menus and offline players' data (InvSee++), chunk reads for map plugins (Dynmap, squaremap), and PacketEvents on its network, started only for plugins that need them (after 0.1.3, see above) |
| Bedrock players | A stand-in for Floodgate's API and Cumulus forms (after 0.1.3, see Plugin API: players, entities and worlds for the ABI side) |
| Other | Offline players, services, plugin messaging, the help map, /plugins and /version entries, /vjvm diagnostics for operators |
Everything else throws an UnsupportedOperationException that names the method. The events list is the one the layer subscribes today; the native plugin API has more (see Plugin API: events), so more Bukkit events can follow.
Death events (after 0.1.3)
PlayerDeathEvent and EntityDeathEvent are delivered from the native death and drops events. They also fire for a player who takes damage in its own tick (a fall, fire, drowning, starvation, an effect): the handler can read the whole world there.
PlayerDeathEvent: death message,keepInventoryandkeepLevelgo back to the server at once. The drops and the experience a plugin sets replace the player's own drops in the drops event that follows, and only when the inventory is not kept. The event carries the damage source with its killer.EntityDeathEvent: for mobs, with their drops, experience, damage source and killer. ChanginggetDrops()orsetDroppedExp(...)changes what drops.- Both listeners share one subscription: a plugin that listens to one gets both native events, so the drops of a player's death can follow its death event.
Gaps that a test of 44 popular plugins found: player abilities with state (may fly, speeds), a chunk's block entities, and world access from other dimensions' tasks. The layer's source after 0.1.3 closes two of them: world access from other dimensions' tasks (see "Threads" below, ABI 1.18) and the player abilities (ABI 1.18 and 1.19, see Plugin API: players, entities and worlds); a list of a chunk's block entities still needs the server's plugin interface to grow first. The server list ping event, the command list event and the statistics and weather getters were gaps too; the layer's source covers them after 0.1.3, with the server's interface of ABI 1.16 (player_statistic, world_weather, see Plugin API: players, entities and worlds). The list per plugin is on Spigot and Paper compatibility.
Threads: why "not allowed from this thread or task" happens
Vanillite has no single main thread. Each dimension is owned by its own thread (Plugin concepts). The layer runs plugin code one call at a time (serialized), and the Java side keeps the context of the running callback. A call that reads or changes a world works only on the world that callback owns. If you call it from somewhere else (a Java thread you started, an asynchronous task, or a callback of another world), the host answers WRONG_OWNER and you get:
IllegalStateException: <what>: not allowed from this thread or task (the world is owned by another task)
After 0.1.3 the layer has a main thread of its own: the global owner. onEnable, synchronous Bukkit and Folia global tasks, and Bukkit commands (of players, and those that come from a world's callback, such as the console's) run there. While it runs, no world ticks, and since ABI 1.18 its context owns every loaded world. So these calls read and change any world, as on Paper: Multiverse-Core imports every world in onEnable and creates worlds on /mv create. Events (PlayerMoveEvent, BlockBreakEvent, …) still run on the world they happen in, and only that world is yours there.
Rules for plugin authors:
- Do world access in event handlers, commands and synchronous scheduler tasks. These run on an owner that fits.
- Up to layer 0.1.3 only the world of the current callback is allowed, even in
onEnableand in synchronous tasks. Reading the nether or a world you just created from there fails with the error above. - Do not touch worlds from
runTaskAsynchronously, your own threads orCompletableFuturecallbacks. Collect what you need, then hop back withBukkit.getScheduler().runTask(plugin, …). - Events from your own actions (after 0.1.3): an event that your plugin's action fires (
spawnEntity,createExplosion, damage) runs your listeners at once, inside that action, as on Paper. They run in a nested call with a context of their own, up to 8 deep. On a Vanillite before ABI 1.21 these events are dropped, and the log sayswas called again while in a call. World.getEntitiesand its relatives only list entities near the world's players and the spawn, and return nothing (instead of an error) for a world the asking task does not own.- Player writes are queued (after 0.1.3). Setting a player property where the world cannot be written (a plugin command, an event hook, an asynchronous task) does not fail: the layer keeps the value and applies it in the world's next tick. The getters return the pending value meanwhile.
Entity.setFallDistanceworks the same way.Player.getAddresskeeps the last address, so quit handlers (AuthMe) still get it. - Chunk reads of map plugins (after 0.1.3): the layer records which thread runs the current callback. A chunk read from another thread (a map plugin's render thread) is captured with
chunk_capture_nbt, which may wait for storage, and a read on the world's own thread goes through a task of that world.
ProtocolLib API
The layer contains its own implementation of ProtocolLib's API (written from the public API, in compat/protocollib) on top of the native packet interface. A plugin that depends on ProtocolLib finds it when the layer is installed; ProtocolLib's own jar is not needed.
| What | State |
|---|---|
Packet types, PacketAdapter, listeners (ListenerPriority, whitelists) |
Implemented |
PacketContainer fields |
Common packets: chat, titles, block updates, entity spawn and removal, entity metadata, sounds, player info, and the player's chat, command and use-item packets |
| Other packets | Can be listened to, cancelled and replaced |
| Sending and receiving packets | Through ProtocolManager on the packet interface |
| Real-world use | VentureChat, which depends on it, runs. Missing: AsynchronousManager (FastLogin) and the field reflection of StructureModifier and Accessors that reaches into server internals (InteractiveChat, Orebfuscator) |
Packet bodies follow the server's Minecraft version, so ProtocolLib code that touches fields is tied to it, as on Paper. PacketEvents is separate: it comes with NMS mode (see above, after 0.1.3), not with this API.
WorldEdit
WorldEdit 7.4 runs through a small adapter in the layer (compat/worldedit). The adapter is used only when WorldEdit is installed.
Floodgate API (after 0.1.3)
compat/floodgate is the layer's own implementation of Floodgate's API for the Bedrock players of Vanillite's Bedrock frontend, written from Floodgate's public API. It loads as the plugin floodgate when a plugin depends on it and no real Floodgate is installed. Forms built with GeyserMC's Cumulus library are shown to the player, and the answers reach the form's handlers. Details and limits: Spigot and Paper compatibility.
Report a missing method or a bug
- Note the method or event from the error message (
UnsupportedOperationException: …), the plugin and its version, and the Vanillite and layer versions (/versionshows the server;/pluginsthe layer). - Open an issue in the vanillite-bukkit repository (for server problems: vanillite).
- If you can, add a minimal plugin that calls the method.
VBenchandHelloBukkitare good starting points.
Pull requests are welcome in the layer's repository. Read its README and the clean-room rule first: no code may be copied from CraftBukkit, Spigot, Paper or Folia.
See also: Plugin API: packets, Plugin API: slots and hosted plugins.