public class NetworkModHolder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
NetworkModHolder.DefaultNetworkChecker |
private class |
NetworkModHolder.IgnoredChecker |
private class |
NetworkModHolder.MethodNetworkChecker |
class |
NetworkModHolder.NetworkChecker
Validates that the mods versions on the client and server are compatible with mod.
|
Modifier and Type | Field and Description |
---|---|
private VersionRange |
acceptableRange |
private boolean |
acceptsVanillaClient |
private boolean |
acceptsVanillaServer |
private static int |
assignedIds |
private NetworkModHolder.NetworkChecker |
checker |
private java.lang.reflect.Method |
checkHandler |
private ModContainer |
container |
private int |
localId |
private int |
networkId |
Constructor and Description |
---|
NetworkModHolder(ModContainer container) |
NetworkModHolder(ModContainer container,
java.lang.Class<?> modClass,
java.lang.String acceptableVersionRange,
ASMDataTable table) |
NetworkModHolder(ModContainer container,
NetworkModHolder.NetworkChecker checker) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsVanilla(Side from) |
boolean |
acceptVersion(java.lang.String version) |
boolean |
check(java.util.Map<java.lang.String,java.lang.String> data,
Side side) |
java.lang.String |
checkCompatible(java.util.Map<java.lang.String,java.lang.String> data,
Side side) |
ModContainer |
getContainer() |
int |
getLocalId() |
int |
getNetworkId() |
void |
setNetworkId(int value) |
void |
testVanillaAcceptance() |
private static int assignedIds
private int localId
private int networkId
private ModContainer container
private java.lang.reflect.Method checkHandler
private VersionRange acceptableRange
private NetworkModHolder.NetworkChecker checker
private boolean acceptsVanillaClient
private boolean acceptsVanillaServer
public NetworkModHolder(ModContainer container)
public NetworkModHolder(ModContainer container, NetworkModHolder.NetworkChecker checker)
public NetworkModHolder(ModContainer container, java.lang.Class<?> modClass, @Nullable java.lang.String acceptableVersionRange, ASMDataTable table)
public boolean acceptVersion(java.lang.String version)
public boolean check(java.util.Map<java.lang.String,java.lang.String> data, Side side)
@Nullable public java.lang.String checkCompatible(java.util.Map<java.lang.String,java.lang.String> data, Side side)
public int getLocalId()
public int getNetworkId()
public ModContainer getContainer()
public void setNetworkId(int value)
public void testVanillaAcceptance()
public boolean acceptsVanilla(Side from)