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 TypeMethodDescriptionClass<?>Gets ColorParticleOption method name that calls constructor in 1.20.5.Returns 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 SpellParticleOption method name that calls constructor in 1.21.10.Gets sendPacket method name inPlayerConnectionclass since 1.18.Gets sendPacket method name inPlayerConnectionclass since 1.20.2.Gets SpellParticleOption method name that calls constructor in 1.21.10.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.20.2 version.booleanChecks whenever current Spigot version is around MC 1.20.5 version.booleanChecks whenever current Spigot version is around MC 1.21.10 version.booleanChecks whenever current Spigot version is around MC 1.21.3 version.booleanChecks whenever current Spigot version is around MC 1.21.4 version.booleanChecks whenever current Spigot version is around MC 1.7 version.booleanChecks whenever current Spigot version is around MC 1.8 version.
-
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 since 1.18.- Returns:
- a sendPacket method name in
PlayerConnectionclass.
-
getSendPacketMethodName_1_20_2
Gets sendPacket method name in
PlayerConnectionclass since 1.20.2.- Returns:
- a sendPacket method name in
PlayerConnectionclass.
-
getColorParticleOptionFactoryMethodName_1_20_5
Gets ColorParticleOption method name that calls constructor in 1.20.5.
- Returns:
- a method creating instance of ColorParticleOption.
-
getSpellParticleOptionFactoryMethodName_1_21_10
Gets SpellParticleOption method name that calls constructor in 1.21.10.
- Returns:
- a method creating instance of SpellParticleOption.
-
getPowerParticleOptionFactoryMethodName_1_21_10
Gets SpellParticleOption method name that calls constructor in 1.21.10.
- Returns:
- a method creating instance of SpellParticleOption.
-
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.
-
isVersion_1_20_2
public boolean isVersion_1_20_2()Checks whenever current Spigot version is around MC 1.20.2 version.
- Returns:
- true if this Spigot version has constructor from MC 1.20.2 version, false otherwise.
-
isVersion_1_20_5
public boolean isVersion_1_20_5()Checks whenever current Spigot version is around MC 1.20.5 version.
- Returns:
- true if this Spigot version has constructor from MC 1.20.5 version, false otherwise.
-
isVersion_1_21_3
public boolean isVersion_1_21_3()Checks whenever current Spigot version is around MC 1.21.3 version.
- Returns:
- true if this Spigot version has constructor from MC 1.21.3 version, false otherwise.
-
isVersion_1_21_4
public boolean isVersion_1_21_4()Checks whenever current Spigot version is around MC 1.21.4 version.
- Returns:
- true if this Spigot version has constructor from MC 1.20.2 version, false otherwise.
-
isVersion_1_21_10
public boolean isVersion_1_21_10()Checks whenever current Spigot version is around MC 1.21.10 version.
- Returns:
- true if this Spigot version has constructor from MC 1.20.10 version, false otherwise.
-
clazz
- Throws:
ClassNotFoundException
-