A seamless laundry experience that is definitely not an item transport mod for Fabric.
- rtree-3i-lite-fabric: Provides a spatial indexing library used by Clothesline Fabric.
To get started, refer to the Fabric documentation.
To use this mod in your workspace, add the following to your build.gradle
:
repositories {
maven {url "https://maven.jamieswhiteshirt.com/libs-release/"}
}
dependencies {
modImplementation "com.jamieswhiteshirt:clothesline-fabric:<CLOTHESLINE_FABRIC_VERSION>"
modImplementation "com.jamieswhiteshirt:rtree-3i-lite-fabric:0.3.0"
}
Clothesline has an API, but it is currently unstable and with limited functionality.
The API is located in the com.jamieswhiteshirt.clothesline.api
package.
To get started, get the network manager of a World by casting to the NetworkManagerProvider
interface and call getNetworkManager
.
Example:
import com.jamieswhiteshirt.clothesline.api.NetworkManagerProvider;
import com.jamieswhiteshirt.clothesline.api.NetworkManager;
class Example {
void example(World world) {
NetworkManager manager = ((NetworkManagerProvider) world).getNetworkManager();
/* ... */
}
}