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)