📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • Creating a new Module
  • Module functions
  • Referencing from within the object
  • Getting a existing Module
  • getName(): String
  • getDescription(): String
  • enabled(): boolean
  • toggle(): void
  • enable(): void
  • disable(): void
  • getSetting(String name): Setting
  1. Objects
  2. Breeze

Module

The module object

Last updated 9 months ago

Creating a new Module

Creating a module can be done by using

breeze.register("ModuleName", "Module description", {
    'enable': function() {
        //code goes here
    },
    'disable': function() {
        //code goes here
    },
    'settingChanged' function() {
        //code goes here
    }
});

Module functions

enable

This function gets called whenever the module is enabled.

disable

This function gets called whenever the module is disabled.

settingChanged

This function gets called whenever one of the settings in the module is changed by the user.

Referencing from within the object

Inside of the object you supply when registering the module you can reference the module itself directly via this.module

breeze.register("ModuleName", "Module description", {
    'enable': function() {
        breeze.log(this.module.getName() + "has now been enabled!")
        
        //time to turn it off again
        this.module.disable()
    },
});

Getting a existing Module

getName(): String

Returns the name of the module.

getDescription(): String

Returns the description of the module.

enabled(): boolean

Tells you if the module is enabled or not.

toggle(): void

Will enable the module if its currently disabled, if the module is enabled already it will turn the module off.

enable(): void

Enables the module, if the module is already enabled this won't do anything.

disable(): void

Disables the module, if the module is already disabled this won't do anything

Will get the setting from the module that matches the name given, if the setting can not be found this will return null.

To get the object for a existing module in breeze you can use

getSetting(String name):

Setting
Events
Settings
breeze.registerModule(String name, String description, Object obj): Module
breeze.getModule(String name): Module