Class InternalResolver
Class used to resolve internal NMS and OBC classes, provide temporary class loader and provide utility methods for internal class access.
It is used in unit tests. This is the reason, why class generation has been split into empty constructor and method loading API container internals.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInternalResolver(ParticleNativeClassLoader classLoader, SpigotClassRegistry classRegistry) -
Method Summary
Modifier and TypeMethodDescriptionReturns particles nameSetfrom current server version.Returns particles name-to-fieldMapfrom current server version.Returns particles name-to-fieldMapfrom current server version.Returns particles nameSetfrom current server version.GetsPlayerConnectionfield name inEntityPlayerclass.Gets sendPacket method name inPlayerConnectionclass.booleanChecks whenever current Spigot version is around MC 1.13 version.booleanChecks whenever current Spigot version is around MC 1.15 version.booleanChecks whenever current Spigot version is around MC 1.17 version.booleanChecks whenever current Spigot version is around MC 1.18 version.booleanChecks whenever current Spigot version is around MC 1.19 version.booleanChecks whenever current Spigot version is around MC 1.19.3 version.booleanChecks whenever current Spigot version is around MC 1.7 version.booleanChecks whenever current Spigot version is around MC 1.8 version.Class<?>tryGetClass(String className)
-
Field Details
-
refs
-
-
Constructor Details
-
InternalResolver
-
-
Method Details
-
getParticleNativeClassLoader
-
getParticles_1_8
Returns particles name
Setfrom current server version.It attempts to access particle types using classes from MC 1.8.
- Returns:
- particles name
Setfrom current server version.
-
getParticles_1_13
Returns particles name
Setfrom current server version.It attempts to access particle types using classes from MC 1.13.
- Returns:
- particles name
Setfrom current server version.
-
getParticles_1_17
Returns particles name-to-field
Mapfrom current server version.It attempts to access particle types using classes from MC 1.17.
- Returns:
- particles name-to-field
Mapfrom current server version.
-
getParticles_1_19_3
Returns particles name-to-field
Mapfrom current server version.It attempts to access particle types using classes from MC 1.19.
- Returns:
- particles name-to-field
Mapfrom current server version.
-
getPlayerConnectionFieldName_1_17
Gets
PlayerConnectionfield name inEntityPlayerclass.- Returns:
- a
PlayerConnectionfield name inEntityPlayerclass.
-
getSendPacketMethodName_1_18
Gets sendPacket method name in
PlayerConnectionclass.- Returns:
- a sendPacket method name in
PlayerConnectionclass.
-
isVersion_1_7
public boolean isVersion_1_7()Checks whenever current Spigot version is around MC 1.7 version.
- Returns:
- true if this Spigot version has constructor from MC 1.7 version, false otherwise.
-
isVersion_1_8
public boolean isVersion_1_8()Checks whenever current Spigot version is around MC 1.8 version.
- Returns:
- true if this Spigot version has constructor from MC 1.8 version, false otherwise.
-
isVersion_1_13
public boolean isVersion_1_13()Checks whenever current Spigot version is around MC 1.13 version.
- Returns:
- true if this Spigot version has constructor from MC 1.13 version, false otherwise.
-
isVersion_1_15
public boolean isVersion_1_15()Checks whenever current Spigot version is around MC 1.15 version.
- Returns:
- true if this Spigot version has constructor from MC 1.15 version, false otherwise.
-
isVersion_1_17
public boolean isVersion_1_17()Checks whenever current Spigot version is around MC 1.17 version.
- Returns:
- true if this Spigot version has constructor from MC 1.17 version, false otherwise.
-
isVersion_1_18
public boolean isVersion_1_18()Checks whenever current Spigot version is around MC 1.18 version.
- Returns:
- true if this Spigot version has constructor from MC 1.18 version, false otherwise.
-
isVersion_1_19
public boolean isVersion_1_19()Checks whenever current Spigot version is around MC 1.19 version.
- Returns:
- true if this Spigot version has constructor from MC 1.19 version, false otherwise.
-
isVersion_1_19_3
public boolean isVersion_1_19_3()Checks whenever current Spigot version is around MC 1.19.3 version.
- Returns:
- true if this Spigot version has constructor from MC 1.19.3 version, false otherwise.
-
tryGetClass
-