Home›Java›Mods›BannerAPI - Easy way to create, store and manage banners!
BannerAPI - Easy way to create, store and manage banners!
ModsJava

BannerAPI - Easy way to create, store and manage banners!

Java mod listed for Minecraft 1.8–1.10. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
BannerAPI allows developers to easily create, manage, modify, and store banners with pattern data with ease.

BannerAPI doesn't come with any special features when installed, it only allows other plugins to access its libraries.

BannerAPI Javadocs can be found at toadally.github.io/BannerAPI

Short Tutorial:

First, you want to create your banner.
Code (Text):
BannerAPI banner = new BannerAPI(DyeColor.[COLOR]);
Next, we need to append patterns to the banner. Let's create a pattern now.
Code (Text):
BannerPattern pattern = new BannerPattern(PatternType.[TYPE], DyeColor.[COLOR]);
You can change this pattern however you like. There are set methods for both the pattern and color. We're not going to bother with that for right now.
Next, to apply the pattern, you want to use the addPattern method on your banner.
Code (Text):
banner.addPattern(pattern);
This will add the pattern to the top layer. There is another addPattern method which also takes an index.
Finally, let's give the banner to a player. Luckily, there's a method for this too! To get the banner as an ItemStack, do:
Code (Text):
p.getInventory().addItem(banner.getBanner());
And there you have it! The player has the banner and everyone can live happily ever after!
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

BannerAPI - Easy way to create, store and manage banners! is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 224 times (via Spigot). Download it and open it directly in the game.

Explore more