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.
| Constructor and Description |
|---|
InternalResolver(org.bukkit.plugin.java.JavaPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMappings() |
org.objectweb.asm.Type |
getNMS_1_17(String classPath) |
org.objectweb.asm.Type |
getNMS_1_7(String classPath) |
org.objectweb.asm.Type |
getNMS(String classPath) |
org.objectweb.asm.Type |
getOBC(String classPath) |
org.objectweb.asm.Type |
getOther(String classPath) |
String |
getPackageVersion() |
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. |
TempClassLoader |
getTempClassLoader() |
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_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.
|
void |
setTempClassLoader(TempClassLoader cl) |
public InternalResolver(org.bukkit.plugin.java.JavaPlugin plugin)
public void checkMappings()
public String getPackageVersion()
public TempClassLoader getTempClassLoader()
public void setTempClassLoader(TempClassLoader cl)
public org.objectweb.asm.Type getOther(String classPath)
public org.objectweb.asm.Type getNMS(String classPath)
public org.objectweb.asm.Type getNMS_1_17(String classPath)
public org.objectweb.asm.Type getNMS_1_7(String classPath)
public org.objectweb.asm.Type getOBC(String classPath)
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.
Copyright © 2021. All Rights Reserved.