Commit Graph
374 Commits
Author SHA1 Message Date
Luis C.M a2c6f07185 ICustomGui:
-Added clear() function for clearing all components
2023-06-04 18:11:36 -05:00
Luis C.M ad9c1b418d Added scriptPlayerCache (no null pointers this time) 2023-06-04 11:02:59 -05:00
Kam 59e1950c70 Remove PlayerScript Cache 2023-06-03 23:07:48 -04:00
Luis C.M 065b5eba16 NpcAPI:
-Cached scripted player objects so their tempdata is persisted after death.
2023-06-03 16:55:03 -05:00
Luis C.M b21e79b5bb IEntityLivingBase:
-Added functions to change maxHurtResistanceTime
2023-06-03 15:46:29 -05:00
Luis C.M 3a6255d98f NpcAPI:
-New function to create IPos objects from a long
IPos:
-fromLong() now mutates the calling IPos object
2023-06-03 14:32:43 -05:00
Luis C.M 29fb8d1dcf ScriptItemStack, ScriptEntity, ScriptBlock, & ScriptBlockPos:
-Implemented equals() functions for comparing objects of these types
2023-06-03 00:34:07 -05:00
Luis C.M 826a90bd6d IItemStack:
-New itemHash() function for comparing new instances of script item stacks for the same item.
2023-06-03 00:02:37 -05:00
Luis C.M 6e4083a9cc Increased cache time for item stacks 2023-06-02 23:58:04 -05:00
Luis C.M 0c8a44ead3 Added scriptItemCache to clearCache function 2023-06-02 23:30:23 -05:00
Luis C.M ac98053bf4 Merge branch 'patch' into dev 2023-06-02 17:26:59 -05:00
Luis C.M dd7714350d ScriptWorld:
-Added functions from patch
2023-06-02 17:17:00 -05:00
Luis C.M ed6e09a617 Merge branch 'patch' into dev 2023-06-01 22:02:44 -05:00
Luis C.M b17a425dd8 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:27 -05:00
Luis C.M 0692c4362f ScriptWorld:
-Made offset parameter for rayCastEntities() have a use again
2023-06-01 21:29:29 -05:00
Luis C.M 414818ab8d ScriptWorld:
-Made rayCastEntities() use a function similar to rayCastPos() to create its entity list.
2023-06-01 21:24:59 -05:00
Luis C.M b191ede19c Merge branch 'patch' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/fx/CustomFX.java
2023-06-01 18:15:54 -05:00
Luis C.M 6febeeea02 ScriptCustomItem:
-Fixed custom item visually disappearing after editing a script.
2023-06-01 18:12:15 -05:00
Luis C.M f5ac14b93e Merge branch 'patch' into dev
# Conflicts:
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiButton.java
#	src/main/java/noppes/npcs/client/gui/custom/components/CustomGuiTexturedRect.java
#	src/main/java/noppes/npcs/client/renderer/customitem/CustomItemRenderer.java
2023-06-01 16:35:04 -05:00
Luis C.M 01339e7baf ScriptLivingBase:
-Reverted previous change, not worth the inaccuracies it would cause on servers
2023-06-01 00:49:33 -05:00
Luis C.M 62ee42a23d ScriptLivingBase:
-Slightly improved getLookingAtPos() results
2023-06-01 00:36:40 -05:00
Luis C.M a8a0528275 ScriptWorld:
-Increased the accuracy of rayCastPos().
2023-05-31 23:59:11 -05:00
Luis C.M 7000b525f3 Fixed entity custom item rendering, and rendering of textures for custom GUI buttons and rectangles. 2023-05-31 18:55:06 -05:00
Luis C.M 118d79f3ad Added synchronization blocks to functions retrieving objects from CacheHashMaps and made the API use one for caching item stacks as well. 2023-05-31 00:35:57 -05:00
Luis C.M ab8e966f71 NpcAPI:
-Made item cache key removal a synchronized code block
2023-05-30 01:46:29 -05:00
Luis C.M 45a139ea68 NpcAPI:
-Further fix to concurrent modification exception
2023-05-30 01:37:08 -05:00
Luis C.M 65f3f8fc74 NpcAPI:
-Fixed concurrent modification exception
2023-05-30 01:33:18 -05:00
Luis C.M 500034f5f5 Merge branch 'patch' into dev 2023-05-30 01:28:02 -05:00
Luis C.M 895d20335f DataScript:
-Now doesn't create a new instance of NpcAPI
2023-05-30 01:27:34 -05:00
Luis C.M f260bb688a ScriptItemStack & NpcAPI:
-Created a cache for scripted item stacks
2023-05-30 01:25:20 -05:00
Luis C.M 1ce5b7b302 ScriptCustomItem:
-Fixed issue where NBT data was not being sent to the client side, caused by latest commit.
2023-05-30 00:56:39 -05:00
Luis C.M 7c4965d368 ScriptCustomItem:
-Made engine for containers also set on saving
2023-05-29 23:59:57 -05:00
Luis C.M a0adf0d7bd Fixed item toss event not being cancellable. Setting a script container's engine doesn't happen on every script call now, reducing lag. 2023-05-29 23:57:45 -05:00
Luis C.M 8df94aaf67 IDBCPlayer:
-Created separate mastery functions for racial and non-racial forms.
2023-05-20 16:13:15 -05:00
Luis C.M ed5cfad00d IDBCPlayer:
-Changed mastery functions to use a boolean for racial or non-racial forms.
2023-05-20 15:00:58 -05:00
Kam fa7fb7f734 ??? Fix Quest Cooldown Times ??? 2023-05-11 11:57:39 -04:00
Luis C.M a3de45cd55 IDBCPlayer:
-Implemented form mastery functions.
2023-04-14 15:42:34 -05:00
Luis C.M 8b0431340c Crash fixes for custom items 2023-04-12 00:18:43 -05:00
Luis C.M a10e427c1c More IPos implementations for IWorld and IPos scripted objects 2023-04-11 23:26:10 -05:00
Luis C.M 947314787f Removed console from NBT data for scripted items 2023-03-29 21:35:16 -05:00
Luis C.M ef4ec4aca0 Removed scala import 2023-03-29 02:19:04 -05:00
Luis C.M 84286794aa Fixes to recent custom item changes, width wasn't rendering properly 2023-03-19 02:32:09 -05:00
Luis C.M 39a40c9603 Fixed URL support for scripted items, weird 3d visibility bug still present that needs to be fixed. 2023-03-19 02:04:47 -05:00
Luis C.M 80352741b9 Fixed custom gui slot behavior 2023-03-18 15:52:50 -05:00
Luis C.M e3405d22e9 Fixed null pointer exceptions from new custom gui slot commit. 2023-03-18 03:47:24 -05:00
Luis C.M 586c451f06 ICustomGui:
-Added IDs to custom GUI slots.
2023-03-18 03:04:46 -05:00
Luis C.M 6913cadc79 IModelData:
-Implemented hidePart() abd hidden() functions
2023-03-17 02:59:33 -05:00
Luis C.M f0b33cf913 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:28 -05:00
Luis C.M fd7f550316 IEntityItem added 2023-03-16 05:07:38 -05:00
Luis C.M fe780d69ee Added target lost event. Added all new NPC events to the old 1.7.10 script system. 2023-03-16 04:56:33 -05:00