ModsJava
Discussions
Java mod listed for Minecraft 1.8–1.12. Download on the author's site.
⬇ Download on SpigotThis is an API - it is not a plugin. This resource is only useful for developers.
Discussions provides a simplistic and extensible way to present the concept of a "Prompt" to a player and receive their input while maintaining a high level of control over the design and internals of your own code.
Why does this look like Bukkit Conversations?
I started this project as a fork on the ideas of Conversations except that it is not specifically tied to Bukkit in that it is platform independent in the Core API.
Very simple demonstration with 2 MemoPrompts and 1 SetPrompt:
You can download this API's artifacts using Maven, like so:
Or with Gradle:
You'll also need the Bintray repository to resolve the artifact.
Here's a simple example of your first Discussion:
First, you'll need a DiscussionController.
After that, you simply need to create your discussion. You have the option of extending BukkitDiscussion, or using the DiscussionBuilder via the controller.
Here's how to do it with the DiscussionBuilder (recommended):
SomePromptClass() is figurative in the above example, in that it will represent your Discussion's first Prompt.
Once you have created your discussion, you simply need to start it for any BukkitDiscussionUser (a simple wrapper of Player that allows Discussions to operate across different platforms.)
And that's it. Once
startDiscussion is called, you're well on your way to a masterpiece user input collection system.
Check out the Discussions Wiki to learn more about how to implement Discussions into your project.
Discussions provides a simplistic and extensible way to present the concept of a "Prompt" to a player and receive their input while maintaining a high level of control over the design and internals of your own code.
Why does this look like Bukkit Conversations?
I started this project as a fork on the ideas of Conversations except that it is not specifically tied to Bukkit in that it is platform independent in the Core API.
Very simple demonstration with 2 MemoPrompts and 1 SetPrompt:
You can download this API's artifacts using Maven, like so:
Code (Text):
<dependency>
<groupId>com.algorithmjunkie.discussions</groupId>
<artifactId>bukkit</artifactId>
<version>2.0.0</version>
</dependency>
<groupId>com.algorithmjunkie.discussions</groupId>
<artifactId>bukkit</artifactId>
<version>2.0.0</version>
</dependency>
Code (Text):
compile 'com.algorithmjunkie.discussions.bukkit:2.0.0'
Code (Text):
https://dl.bintray.com/simpleauthority/discussions
First, you'll need a DiscussionController.
Code (Text):
class MyDiscussions extends JavaPlugin {
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
}
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
}
Here's how to do it with the DiscussionBuilder (recommended):
Code (Text):
class MyDiscussions extends JavaPlugin {
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
@Override
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)) return false;
Discussion discussion = controller.createDiscussion()
.startingWith(new SomePromptClass())
.withModality(true)
.withEcho(false)
.build();
}
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
@Override
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)) return false;
Discussion discussion = controller.createDiscussion()
.startingWith(new SomePromptClass())
.withModality(true)
.withEcho(false)
.build();
}
Once you have created your discussion, you simply need to start it for any BukkitDiscussionUser (a simple wrapper of Player that allows Discussions to operate across different platforms.)
Code (Text):
class MyDiscussions extends JavaPlugin {
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
@Override
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)) return false;
BukkitDiscussionUser user = new BukkitDiscussionUser((Player) sender);
Discussion discussion = controller.createDiscussion()
.startingWith(new SomePromptClass())
.withModality(true)
.withEcho(false)
.build();
controller.startDiscussion(discussion, user);
}
private DiscussionController controller;
@Override
public void onEnable() {
controller = new DiscussionController(this);
}
@Override
public void onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (!(sender instanceof Player)) return false;
BukkitDiscussionUser user = new BukkitDiscussionUser((Player) sender);
Discussion discussion = controller.createDiscussion()
.startingWith(new SomePromptClass())
.withModality(true)
.withEcho(false)
.build();
controller.startDiscussion(discussion, user);
}
Check out the Discussions Wiki to learn more about how to implement Discussions into your project.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Discussions is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 121 times (via Spigot). Download it and open it directly in the game.