Class FakePlayerClassGenerator

java.lang.Object
nl.pim16aap2.util.codegeneration.ClassGenerator
nl.pim16aap2.animatedarchitecture.spigot.core.hooks.FakePlayerClassGenerator

public final class FakePlayerClassGenerator extends ClassGenerator
Class used to generate a class that implements Player and can be used to create a fake-online player who is actually offline.
  • Method Details

    • generateImpl

      protected void generateImpl() throws Exception
      Description copied from class: ClassGenerator
      The implementation of the class generation code. This method is called by ClassGenerator.generate() when needed.
      Specified by:
      generateImpl in class ClassGenerator
      Throws:
      Exception - When any kind of exception occurs during the generation process.
    • getBaseName

      protected String getBaseName()
      Description copied from class: ClassGenerator
      Retrieves the base name of the class to be generated.

      This should be the simple name describing the class that is to be generated.

      For example, the base name of the generated EntityFallingBlock class would be just that: "EntityFallingBlock". Any additional information (such as the fact that it is a generated class) will be added later on by ClassGenerator.getFormattedName().

      Specified by:
      getBaseName in class ClassGenerator
      Returns:
      The base name of the class to be generated.
    • getConstructorArgumentTypes

      protected Class<?>[] getConstructorArgumentTypes()
      Description copied from class: ClassGenerator
      Retrieves the array of parameter types as the generated constructor takes them.
      Specified by:
      getConstructorArgumentTypes in class ClassGenerator
      Returns:
      The array of parameter types of the generated constructor.