@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface SidedProxy
This example will load a CommonProxy on the server side, and a ClientProxy on the client side.
public class MySidedProxyHolder {
{@literal @}SidedProxy(modId="MyModId",clientSide="mymod.ClientProxy", serverSide="mymod.CommonProxy")
public static CommonProxy proxy;
}
public class CommonProxy {
// Common or server stuff here that needs to be overridden on the client
}
public class ClientProxy extends CommonProxy {
// Override common stuff with client specific stuff here
}
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
clientSide
The full name of the client side class to load and populate.
|
java.lang.String |
modId
The (optional) name of a mod to load this proxy for.
|
java.lang.String |
serverSide
The full name of the server side class to load and populate.
|
public abstract java.lang.String clientSide
public abstract java.lang.String serverSide
public abstract java.lang.String modId
Mod
content
in a single jar.