Interface CustomWaypointStyle


public interface CustomWaypointStyle
Custom waypoint styles apply to icons/players (known as waypoints) on the locator bar on the client. Java Edition allows defining custom waypoint styles for an Identifier in a resourcepack, and Bedrock Edition allows specifying custom textures for waypoints through packets.

This interface may be implemented by developers if they wish to display custom textures on the locator bar on Bedrock Edition. Implementations must always implement both texturePath(Identifier, float) and textureSize(Identifier, float), and should be registered for one or more waypoint style identifiers in the SessionDefineCustomWaypointsEvent. For implementation details, see the Javadocs at the respective methods.

If you wish to define a custom waypoint style that acts like custom waypoint styles on Java Edition, use vanillaLike(int, int).

Since:
2.11.0
See Also: