codebook
codebook copied to clipboard
Library for handling jar remaping logic for PaperMC
Also centralizing the unwrapping logic in a separate class
There are several useful reports that could be generated from a run of codebook. ```[tasklist] ### Tasks - [ ] Missing parameter mappings - [ ] All locals assigned from...
Various methods on CompoundTag return a type based on a key input which is a string. Very commonly, that string is a constant which is easy to lookup when choosing...
There are a lot of getAs methods, like on nbt, or gson-related things. These should be filtered out, and the remaining text should be checked against java keywords so we...
Currently, if the mappings are completed for an interface and that interface is used to create a lambda, the parameters of that lambda do not inherit the names from the...
A lot of the methods on Registry, HolderGetter, HolderLookup, RegistryAccess take `ResourceKey` as the sole parameter returning something. A lot of the time, those ResourceKey arguments are obtained from static...
The integer returned by `Enum#ordinal` should not just use the `i#` format, but should be something associated with the type of the enum, like for `Direction`, it could be `directionOrdinal`....
Various collection types have methods that return booleans based on some condition, like if the element was successfully added or removed. The boolean local var names can be `added` or...
An ItemStack constructor that uses one of the static fields in `Items.java` should have its local var name be associated with that item name. So something like ```java ItemStack itemStack...