AbstractStitchAddon

The base class for writing Stitch Addons.

Callable methods

boolean isEnabled()

  • This methods returns if the current current addons is enabled.

IStitchRenderer getRenderer()

  • This method returns a simplified instance of the Stitch renderer.

IStitchMovementUtil getMovementUtil()

  • This method returns a simplified instance of the Stitch movement util.

IStitchMathUtil getMathUtil()

  • This method returns a simplified instance of the Stitch math util.

IStitchSettingManager getSettings()

  • This method returns a simplified instance of the Stitch settings manager.

IStitch getStitch()

  • This method returns an instance of the Stitch instance.

Methods that can be overriden

void initialize()

  • This method gets called when an Addon is initialized.

void destroy()

  • This method gets called when an Addon is unloaded.

void onEnable()

  • This method gets called when the Addon is enabled.

void onDisable()

  • This method gets called when the Addon is disabled.

Events

void onPacketEvent(StitchPacketEvent)

  • This method gets called when a packet is received or sent to the server.

void onPlayerMotionEvent(StitchPlayerMotionEvent)

  • This method gets called before and after the player position packets are sent.

void onPlayerUpdateEvent()

  • This method gets called before the onUpdate method gets called in EntityPlayerSP.

void onPlayerMoveEvent(StitchPlayerMoveEvent)

  • This method gets called before the player moves.

void onRenderEvent(StitchRenderEvent)

  • This method gets called every frame.

void onPostProcessEvent(StitchPostProcessEvent)

  • This method gets called to apply Blur & Shadow effects.

void onRotationEvent(StitchRotationEvent)

  • This method gets called to set player rotations.

void onRenderPlayerEvent(StitchRenderPlayerEvent)

  • This method gets called before a player is rendered.

void onImGuiEvent()

  • This method gets called to render imgui content to the screen.

Last updated