Any addon author is free to use it or make hook requests (or to submit code through a pull request)
Download here
Source code here
This API makes changes to your worlds which means it is unsafe to uninstall!
Due to how villagers had to be handled, they are broken into multiple classes now which means MC will not know how to load them if you load a world without the API.
Further documentation is present in the code itself
Hooks:
General
- Version checking and display on login
- Client packet intercepting (e.g. for replacing behavior)
- Custom particle spawning
- Replace references to a block with another block class, with checks for addon conflict.
- Set map color for blocks per metadata.
- Replace an entity with another entity class in a safe manner, avoiding potential crashes which can arise from FC's hooks which do not expect references to old classes to still exist in the code. (Unfortunately this is currently bugged to not work on mob spawning, but will work on all other entities, including mobs loaded from the save file).
- Changed entity mapping with spawn egg to public.
- Changed to an abstract class. Extend the class to add professions.
- Replace references to an item with another item class, with checks for addon conflict.
- Set custom entity to use for the item in world.
- Register new commands, including client or server only.
AddonBlockDirectional
- Template for orientable block (e.g. logs).
- Handles all metadata rotation and texture rendering.
- Can have up to 4 sub-types.
This API is provided under the Creative Commons 4.0 Attribution license, which you can view here. You may do anything you please with this API as long as you give credit.