Back to mods
scafall project artwork

Modrinth · Minecraft mod

scafall

Simple wrappers for Minecraft classes that make it easier to develop cross-platform APIs, as well as extra tools to help with cross-platform plugin and mod development.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which scafall release should I use?

Updated 15 days ago
alpha file 1.0-alpha.3.0+spigot
Game version 26.3
Loader spigot

scafall 1.0-alpha.3.0+spigot targets 26.3 with spigot. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is scafall required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release spigot
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does scafall 1.0-alpha.3.0+spigot need?

1.0-alpha.3.0+spigot. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add scafall without breaking your instance.

Built for scafall 1.0-alpha.3.0+spigot. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0-alpha.3.0+spigot. It targets 26.3 with spigot; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0-alpha.3.0+spigot. It opens that exact file at the source.

About this project

What does scafall add?

The main goal of scafall is to provide a lightweight wrapping solution for creating cross-platform APIs.
A secondary goal is to provide utils for the most used parts of each platform, such as Tasks & Scheduling or Kotlin-specific convenience utils for libraries like Adventure.

Note: Scafall is a development library not meant to be used by players or provide gameplay features. Other plugins/mods may require it as a dependency.

Proxy Interfaces

Scafall avoids wrapping every Platform/Minecraft feature by providing simple wrapper interfaces, that are only used as a kind of proxy.

  1. The API (created by the plugin/mod dev) accepts wrappers as arguments (e.g. ScafallItemStack) in functions.
  2. The implementations of those functions unwrap() the wrapper arguments to the native Minecraft object, work with those (e.g., ItemStack), and wrap() any return value.
  3. Other Mods/Plugins wrap() their platform-specific objects (e.g., org.bukkit.inventory.ItemStack) and pass those into the API.

These interfaces are lightweight and provide access to very few properties of the wrapped object.
The idea is to purely use them as a transfer between Mods/Plugins, API, and Implementation, allowing for easier sharing of common code between platforms.

Wrapping and Unwrapping: Third-Party Mods/Plugins <--unwrap/wrap--> API <--wrap/unwrap--> Implementation

Scafall uses Minecraft as the ground truth, so proxies always wrap the native Minecraft types.
When wrapping other platform types, those are first converted into the native MC types.
(Spigot/Paper objects are usually wrappers themselves, in which case it just uses that wrapped value)

Limitations & Memory Concerns

The same limitation applies to wrappers as they do to native types. That means one should never attempt to store a wrapper in a list or map, as that would lead to memory leaks.
They are intended to be used only as parameters or return values to/from API calls.

Work in Progress

This is still a work-in-progress project, so don't expect anything to work seamlessly.
There is no guarantee of API compatibility yet, but it will be provided eventually.
The current API is still unstable and likely to change at anytime without notice!

Additional Modules/Libraries

The goal of this project is to really just provide the basic scaffolding and assist in the development process.
Additional Modules/Libraries may use scafall to provide more niche APIs and Utils.

  • viewportl - Minecraft UI Framework based on Compose Runtime, for powerful, reactive and efficient UIs.
    (Uses scafall to make it possible to create cross-platform UIs)

Project description from Modrinth.

Pick your setup

scafall by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

6 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

scafall versions and loaders

15 of 15 releases match

Looking for an older file? The official Modrinth project page is in Resources.