Luis C.M
699b24e467
More fixes to global NPC scripts not executing on servers, and added more functions to IEntityLivingBase.
2022-12-24 01:46:43 -06:00
Luis C.M
aa02e5dcc3
Fixed API interface errors, added casts for custom item script handlers in EventHooks, and added some event interfaces.
2022-11-23 23:59:01 -06:00
KAMKEEL
be9ae94163
Start API Branch
2022-11-15 15:25:53 -05:00
Luis C.M
8d3cd3fd82
Revert "Merge remote-tracking branch 'origin/dev' into dev"
...
This reverts commit 66edbcea80 , reversing
changes made to 3fd962289c .
2022-11-06 01:25:28 -06:00
KAMKEEL
6ae465c5d0
Revert "Added several more functions to pre-existing classes:"
...
This reverts commit e9a8f8cebc .
2022-11-06 00:10:04 -04:00
Luis C.M
e9a8f8cebc
Added several more functions to pre-existing classes:
...
-Spawner, Transport, Healer, Guard, Bard jobs received more functions.
-Added more functions to the transporter role.
-IRole: Added getNpc() function.
-IAnimal, IEntityLiving, and IEntityLivingBase received more functions from their MC counterparts.
-Nearly every function with that takes position/vector parameters now has an equivalent with IPos as a parameter instead.
2022-11-05 20:19:14 -05:00
c0508383
80916de553
IWorld:
...
-Added rayTraceEntities() functions, and added an offset parameter.
IEntityLivingBase:
-Made getLookingAtEntities() function use IWorld's rayTraceEntities() function, and added an offset parameter.
2022-07-10 23:17:17 -05:00
c0508383
1110748504
IBlock:
...
-Fixed canCollide function, added maxVolume parameter.
2022-07-07 21:17:44 -05:00
c0508383
d54035687c
IEntityLivingBase:
...
-Added stopOnBlock, stopOnLiquid, and stopOnCollision options for getLookingAtEntities()
IWorld:
-Added stopOnBlock, stopOnLiquid, and stopOnCollision options for rayCastBlock & rayCastPos
2022-07-07 20:49:03 -05:00
c0508383
4e5ed2d758
IEntityLivingBase:
...
-Fixed duplicate entity entries when using getLookingAtEntities()
2022-07-07 19:37:43 -05:00
c0508383
5fdef1cd0c
IPlayer:
...
-Removed vector functions, moved to IEntityLivingBase
IEntityLivingBase:
-Added vector functions from IPlayer
2022-07-07 13:58:08 -05:00
Luis C.M
cf33b90b26
Used interfaces in implementations instead of the real classes for most scripted classes.
2022-05-11 22:08:31 -05:00
Luis C.M
6896cec417
Every function in API classes that calls the main API class now calls the loaded API wrapper, renamed to NpcAPI, instead of the abstract class, renamed to AbstractNpcAPI.
2022-05-11 17:12:48 -05:00
Luis C.M
6dea5a1cbc
Interfaces have a file strucutre resembling the file structure of their implementing classes.
2022-05-11 16:43:14 -05:00
Luis C.M
26f5f86dca
Implemented Scripted Custom Items.
2022-05-11 01:10:31 -05:00
Luis C.M
d41b3b7a7e
ScriptEntity:
...
-Added setInvisible, setSneaking, setSprinting, and getUniqueID() functions.
ScriptLivingBase:
-Added getLookVec() function
ScriptPlayer:
-Added stopUsingItem(), clearItemInUse(), playSound(name,volume,pitch), mountEntity(entity), dropOneItem(shouldDropStack), canHarvestBlock(block), interactWith(entity) functions
2022-05-03 11:26:04 -05:00
KAMKEEL
e42c4cab7e
Update ScriptLivingBase.java
2022-02-05 20:35:44 -05:00
luisc
092b3ce0c1
Fixed overloaded hurt(damage,entity) function not working when an entity is to be hurt by a player
2022-01-22 22:50:01 -06:00
luisc
12333de3a1
knockback() function for ScriptEntity now *only* knocks the entity back instead of hitting it.
...
Flying NPC's get knocked back properly, and their vertical speed has been increased.
Flying NPC's vertical flying speed can be changed by npc.setFlySpeed(double speed) from ScriptNpc.
2021-12-06 00:10:10 -06:00
luisc
3c1bc30e44
Floor values are set for max health, combat regen, health regen, melee damage, and projectile damage when changing them now.
2021-12-04 12:46:53 -06:00
luisc
23686dc3b8
Enabled fly button in movement, and extended max values for several NPC attributes, converting some to floats and doubles.
...
NPCs fly with speed based on their movement speed now.
2021-12-03 00:49:10 -06:00
luisc
2ffa9bfcfa
Added setImmune() function to ScriptEntity.
2021-10-28 16:46:09 -05:00
luisc
27dce4a90a
Small parameter adjustment to ScriptLivingBase.hurt()
2021-10-25 01:07:31 -05:00
luisc
1478841098
Added hurt functions to ScriptLivingBase
2021-10-25 00:58:03 -05:00
luisc
72f2c3c60a
Implemented global Forge events. Reorganized NPC API files.
2021-10-18 06:33:39 -05:00