Pyr0x1 / clothesline-fabric

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:Java 100.0%