CA Update 1.8 - Advancement Position Origin and more features!
Half of a week without updates, that didn't happen often within the last month, so it's time to break that break! Changes included:
- Added
AdvancementDisplay#setX(float x) and
AdvancementDisplay#setY(float y) in case you only wanted to modify one of them
- Added
AdvancementDisplay#setPositionOrigin(Advancement originPosition) which you can use if you don't want your coordinates to be aligned globally, but by the specified advancement. So if you set x to 1 and the origin to it's parent, it will be 1 to the right from the parent. Very useful stuff! Also added
AdvancementDisplay#getPositionOrigin() - Just returns the set one or null if it's aligned globally
- Added
Advancement#generateX() and Advancement#generateY() which will return the global x and y (getX and getY will return the coordinates relative to the position origin)
- Improved performance when using multiple advancement managers
Bug Fixes:
- Coordinate calculation will now be cross-saved between Advancement Managers, so no more glitching when multiple managers add things to the same tab
- Advancement caching now also works correctly with coordinates