Neon Addons API
  • Introduction
    • Informations
    • Ways of writing Addons
      • Java "Scripting"
      • Normal Java "Project"
  • Examples
    • Simple Chams
    • Simple ESP
    • Simple Ground Spoof Flight
    • Text Rendering
    • Sending/Intercepting Packets
    • Settings
  • The API
    • Addon API
      • AbstractNeonAddon
      • Objects
        • Events
          • NeonEvent
          • NeonPacketEvent
          • NeonPlayerMotionEvent
          • NeonPlayerMoveEvent
          • NeonPostProcessEvent
          • NeonRenderEvent
          • NeonRenderPlayerEvent
          • NeonRotationEvent
          • NeonGameTickEvent
        • Interfaces
          • INeon
          • INeonModuleManager
          • INeonModule
          • INeonSettingManager
          • INeonRenderer
          • INeonRectanglePublisher
          • INeonRoundRectanglePublisher
          • INeonMathUtil
          • INeonMovementUtil
          • INeonRotationUtil
          • INeonUnsafeFunctions
        • Other Types
          • NeonFontType
          • NeonNotificationType
          • NeonPair
          • NeonMusicMetadata
          • NeonMusicType
Powered by GitBook
On this page
  1. Introduction
  2. Ways of writing Addons

Java "Scripting"

Simple example on how this method of writing addons work.

CustomAddon.java
@name("Custom Addon")
@author("Example Author")
@description("A custom addon")

// this makes the player float while also spoofing it's ground state
// also print the client's username in chat
public void onPlayerMotionEvent(NeonPlayerMotionEvent event) {
    if (!event.isPre()) return;

    event.setOnGround(true);
    mc.thePlayer.motionY = 0.0;

    getNeon().logChat(getNeon().getUsername());
}
PreviousWays of writing AddonsNextNormal Java "Project"

Last updated 6 months ago