PlatformAdapter
interface PlatformAdapter
Adapts platform-specific objects and operations to the BetterModel API.
This interface provides methods for retrieving players, creating items, and checking server state, abstracting away the differences between platforms like Bukkit and Fabric.
Since
2.0.0
Functions
Link copied to clipboard
Returns a platform-specific representation of an empty item stack (air).
Link copied to clipboard
Checks if it is safe to access region data from the current thread.
Link copied to clipboard
Checks if the current thread is the main server tick thread.
Link copied to clipboard
Retrieves an offline player by their UUID.
Link copied to clipboard
Retrieves an online player by their UUID.
Link copied to clipboard
Returns the server's default view distance.
Link copied to clipboard
Returns a location at coordinates (0, 0, 0) in a default or null world.