-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
201 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# DiscordRP | ||
[![Build status](https://ci.appveyor.com/api/projects/status/rw8qx4iejtk10f88?svg=true)](https://ci.appveyor.com/project/ItsDizzy/discordrp) | ||
|
||
A Minecraft mod which adds Discord integration into Minecraft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
src/api/java/me/paulhobbel/discordrp/api/IDiscordRPDimensionProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@API(apiVersion = "0.0.2", owner = "discordrp", provides = "discordrp-api") | ||
@API(apiVersion = "0.0.3", owner = "discordrp", provides = "discordrp-api") | ||
package me.paulhobbel.discordrp.api; | ||
|
||
import net.minecraftforge.fml.common.API; |
18 changes: 0 additions & 18 deletions
18
src/api/java/me/paulhobbel/discordrp/api/world/WorldIdPredicate.java
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/api/java/me/paulhobbel/discordrp/api/world/WorldTypePredicate.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/me/paulhobbel/discordrp/addons/ConfigPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package me.paulhobbel.discordrp.addons; | ||
|
||
import me.paulhobbel.discordrp.DiscordRP; | ||
import me.paulhobbel.discordrp.api.DiscordRPPlugin; | ||
import me.paulhobbel.discordrp.api.IDiscordRPPlugin; | ||
import me.paulhobbel.discordrp.api.IDiscordRPRegistry; | ||
import me.paulhobbel.discordrp.api.impl.Dimension; | ||
import me.paulhobbel.discordrp.common.config.DiscordRPConfig; | ||
import me.paulhobbel.discordrp.common.Log; | ||
|
||
@DiscordRPPlugin(modid = DiscordRP.MODID, priority = -1) | ||
public class ConfigPlugin implements IDiscordRPPlugin { | ||
@Override | ||
public void register(IDiscordRPRegistry registry) { | ||
for(String stringDimension : DiscordRPConfig.customDimensions) { | ||
String[] parts = stringDimension.split("\\|"); | ||
if(parts.length == 2) { | ||
Log.info("Registering config dimension with key '{}' and title '{}'", parts[0], parts[1]); | ||
registry.registerDimension(new Dimension(parts[0], parts[1]), parts[0]); | ||
} else { | ||
Log.error("'{}' is not a correct format for a dimension, use <type>|<title> instead.", stringDimension); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.