Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamieswhiteshirt/clothesline-fabric
A seamless laundry experience that is definitely not an item transport mod.
https://github.com/jamieswhiteshirt/clothesline-fabric
fabricmc fabricmc-mod minecraft minecraft-mod
Last synced: 2 months ago
JSON representation
A seamless laundry experience that is definitely not an item transport mod.
- Host: GitHub
- URL: https://github.com/jamieswhiteshirt/clothesline-fabric
- Owner: JamiesWhiteShirt
- License: mit
- Created: 2018-12-28T23:47:02.000Z (about 6 years ago)
- Default Branch: 1.16
- Last Pushed: 2021-07-20T05:17:13.000Z (over 3 years ago)
- Last Synced: 2024-10-31T11:36:36.468Z (2 months ago)
- Topics: fabricmc, fabricmc-mod, minecraft, minecraft-mod
- Language: Java
- Homepage:
- Size: 632 KB
- Stars: 9
- Watchers: 2
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Clothesline Fabric
[![CurseForge Downloads](http://cf.way2muchnoise.eu/clothesline-fabric.svg)](https://www.curseforge.com/minecraft/mc-mods/clothesline-fabric)
[![Maven Repository](https://img.shields.io/maven-metadata/v/https/maven.jamieswhiteshirt.com/libs-release/com/jamieswhiteshirt/clothesline-fabric/maven-metadata.xml.svg)](https://maven.jamieswhiteshirt.com/libs-release/com/jamieswhiteshirt/clothesline-fabric/)A seamless laundry experience that is definitely not an item transport mod for [Fabric](https://fabricmc.net/).
- [rtree-3i-lite-fabric](https://github.com/JamiesWhiteShirt/rtree-3i-lite-fabric): Provides a spatial indexing library used by Clothesline Fabric.
## Developing Clothesline Fabric
To get started, refer to the [Fabric documentation](https://fabricmc.net/wiki/setup).
## Usage
To use this mod in your workspace, add the following to your `build.gradle`:
```groovy
repositories {
maven {url "https://maven.jamieswhiteshirt.com/libs-release/"}
}dependencies {
modImplementation "com.jamieswhiteshirt:clothesline-fabric:"
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:```java
import com.jamieswhiteshirt.clothesline.api.NetworkManagerProvider;
import com.jamieswhiteshirt.clothesline.api.NetworkManager;class Example {
void example(World world) {
NetworkManager manager = ((NetworkManagerProvider) world).getNetworkManager();
/* ... */
}
}
```