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.
External resources
Project members
Totobird-Creations
Owner
Technical information
License
MIT
Client side
optional
Server side
optional
Project ID