java.lang.Object
com.github.fierioziy.particlenativeapi.core.asm.utils.InternalResolver

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.

  • Field Details

  • Constructor Details

  • Method Details

    • getParticleNativeClassLoader

      public ParticleNativeClassLoader getParticleNativeClassLoader()
    • getParticles_1_8

      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.

      Returns:
      particles name Set from current server version.
    • getParticles_1_13

      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.

      Returns:
      particles name Set from current server version.
    • getParticles_1_17

      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.

      Returns:
      particles name-to-field Map from current server version.
    • getParticles_1_19_3

      public Map<String,String> getParticles_1_19_3()

      Returns particles name-to-field Map from current server version.

      It attempts to access particle types using classes from MC 1.19.

      Returns:
      particles name-to-field Map from current server version.
    • getPlayerConnectionFieldName_1_17

      public String getPlayerConnectionFieldName_1_17()

      Gets PlayerConnection field name in EntityPlayer class.

      Returns:
      a PlayerConnection field name in EntityPlayer class.
    • getSendPacketMethodName_1_18

      public String getSendPacketMethodName_1_18()

      Gets sendPacket method name in PlayerConnection class since 1.18.

      Returns:
      a sendPacket method name in PlayerConnection class.
    • getSendPacketMethodName_1_20_2

      public String getSendPacketMethodName_1_20_2()

      Gets sendPacket method name in PlayerConnection class since 1.20.2.

      Returns:
      a sendPacket method name in PlayerConnection class.
    • 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.
    • clazz

      public Class<?> clazz(String className) throws ClassNotFoundException
      Throws:
      ClassNotFoundException