Loose Ends Lib

Loose Ends Lib

Mod

A library that controls how servers and clients will act when joining without the mod.

Client or server Library

140 downloads
3 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Loose Ends Lib

A library that controls how servers and clients will act when joining without the mod.

Installation: Add the following to your build.gradle.

repositories {
    maven { url 'https://jitpack.io' }
}
dependencies {
    modImplementation 'com.github.Totobird-Creations:LooseEndsLib:${looseendslib_version}'
    // Optional.
    include 'com.github.Totobird-Creations:LooseEndsLib:${looseendslib_version}'
}

Add the following to your gradle.properties.

looseendslib_version = v1.0.3-mc1.19

Usage: In your initialiser's onInitialize method, add the following:

LooseEndManager.getInstance().register(mod_id, mod_name, mod_version)
    .whenClientJoins(condition)
    .whenJoinServer(condition).

Conditions:

  • LooseEnd.Condition.REQUIRED : The peer must also have the mod.
  • LooseEnd.Condition.NONE : Nothing happens.
  • LooseEnd.Condition.DISALLOWED : The peer can not have the mod.

Project members

Totobird-Creations

Owner

Details

Licensed MIT
Published 2 years ago
Updated 2 years ago