Class FakePlayerClassGenerator
java.lang.Object
nl.pim16aap2.util.codegeneration.ClassGenerator
nl.pim16aap2.animatedarchitecture.spigot.core.hooks.FakePlayerClassGenerator
Class used to generate a class that implements
Player and can be used to create a fake-online player who is
actually offline.-
Field Summary
Fields inherited from class nl.pim16aap2.util.codegeneration.ClassGenerator
generatedClass, generatedConstructor -
Method Summary
Methods inherited from class nl.pim16aap2.util.codegeneration.ClassGenerator
createBuilder, finishBuilder, finishBuilder, generate, getFormattedName, getGeneratedClass, getGeneratedConstructor, toString
-
Method Details
-
generateImpl
Description copied from class:ClassGeneratorThe implementation of the class generation code. This method is called byClassGenerator.generate()when needed.- Specified by:
generateImplin classClassGenerator- Throws:
Exception- When any kind of exception occurs during the generation process.
-
getBaseName
Description copied from class:ClassGeneratorRetrieves 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:
getBaseNamein classClassGenerator- Returns:
- The base name of the class to be generated.
-
getConstructorArgumentTypes
Description copied from class:ClassGeneratorRetrieves the array of parameter types as the generated constructor takes them.- Specified by:
getConstructorArgumentTypesin classClassGenerator- Returns:
- The array of parameter types of the generated constructor.
-