Home›Java›Mods›RxPaper - RxJava for Spigot and Paper
RxPaper - RxJava for Spigot and Paper
ModsJava

RxPaper - RxJava for Spigot and Paper

Java mod listed for Minecraft 1.8–1.17. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
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'
}
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

RxPaper - RxJava for Spigot and Paper is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 76 times (via Spigot). Download it and open it directly in the game.

Explore more