1.19 Complete Rewrite #226
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
oitsjustjose/V-Tweaks!226
Loading…
Reference in a new issue
No description provided.
Delete branch "1.19-Rewrite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This rewrite includes a couple of major changes:
Removed Features:
Added Features
Overhauls
VTweakand using the@Tweakannotation. The config system will automatically grab onto what configs you need based on this annotation, and the Tweak Registry will automatically grab and fire all custom tweaks' eventscategoryparam in the@Tweakannotation tells the config system what category to put the tweak's configs in - if it's not one of the ones listed inCommonConfig.javaorClientConfig.java, then it will be skipped.Coding Practices
As mentioned, the code in V-Tweaks is now much more modular by employing the new
@TweakClass Annotation. This means that you may have to override theisForEventmethod if your event is not the lowest subclass (e.g.EntityEventinstead ofEntityEvent.OtherEvent). I suggest finding the best subclass to use and use it instead of using a generic, but that's just my opinion.On top of that, with Java 16 the
varkeyword is now available and employed wherever possible. This is primarily because my job has my using Kotlin a lot which usesvarandvalreligiously.