Releases: ChatTriggers/ChatTriggers
Releases · ChatTriggers/ChatTriggers
2.2.1
- Fix certificate issue on older Java versions that caused issues with importing (@MisterCheezeCake)
- Fix modules sometimes evaluating twice when imported from different locations
- Fix trigger priorities sometimes not working correctly (@camnwalter)
- Color required modules gray in the
/ct modules
menu (@NoahTheNerd)
2.2.0
- Added extra parameter to
Image.fromUrl
to control the cached image name - Added
FileLib.{encodeBase64,decodeBase64}
(@Debuggingss) - Added
Gui.register{Opened,Closed}
(@DalwynWasTaken) - Added
Player.isMoving
(@realfork) - Added ability to filter the class type using
.setFilteredClass(Class)
for the following triggers:renderEntity
,postRenderEntity
,renderTileEntity
,postRenderTileEntity
(@Marvinschs) - Added a top-level
NBT
helper to make parsing NBT easier (@camnwalter) - Added
KeyBind.{unregisterKeyPress,unregisterKeyRelease,unregisterKeyDown}()
(@Marvinschs) - Added
Display.{unregisterClicked,unregisterHovered,unregisterMouseLeave,unregisterDragged}()
(@Marvinschs) - Added ability to pass
Class<*>
objects which inherit from Forge'sEvent
class into the first parameter ofregister
. This allows you to register for arbitrary events. - Show module dependencies on the module graph GUI (@camnwalter)
- Fixed step trigger firing a bunch of extra times when registering it after a call to unregister.
- Fixed links in
TextComponent
instances not being clickable (@camnwalter ) - Fixed
ChatLib.say
not triggeringmessageSent
(@Debuggingss) - Fixed not being able to
/ct load
after a/ct unload
(@camnwalter) - Fixed not having to manually
/ct load
after importing a module with a .jar file (@camnwalter)
2.1.5
- Added
Image.destroy()
to clean up an image's texture from memory (@Soopyboo32) - Added
Image(java.io.File)
(@Squagward) - Added a method to perform class filtering for packet triggers:
register('packetSent', () => {}).setPacketClass(MyPacketClass.class); register('packetSent', () => {}).setPacketClasses([A.class, B.class, C.class]);
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
Additions
- Added
Display::setRegisterType("RENDER_OVERLAY_EVENT" | "POST_GUI_RENDER_EVENT")
to control when the GUI draws (@DalwynWasTaken) - Added
Particle::getColor()
(@Debuggingss) - Added
FileLib::{delete,deleteDirectory}()
(@Squagward) - Added
Client.currentGui.getSlotUnderMouse()
, which returns a new CTSlot
wrapper class (@appable0) - Added
Item::{setName, setLore}()
(@Squagward) - Added support for newlines in
Renderer.drawStringWithShadow
(@Squagward) - Added
Client.connect(ip: String)
(@Squagward) - Added
end
argument toprint
so the newline can be omitted (@Debuggingss)- E.g.:
print('a string', '')
- E.g.:
- New triggers:
renderTitle(title: String, subtitle: String, event: Event)
triggers when a title is drawn to the screen (@Squagward)renderSlot(slot: Slot, gui: GuiContainer, event: Event)
triggers when a slot is being drawn (@appable0)renderItemIntoGui(item: Item, x: Int, y: Int, event: Event)
triggers when an item is drawn into a gui (@appable0)renderItemOverlayIntoGui(item: Item, x: Int, y: Int, event: Event)
triggers when an item overlay (stack count/damage) is drawn into a gui (@appable0)renderHand(event: Event)
triggers for the hand drawing, can be cancelled (@Squagward)
Fixes/Changes:
- Media keys no longer trigger all keybinds (@Squagward)
chatComponentClicked
no longer triggers more often than it should (@Squagward)- A criteria now counts as formatted if it contains the
§
character (@Squagward) - Deleting modules with jar files is now possible (@Squagward)
gameLoad
now properly triggers on game load (previously it would only trigger on/ct load
) (@Debuggingss)- Fixed cast error in
Sound
(@Squagward) - Removed unused
/generatebindings
command and associated logic (@Debuggingss) - Fixed slots being incorrect for certain GUIs (@Squagward)
- Enable color in the console by default (@Debuggingss)
2.0.4
Additions:
- Add
renderScoreboard
trigger (@Squagward) - Add
Scoreboard.setTitle
(@Squagward) - Add
Player{,MP}.getTeam()
(@Squagward) - Add
World.stopAllSounds()
(@Squagward) - Add
NBTTagList.insertTag()
(@Squagward) - Add
Scoreboard.getScoreboard
() andScoreboard.getSidebar()
(@Squagward) - Add a bunch of
NBTTagCompound
setters (@Squagward) - Add ability for
Display
to usepostGuiRender
trigger (@DalwynWasTaken)
Changes:
DisplayLine.addLine
now returns itself for method chaining (@DalwynWasTaken)
Fixes:
- Fixed invokeJS (@Squagward)
- Only trigger
Gui
scroll when open, fix NPE (@Squagward) - Fixed
Sound
cast error (@Squagward) - Fixed
Display
clicking/dragging when using alignment (@Squagward)