public class InternalResolver extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
ClassRegistry |
refs |
| Constructor and Description |
|---|
InternalResolver(ParticleNativeClassLoader classLoader,
ClassRegistry classRegistry) |
| Modifier and Type | Method and Description |
|---|---|
ParticleNativeClassLoader |
getParticleNativeClassLoader() |
Set<String> |
getParticles_1_13()
Returns particles name
Set from current server version. |
Map<String,String> |
getParticles_1_17()
Returns particles name-to-field
Map from current server version. |
Set<String> |
getParticles_1_8()
Returns particles name
Set from current server version. |
String |
getPlayerConnectionFieldName_1_17()
Gets
PlayerConnection field name in EntityPlayer class. |
String |
getSendPacketMethodName_1_18()
Gets sendPacket method name in
PlayerConnection class. |
boolean |
isVersion_1_13()
Checks whenever current Spigot version is around MC 1.13 version.
|
boolean |
isVersion_1_15()
Checks whenever current Spigot version is around MC 1.15 version.
|
boolean |
isVersion_1_17()
Checks whenever current Spigot version is around MC 1.17 version.
|
boolean |
isVersion_1_18()
Checks whenever current Spigot version is around MC 1.18 version.
|
boolean |
isVersion_1_19()
Checks whenever current Spigot version is around MC 1.19 version.
|
boolean |
isVersion_1_7()
Checks whenever current Spigot version is around MC 1.7 version.
|
boolean |
isVersion_1_8()
Checks whenever current Spigot version is around MC 1.8 version.
|
Class<?> |
tryGetClass(String className) |
public final ClassRegistry refs
public InternalResolver(ParticleNativeClassLoader classLoader, ClassRegistry classRegistry)
public ParticleNativeClassLoader getParticleNativeClassLoader()
public Set<String> getParticles_1_8()
Returns particles name Set from current server version.
It attempts to access particle types using classes from MC 1.8.
Set from current server version.public Set<String> getParticles_1_13()
Returns particles name Set from current server version.
It attempts to access particle types using classes from MC 1.13.
Set from current server version.public Map<String,String> getParticles_1_17()
Returns particles name-to-field Map from current server version.
It attempts to access particle types using classes from MC 1.17.
Map from current server version.public String getPlayerConnectionFieldName_1_17()
Gets PlayerConnection field name in EntityPlayer class.
PlayerConnection field name in EntityPlayer class.public String getSendPacketMethodName_1_18()
Gets sendPacket method name in PlayerConnection class.
PlayerConnection class.public boolean isVersion_1_7()
Checks whenever current Spigot version is around MC 1.7 version.
public boolean isVersion_1_8()
Checks whenever current Spigot version is around MC 1.8 version.
public boolean isVersion_1_13()
Checks whenever current Spigot version is around MC 1.13 version.
public boolean isVersion_1_15()
Checks whenever current Spigot version is around MC 1.15 version.
public boolean isVersion_1_17()
Checks whenever current Spigot version is around MC 1.17 version.
public boolean isVersion_1_18()
Checks whenever current Spigot version is around MC 1.18 version.
public boolean isVersion_1_19()
Checks whenever current Spigot version is around MC 1.19 version.
Copyright © 2022. All Rights Reserved.