Commit Graph
53 Commits
Author SHA1 Message Date
bigguy345 e13c6762f3 Added Scheduled Tasks system for NPC scripting.
Allows for scripting the scheduling of runnable methods in sequence within the NPC's AI

An example sequence of tasks:
1. Dashes towards player (might take 3-5 seconds, doesn't matter, task durations are dynamic so it can take as long as it needs).
2. Punches player away
3. Waits 10 ticks - Fires a ki blast
4. Teleports behind player
5. Knocks player out
2025-03-03 23:59:48 +02:00
Luis C.M. 8ced18ec84 Animation events API changes 2025-01-22 15:31:11 -06:00
luisc 9fdd2c667e Fixed changes from api-changes being dragged into the dev branch. Created a new api-changes branch in the api repo. 2024-09-24 13:16:06 -05:00
Kam 9f59b8843e Revert "Implemented animation events and made some event classes abstract."
This reverts commit cd180e4520.
2024-09-23 13:56:50 -04:00
Luis C.M. 73d88e627b Fixed getters for flying, don't take a parameter anymore. 2024-09-02 21:41:32 -05:00
Luis C.M cd180e4520 Implemented animation events and made some event classes abstract. 2024-03-24 17:03:58 -05:00
Kam 8acb2a25a0 Get Left Item Typo Fix 2024-03-20 13:22:59 -04:00
Kam 9116956474 Remove All FernFlower references 2024-03-17 23:17:19 -04:00
Kam 8eaf18696b Fix Combat Policy Comments 2024-03-13 20:44:52 -04:00
Kam c570d20fc8 IMark 2024-02-21 03:02:08 -05:00
Kam d497bb7045 Create IVillager.java 2024-02-20 21:05:38 -05:00
Kam a520cc6470 Optimize Imports 2024-02-15 17:54:18 -05:00
Kam 021a35e25d SwingWarmup API 2024-02-12 03:14:35 -05:00
Kam a5dcba72db New Attack Functions
- Knockback [GET/SET]
- Melee Range [GET/SET]
- Aggro Range [GET/SET]
2024-02-10 18:22:58 -05:00
Kam 30a6c37277 Add Combat Policy changes to API 2024-01-25 20:17:46 -05:00
Kam 3f408997bb Merge branch 'dev' into experimental 2024-01-18 16:15:15 -05:00
Kam e3980ce217 IScreenSize 2024-01-18 16:14:52 -05:00
Kam 0b4432154b Wiki Changes to API 2024-01-18 16:08:17 -05:00
Kam fd31facd12 Add IProjectile and IProjectile Sub Events to API 2023-12-31 16:09:38 -05:00
Luis C.M 8c064246f8 Added line support for ICustomNpc 2023-12-03 20:48:36 -06:00
luisc 8a6a873a6d Merge remote-tracking branch 'origin/dev' into dev 2023-11-30 15:31:45 -06:00
luisc 67aa9e7cb3 Implemented get/setDialog functions for ICustomNpc. 2023-11-30 15:29:34 -06:00
Kam 0a125ec5e2 Update IEntity.java 2023-11-22 17:12:09 -05:00
Kam 1fac6adc21 HP 2023-07-26 18:22:26 -04:00
Luis C.M e637e30e43 IPos objects now use double values in calculations for distance, addition, cross product, etc. 2023-07-07 17:51:50 -05:00
Luis C.M 9571c852f6 IEntityLivingBase:
-Added functions to change maxHurtResistanceTime
2023-06-03 15:46:29 -05:00
Luis C.M f76a79bb52 ScriptLivingBase & ScriptWorld:
-Added additional IEntity[] ignoreEntities parameter to ignore those entities when creating lists.
-For ScriptLivingBase, the entity using getLookingAtEntities is ignored.
2023-06-01 22:02:26 -05:00
Luis C.M 8c61d07b10 ScriptWorld:
-Increased the accuracy of rayCastPos().
2023-05-31 23:59:11 -05:00
Luis C.M f07e76b567 IDBCPlayer:
-Created separate mastery functions for racial and non-racial forms.
2023-05-20 16:13:14 -05:00
Luis C.M c55c42c4f2 IDBCPlayer:
-Changed mastery functions to use a boolean for racial or non-racial forms.
2023-05-20 15:00:57 -05:00
Luis C.M 5685f9a0f8 IDBCPlayer:
-Implemented form mastery functions.
2023-04-14 15:42:34 -05:00
Luis C.M 97e163ec3c Added armwear functions 2023-03-17 04:34:13 -05:00
Luis C.M 141ce1e170 IModelData:
-Added hidePart() comment
2023-03-17 03:04:25 -05:00
Luis C.M a26ef47663 IModelData:
-Implemented hidePart() abd hidden() functions
2023-03-17 02:59:32 -05:00
Luis C.M 140b16d52f Moved model scale parts into a single ModelScale class, similar to ModelRotate.
Added NPC model data interfaces to the API.
2023-03-17 02:36:27 -05:00
Luis C.M b4ed688e61 IEntityItem added 2023-03-16 05:07:37 -05:00
Luis C.M c3a023021d Added IProjectile and its events. 2023-03-16 02:51:40 -05:00
Luis C.M 3570b3af0c IEntity:
-Added setDimension function for all entities (not just players now).
2023-03-15 19:17:39 -05:00
Luis C.M f97b9b98f0 IDBCPlayer:
-Had to remove getMaxMeleeStrength and getMeleeStrength functions.
2023-02-21 22:03:14 -06:00
Luis C.M 68cf06b247 IDBCPlayer:
-Made getMeleeStrength an overriding function to IEntityLivingBase
2023-02-21 12:55:03 -06:00
Luis C.M 861f7e3a6f IDBCPlayer:
-Added getMeleeDamage() and getMaxMeleeDamage() functions
2023-02-21 12:43:08 -06:00
Luis C.M 33e471871a Animation overhaul, along with animation changes to the API. 2023-01-16 13:53:14 -06:00
Luis C.M 1bff2eddfe Moved NPC puppet data to display data.
Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
2023-01-11 19:12:52 -06:00
KAMKEEL 8e7f085774 setMovingType and getMovingType 2023-01-08 17:32:12 -05:00
Luis C.M bbf27531eb Added setRotation(float rotationYaw, float rotationPitch) function for IEntity & ICustomNpc 2023-01-03 23:36:53 -06:00
Luis C.M 093dd81b9b Updated IEntityLivingBase with functions that already existed in ScriptLivingBase, but weren't in the interface. 2022-12-27 23:19:39 -06:00
Luis C.M d2601e5d57 Added a few more functions having to do with capturing picked up drops to IEntity. 2022-12-27 20:27:36 -06:00
Luis C.M 538c4393d1 IEntity & IWorld:
-Added getStoredDataKeys() & getTempDataKeys() functions.
2022-12-27 16:46:59 -06:00
Luis C.M 3546dfc3be Added more functions to IPlayer, IEntityLiving, IEntityLivingBase, and IAnimal. 2022-12-26 01:13:27 -06:00
Luis C.M f481602612 More fixes to global NPC scripts not executing on servers, and added more functions to IEntityLivingBase. 2022-12-24 01:46:43 -06:00