Class ClassTransformer

java.lang.Object
com.avrix.agent.ClassTransformer
Direct Known Subclasses:
PatchBanSteamIDCommand, PatchBanUserCommand, PatchChatServer, PatchGameKeyboard, PatchGameServer, PatchGameWindow, PatchKickUserCommand, PatchLuaEventManager, PatchLuaManager, PatchLuaManagerExposer, PatchQuitCommand, PatchRenderThread, PatchSpriteRenderer, PatchTranslator, PatchUIManager, PatchUnbanSteamIDCommand, PatchUnbanUserCommand, PatchZLogger

public abstract class ClassTransformer extends Object
A class for transforming Java classes at runtime.
  • Constructor Details

    • ClassTransformer

      public ClassTransformer(String className)
      Constructor for creating a ClassTransformer object.
      Parameters:
      className - the full name of the class that needs to be modified, e.g. 'zombie.GameWindow'
  • Method Details

    • getModifierBuilder

      public final ClassModifier.ClassModifierBuilder getModifierBuilder()
      Gets the ClassModifier.ClassModifierBuilder for building class modifiers.
      Returns:
      the ClassModifier.ClassModifierBuilder instance.
    • getClassName

      public final String getClassName()
      Getting the full name of the class that needs to be modified.
      Returns:
      the full class name, e.g. 'zombie.GameWindow'
    • modifyClass

      public abstract void modifyClass()
      Method for performing class modification. The implementing method must contain the logic for modifying the target class.
    • applyModifications

      public final void applyModifications()
      Applying modifications to the class being modified. Called after the modifyClass() method is called