Class ParticleMappings

java.lang.Object
xyz.xenondevs.particle.ParticleMappings

public class ParticleMappings extends Object
Maps classes, methods and fields to their respective names for different versions of Minecraft.
  • Constructor Details

    • ParticleMappings

      public ParticleMappings()
  • Method Details

    • getMappedClass

      public static Class<?> getMappedClass(String name)
      Gets the mapped Class for the given name.
      Parameters:
      name - the name of the class
      Returns:
      the mapped Class
    • getMappedMethod

      public static Method getMappedMethod(Class<?> targetClass, String name, Class<?>... parameterTypes)
      Gets the mapped Method for the given name.
      Parameters:
      targetClass - the class to get the method from
      name - the name of the method
      parameterTypes - the parameter types of the method
      Returns:
      the mapped Method
    • getMappedField

      public static Field getMappedField(Class targetClass, String name, boolean declared)
      Gets the mapped Field for the given name.
      Parameters:
      targetClass - the class to get the field from
      name - the name of the field
      declared - whether to get the declared field or not
      Returns:
      the mapped Field