Glowkit-Legacy
Glowkit-Legacy copied to clipboard
[WIP] MaterialMatchers: match material(data) to given condition (f.e. all wooden stairs)
While the Material enum grows and grows, there's the need for some kind of grouping Materials.
For now, we have to stick to EnchantmentTarget, however, this solution can't be extended for other purposes like to check for (Wooden)Stairs or even plugin-custom filters.
So (especially with the new updates for MC with more and more blocks) I started writing this little classes, to easily group Materials. It can also be used for some MaterialData (f.e. checking for salmon/pufferfish/clownfish) or any other object, f.e. ItemStack (there could be Matchers for finding ItemStacks containing max amount(64/16/1), durability (deterioration, data, ...)) and so on.
This adds just some features to the Bukkit-API, no plugin breaking nor must it be used with Glowstone. It's not finished yet (only a few Material-Matcher in Materials), but I'd like to get some feedback before I (or everyone who likes) continues this.