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

  • @rainbowdog2007
    @rainbowdog20072 ай бұрын

    Výborná angličtina! Ani by som nepovedal že si slovák. Super

  • @user-ql6qr4uu4q
    @user-ql6qr4uu4q2 ай бұрын

    how funny it is to look at all this after learning Spring

  • @MoneyAccount-cv6cs
    @MoneyAccount-cv6cs2 ай бұрын

    Ok now make tutorial for brigadier commands, they support Colors and much more, thanks!

  • @kangarko

    @kangarko

    Ай бұрын

    Thanks for the idea!

  • @user-kv6gy8kc9k
    @user-kv6gy8kc9k2 ай бұрын

    Huh? This still actual??

  • @kangarko

    @kangarko

    2 ай бұрын

    Yes