Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.74 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.74 KB

Clothesline Fabric

CurseForge Downloads Maven Repository

A seamless laundry experience that is definitely not an item transport mod for Fabric.

Developing Clothesline Fabric

To get started, refer to the Fabric documentation.

Usage

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();
        /* ... */
    }
}