Ep60. Custom Annotations - Creating A Command Framework With Reflection
How to make custom annotations in Java. We will use Spigot API as an example to make custom command framework for your Minecraft plugin.
I will show you how to create a custom annotation and use it to execute methods in your command depending on its subarguments.
NB: You need to understand Java basics + how to add commands to Minecraft plugins. I recommend you join my class because we provide lessons plus live tutoring twice a week to help you. If you can't, I made a free video on adding commands to your Minecraft plugin here: • Ep4. Commands & Tab Co...
Here is what we will cover:
- Creating an abstract command as a base
- Creating our custom annotation
- Adding parameters to our annotation
- Using reflection inside our abstract command to find methods in the extending class and invoke them automatically based on the annotation's value
- Adding tab complete and auto-generated usage on invalid subcommand
- High-performance optimizations and using a reflection cache
== GET FULL COURSE ==
Java + Minecraft Plugin Development: mineacademy.org/project-orion...
Forge Modding: mineacademy.org/forge-mastery...
== RESOURCES ==
Source code: app.mineacademy.org/wp-conten...
#coding #code #tutorial #money #developer #java #minecraft #minecraftplugin #bukkit #spigot #spigotmc #paper #paperspigot #programming
Пікірлер: 7
Výborná angličtina! Ani by som nepovedal že si slovák. Super
how funny it is to look at all this after learning Spring
Ok now make tutorial for brigadier commands, they support Colors and much more, thanks!
@kangarko
Ай бұрын
Thanks for the idea!
Huh? This still actual??
@kangarko
2 ай бұрын
Yes