Skip to content
The item transport mod nobody asked for
Branch: master
Clone or download
Latest commit df32b91 Dec 23, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Spring cleaning Apr 11, 2018
src Version 1.12.2-0.0.2.2 Dec 8, 2018
.gitignore initial commit Sep 29, 2017
.travis.yml Disable build scan Oct 8, 2018
CHANGELOG.md Update changelog Dec 8, 2018
LICENSE.md Add license Feb 10, 2018
README.md Add maven badge Dec 23, 2018
build.gradle Version 1.12.2-0.0.2.2 Dec 8, 2018
gradle.properties Add active item movement hook and promote coremod Jan 7, 2018
gradlew Spring cleaning Apr 11, 2018
gradlew.bat Spring cleaning Apr 11, 2018

README.md

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) {
            /* ... */
        }
    }
}
You can’t perform that action at this time.