ModsJava
[API] ResourcePackApi [1.7 | 1.8 | 1.9 | 1.10]
Java mod listed for Minecraft 1.7–1.9. Download on the author's site.
⬇ Download on SpigotThis API adds a ResourcePackStatusEvent which is called when a Player accepts or declines a resource pack.
It also includes method the send resource packs with a custom hash.
Example:
Note: getHash dos not work in 1.10, since it is no longer sent by the client.
Currently compatible with the following versions
Maven
Links
It also includes method the send resource packs with a custom hash.
Example:
Code (Text):
@EventHandler
public void onResourcePackStatus(ResourcePackStatusEvent e) {
e.getPlayer();// Player that accepted/declined the resource pack
e.getStatus();// Status of the resource pack (SUCCESSFULLY_LOADED, DECLINED, FAILED_DOWNLOAD, ACCEPTED)
e.getHash();// Hash of the resource pack (Can be set with ResourcePackAPI#setResourcepack)
}
public void onResourcePackStatus(ResourcePackStatusEvent e) {
e.getPlayer();// Player that accepted/declined the resource pack
e.getStatus();// Status of the resource pack (SUCCESSFULLY_LOADED, DECLINED, FAILED_DOWNLOAD, ACCEPTED)
e.getHash();// Hash of the resource pack (Can be set with ResourcePackAPI#setResourcepack)
}
Code (Text):
ResourcePackAPI.setResourcepack(Bukkit.getPlayer("inventivetalent"), "http://path/to/resource/pack.zip", "amazing_resource_pack");
Currently compatible with the following versions
- 1.7.10 (Protocol hack)
- 1.8.0 - 1.8.9
- 1.9
- 1.10 (not fully tested)
Maven
Links
Code (spiget-meta (Unknown Language)):
SlZOd2EkUm9kI1J3YW1GeUooVWtXa2QzZFdGPk4rSmFWelV3WVZoYWJHUiNSbk5hVnpVdytHMDVlVnAzUCswa0okUk1NMEp6WkZka2NHSnBPRDBrSiRSalIzZypXakpzZFZ7VyRtKmpNamsqWTIxT2JGViNSbXBoTUVaUlUxTmFNbHBZJG5waFZ6bDFVRk5XTWxwWSRucGhWemwxJGxFOVAkUiNaPlFs
Please leave a rating if you like this resource.
Donations to support me or this resource are also very much appreciated.
Donations to support me or this resource are also very much appreciated.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- 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.
[API] ResourcePackApi [1.7 | 1.8 | 1.9 | 1.10] is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9. Downloaded 14,597 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/03b89c2282b33ef720a7e5ca8cfbbb31681bc8b8?url=https%3A%2F%2Fstatic.spigotmc.org%2Fimg%2Fbtn_donate.gif)