Package dev.miyomiyo.agentbridge.client
Interface ClientExtension
public interface ClientExtension
Optional Minecraft-specific UI contribution. Register via
META-INF/services/dev.miyomiyo.agentbridge.client.ClientExtension. A class implementing both this
interface and AgentExtension registers only as an AgentExtension service: the host calls its game
registration first, then client registration on the same instance. This allows a world binding to
be shared without static state. Do not list the same class in both services. Use AgentExtension
for game tools and ordinary declarative settings. This interface belongs to the matching
Minecraft/loader product; it is not part of the Java-only agent-api artifact.
Construction/registration must not open screens, start work, access a world, or perform I/O.
-
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringmodId()voidregister(ClientRegistrar registrar) Register once at startup.
-
Method Details
-
modId
java.lang.String modId() -
register
Register once at startup. Do not retain the registrar. A failed batch publishes nothing.
-