ModsJava
HorseLib
Java mod listed for Minecraft 1.9–1.11. Downloads from the MC Java Mods app on Android.
⬇ Download on Spigot
HorseUtil is a little lib that i made for my
plugins, but feel free to use it on your projects too!
Features:
AES Encryption
FileManager
Item API (not for creating ItemStacks)
ItemSerializer
PlayerJumpEvent
ReflectionUtil
Packet
Title (There's p#sendTitle too..)
More coming soon...
Usage:
Where inventory is the subpackage.
#getOBCClass returns an org.craftbukkit._version_ class.
If you're using my lib, let me know, it taked some time
creating it, i would appreciate a review too.
I haven't fully tested the lib, if there's an error tell me
instantly and ill try to fix asap.
Some code has been found on the forums,
sorry but i don't remeber from who i got some classes,
in case is yours, pm me and ill add you as contributor.
plugins, but feel free to use it on your projects too!
Features:
AES Encryption
FileManager
Item API (not for creating ItemStacks)
ItemSerializer
PlayerJumpEvent
ReflectionUtil
Packet
Title (There's p#sendTitle too..)
More coming soon...
Usage:
Spoiler: AES Encryption
AES Encryption cannot exceed 16 characters!
Code (Text):
String strToEncrypt = "My text to encrypt";
String strPssword = "encryptor key";
AES.setKey(strPssword);
AES.encrypt(strToEncrypt.trim());
Bukkit.broadcastMessage("String to Encrypt: " + strToEncrypt);
Bukkit.broadcastMessage("Encrypted: " + AES.getEncryptedString());
String strToDecrypt = AES.getEncryptedString();
AES.decrypt(strToDecrypt.trim());
Bukkit.broadcastMessage("String To Decrypt : " + strToDecrypt);
Bukkit.broadcastMessage("Decrypted : " + AES.getDecryptedString());
String strPssword = "encryptor key";
AES.setKey(strPssword);
AES.encrypt(strToEncrypt.trim());
Bukkit.broadcastMessage("String to Encrypt: " + strToEncrypt);
Bukkit.broadcastMessage("Encrypted: " + AES.getEncryptedString());
String strToDecrypt = AES.getEncryptedString();
AES.decrypt(strToDecrypt.trim());
Bukkit.broadcastMessage("String To Decrypt : " + strToDecrypt);
Bukkit.broadcastMessage("Decrypted : " + AES.getDecryptedString());
Spoiler: Item
Spoiler: #getName
Code (Text):
Item.getName(ItemStack is);
Spoiler: #getSkull
Code (Text):
item.getSkull(String url);
Spoiler: #sendItemTooltipMessage
Code (Text):
for(Player pls : Bukkit.getOnlinePlayers()){
HorseUtils.getInstance().itemapi.sendItemTooltipMessage(pls, "HEY", new ItemStack(Material.BOAT_SPRUCE));
}
HorseUtils.getInstance().itemapi.sendItemTooltipMessage(pls, "HEY", new ItemStack(Material.BOAT_SPRUCE));
}
Spoiler: ItemSerializer
The item to deserialize needs to be a string
Spoiler: #serialize
Code (Text):
String serialized = HorseUtils.getInsance().serializerapi.serialize(new ItemStack(Material.STONE));
Spoiler: #deserialize
Code (Text):
HorseUtils.getInstance().serializeapi.deserialize(serializeditem);
Spoiler: Packet
You shouldn't use it.
Spoiler: #sendPacket
Code (Text):
Packet.sendPacket(player, packet);
Spoiler: PlayerJumpEvent
For register that event, use e#register
Code (Text):
//Methods:
Player p = e.getPlayer();
e.register(JavaPlugin plugin);
Player p = e.getPlayer();
e.register(JavaPlugin plugin);
Spoiler: ReflectionUtil
If the NMS class is in a subpackage you can use
Spoiler: #getNMSClass
Code (Text):
Class<?> chatmessage = ReflectionUtil.getNMSClass("ChatMessage");
Spoiler: #getOBCClass
Code (Text):
Class<?> craftworld = ReflectionUtil.getOBCClass("CraftWorld");
Spoiler: #getConnection
Code (Text):
Object pconnection = ReflectionUtil.getConnection(player);
Code (Text):
ReflectionUtil.getNMSClass("inventory.ItemStack");
#getOBCClass returns an org.craftbukkit._version_ class.
Spoiler: FileManager
Code (Text):
HorseFile file = new HorseFile(Plugin plugin, String name, boolean replace);
If you're using my lib, let me know, it taked some time
creating it, i would appreciate a review too.
I haven't fully tested the lib, if there's an error tell me
instantly and ill try to fix asap.
Some code has been found on the forums,
sorry but i don't remeber from who i got some classes,
in case is yours, pm me and ill add you as contributor.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.9, 1.10, 1.11
- 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.
HorseLib is a free Minecraft Java mod. Compatible with Minecraft 1.9, 1.10, 1.11. Downloaded 132 times (via Spigot). Download it and open it directly in the game.