RxPaper - RxJava for Spigot and Paper icon

RxPaper - RxJava for Spigot and Paper -----

A small Reactive API with RxJava for Minecraft Paper Plugins, to make Development with RxJava easier



RxPaper
A small Reactive API with RxJava for Minecraft Paper Plugins, to make Development with RxJava easier.
This API work with Paper and Spigot

Usage:

https://github.com/Newspicel/RxPaper
In this Repo you can see the Usage. Its very simple

RxPaper.io()
When you want to bing something back in the Minecraft Thread

Code (Java):
public void test (Plugin plugin ) {
    Flowable. just ( "" ). subscribeOn (RxPaper. io (plugin ) ). subscribe ( ) ;
}


RxPaper.event()
When you want to listen an Event

Code (Java):
public void test (Plugin plugin ) {
   RxPaper. event (plugin, PlayerJoinEvent. class ). map (PlayerEvent ::getPlayer ). subscribe (player -> player. sendMessage ( "Hello" ) ) ;
   RxPaper. event (plugin, PlayerJoinEvent. class, new EventSettings (EventPriority. MONITOR, false ) ). map (PlayerEvent ::getPlayer ). subscribe (player -> player. sendMessage ( "Hello later" ) ) ;
}


RxPaper.command()

When you want to listen a Command

Code (Java):
  public void test (Plugin plugin ) {
    RxPaper. command (plugin, "test" ). subscribe (command -> command. commandSender ( ). sendMessage ( "This is a command" ) ) ;
}


Installation:

Maven:
Code (Text):
<repository>
     <id>github</id>
     <url>https://maven.pkg.github.com/newspicel/rxjava</url>
</repository>

<dependency>
    <groupId>dev.newspicel.rxpaper</groupId>
    <artifactId>rxpaper</artifactId>
    <version>1.0</version>
</dependency>


Gradle:

Code (Text):
repositories {
    maven {
        url = 'https://maven.pkg.github.com/newspicel/rxjava'
    }
}

dependencies {
    implementation 'dev.newspicel.rxpaper:rxpaper:1.0'
}
Resource Information
Author:
----------
Total Downloads: 72
First Release: Aug 29, 2021
Last Update: Aug 29, 2021
Category: ---------------
All-Time Rating:
1 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings