Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Java support #1

Open
y9san9 opened this issue Feb 21, 2021 · 1 comment
Open

Java support #1

y9san9 opened this issue Feb 21, 2021 · 1 comment
Labels
question Further information is requested

Comments

@y9san9
Copy link

y9san9 commented Feb 21, 2021

Guys that making mods may be interested by this library, but they may not know koltin

@y9vad9 y9vad9 added the todo It is planned to do label Feb 21, 2021
@y9vad9 y9vad9 mentioned this issue Feb 22, 2021
@y9vad9
Copy link
Owner

y9vad9 commented Feb 22, 2021

Recently, I added SketchwareJavaAPI (Java wrapper).
To use the library in Java, include the following dependencies in build.gradle:

repositories {
    maven { url 'https://dl.kotlingang.fun' }
}
dependencies {
    implementation "io.sketchware.api:SketchwareJavaAPI:[version]"
}

Everything works the same as in the Kotlin version, only in the Java version callbacks appeared:

SketchwareJavaAPIClient client = new SketchwareJavaAPIClient();
client.getAllTags(new ResponseCallback<>() {
@Override
public void onSuccess(List<SharedTag> body) {
System.out.println(body);
}

@Override
public void onError(@NotNull Throwable throwable) {
System.err.println(throwable.getLocalizedMessage());
}
});

@y9vad9 y9vad9 closed this as completed Feb 22, 2021
@y9vad9 y9vad9 added question Further information is requested and removed todo It is planned to do labels Feb 23, 2021
@y9vad9 y9vad9 reopened this Feb 23, 2021
Repository owner locked as resolved and limited conversation to collaborators Feb 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants