You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julian Weinelt edited this page Jun 13, 2025
·
1 revision
Location wrapping is really useful for data storage, such as map instances for minigames.
⚙️ How to use
CodeLib contains 2 different types of LocationWrappers:
LocationWrapper: Full location storage
LocationWrapperReduced: Location storage without world reference
To convert between Bukkit's Location and the LocationWrappers, you need to use LocUtil.
Examples:
// Convert org.bukkit.Location to LocationWrapperLocationWrapperwrapper = LocUtil.fromBukkit(location);
// Convert to org.bukkit.Location from LocationWrapperLocationlocation = LocUtil.fromWrapper(wrapper);