###Notice: This project is no longer actively maintained. You are free to fork, update, and use it as the license permits. Thank you.
####Version: 3.4.1.x
A Minecraft library for adding Developer/Tester only capes! Use this to add tester or developer only capes to your mod! Developer Capes reads a text file off a web server, public Dropbox folder, or a raw GitHub file. As long as it is not a download site, (such as MediaFire,) it should work.
Links
Getting Started
Guide: Set up with Source Code
Usage
Building
FAQ
Once Developer Capes is in your classpath somehow, you are going to want to add this to your mod when it initialized. It registers a cape config with DeveloperCapes.
Note: The note that was previously here, that said DevCapes didn't have to go in a client proxy, has been redacted. You need to put config registration in the client proxy again
DevCapes.getInstance().registerConfig($CAPES_JSON, $IDENTIFIER);
$CAPES_JSON
is the URL
(in Object
or String
form,) InputStream
, or File
to a text file hosted on a server, Dropbox, or GitHub, that has all the data Developer Capes needs to add your capes formatted in JSON. $IDENTIFIER
is a unique mod identifier so DevCapes can keep one mod's groups separate from the other.
Instead of usernames, you can now use formatted user UUIDs. Formatted user UUIDs can be pulled out manually through MCUUID.NET, or through a json file using MCAPI.
The JSON for the config looks like this:
{
"Group1": {
"capeUrl": "http://www.example.com/group1_cape.png",
"users": [
"65a88e89-a337-4c64-964e-6274439204cf",
"0bdf9bba-d329-47b5-b86f-52347cfd8cf1"
]
},
"d6e04cf3-bcaa-46fa-bc14-bba92a499545": "http://www.example.com/captain_cape.png"
}
You are going to want to make sure there is a comma after every element in the array, or string, etc, -except- when it is the last one in it's scope. If you do the logs will make this very clear.
#####Images: The cape image files are 22x17, and should be of the PNG format. Additionally, Developer Capes supports high definition capes. Those must be of the size that is divisible by 16. The height must be half of the width. So 1024x512, 2048x1024, and so on. Host them on a server, Dropbox, or GitHub.
###Building and Packaging your Mod: When you build and package your mod, you're going to want to make sure you build with the Developer Capes classes.Thats it! If you have any trouble, make a post in the Minecraft Forums post or make an issue here on GitHub.
###FAQ: ####1. I'm getting a NullPointerException when starting a dedicated server: You're calling a @SideOnly(Side.CLIENT) class on a server. STOP IT. Put it in a ClientProxy.####2. I'm getting a NoClassDefFoundError and/or a RuntimeExcption (related to an invalid side) on a dedicated server: See answer to question 1.