Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Clothesline

Build Status CurseForge Downloads Maven Repository

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

Developing Clothesline

To get started, refer to the MinecraftForge documentation.

Usage

To use this mod in your workspace, add the following to your build.gradle:

repositories {
    maven {url "https://oss.sonatype.org/content/repositories/snapshots"}
    maven {url "https://maven.jamieswhiteshirt.com/libs-release/"}
}

dependencies {
    deobfRuntimeOnly "com.jamieswhiteshirt:clothesline-hooks:<CLOTHESLINE_HOOKS_VERSION>"
    deobfCompile "com.jamieswhiteshirt:clothesline:<CLOTHESLINE_VERSION>"
}

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 using the INetworkManager capability. Example:

import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;

import com.jamieswhiteshirt.clothesline.api.INetworkManager;

class Example {
    @CapabilityInject(INetworkManager.class)
    public static final Capability<INetworkManager> NETWORK_MANAGER_CAPABILITY = null;
    
    void example(World world) {
        INetworkManager manager = world.getCapability(NETWORK_MANAGER_CAPABILITY, null);
        if (manager != null) {
            /* ... */
        }
    }
}

About

The item transport mod nobody asked for

Resources

License

Packages

No packages published

Languages