Luis C.M
c8a8e866cb
IPos:
...
-Added crossProduct(IPos), divide(scalar), and to/FromLong functions.
NpcAPI:
-Added getAllInBox(from,to)
IBlock:
-Added setPosition functions
IBlock, IPos, IEntity, IWorld: -Added a readable toString() function
2022-11-06 15:08:58 -06:00
Luis C.M
084e6e4149
ScriptBlock:
...
-More checks for null tile entities.
2022-11-06 01:36:01 -06:00
Luis C.M
0291fd44a5
Merge remote-tracking branch 'origin/louis' into dev
2022-11-06 01:27:45 -06: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
Luis C.M
5cb5770a20
Fixed NullPointerException crash from breaking blocks that have no tile entities.
2022-11-06 01:23:54 -06:00
Luis C.M
66edbcea80
Merge remote-tracking branch 'origin/dev' into dev
...
# Conflicts:
# src/main/java/noppes/npcs/scripted/NpcAPI.java
# src/main/java/noppes/npcs/scripted/ScriptWorld.java
# src/main/java/noppes/npcs/scripted/interfaces/AbstractNpcAPI.java
2022-11-06 01:00:47 -06:00
Luis C.M
3fd962289c
NpcAPI:
...
-Added getPlayer() function
-Added getChunkLoadingNPCs function
-Added getCurrentPlayerCount, getMaxPlayers, and kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions
2022-11-06 01:59:34 -05: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
Luis C.M
112e82a09d
Made NPC projectile and death events cancellable.
2022-11-05 04:21:30 -05:00
Luis C.M
6782a5b9ba
Made NPC dialog event cancellable
2022-11-05 04:19:03 -05:00
c0508383
2917de36c0
ScriptBlock:
...
-Changed ScriptBlockPos to IPos type for bPos parameter
2022-09-07 23:06:57 -05:00
c0508383
558bc70bf5
ScriptBlock:
...
-Fixed tile entity dupe.
2022-09-07 23:06:15 -05:00
c0508383
05b84b467c
IWorld & IPos: Removed getMCBlockPos() to better organize NpcAPI. Removed unnecessary imports.
...
ITileEntity: Removed unnecessary imports.
2022-08-16 11:43:46 -05:00
c0508383
0f5df933ae
IPlayer:
...
-Added kick function
2022-08-02 13:50:18 -05:00
c0508383
2819c76d0a
ICustomNpc:
...
-Fix for setRetaliateType
2022-07-27 18:47:20 -05:00
c0508383
9c9e9c0a40
IPlayer:
...
-Added dialog functions that use IDialog objects as parameters.
-Added quest functions that use IQuest objects as parameters.
2022-07-14 20:18:45 -05:00
c0508383
d1762654ba
ISound:
...
-Allows for the changing of several sound attributes, including volume, pitch, repeating, etc.
NpcAPI, IPlayer, IWorld:
-Added more sound functions, with sounds that can be stopped and started based on an ID.
2022-07-13 19:27:27 -05:00
c0508383
b4f112ee89
IWorld:
...
-Fixed offset not working right on rayCastEntities()
2022-07-11 21:16:32 -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
e048496e4d
IParticle:
...
-Replaced spawnOnEntity and spawnInWorld with a single function name "spawn". Deprecated the others.
2022-07-08 12:03:15 -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
22e01bba1f
CustomNpcs:
...
-Added ScriptOpsOnly config, which controls if only ops can see and edit scripts.
-Added ScriptDevs config, a list of the UUIDs of players who should be able to see and edit scripts. If left empty and ScriptOpsOnly is false, everyone can see and edit scripts with a scripter.
IPlayer:
-Added isScriptDev() function to check if the player can see and edit scripts.
2022-07-07 16:22:50 -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
c0508383
c554251165
IPlayer:
...
-Added getLookingAtEntities
2022-07-07 13:05:56 -05:00
c0508383
12a3fffeab
PlayerEvent:
...
-Added PlayerEvent.AttackEvent & PlayerEvent.AttackedEvent, preventing any knockback from happening from attacks.
2022-07-07 12:49:30 -05:00
c0508383
9bd644f84a
PlayerEvent.MouseClickedEvent:
...
-Added isCtrlPressed, isAltPressed, isShiftPressed, isMetaPressed, and keysDown fields for button combinations.
2022-07-06 18:41:39 -05:00
c0508383
1c10f2ebf1
IWorld:
...
-getEntitiesNear sorts by which one is nearest to the position.
2022-07-06 18:12:32 -05:00
c0508383
6a852d9578
IPlayer:
...
-Added getLookPos, which uses the rayCastPos function in IWorld.
IWorld:
-Added getEntitiesNear function with 3 double or one IPos parameter, and a range parameter for checking what entities are near a position.
-Added rayCastPos, for cases where rayCastBlock returns null.
2022-07-06 17:51:26 -05:00
c0508383
a3b5f5993e
IWorld:
...
-Implemented spawnClone() with a boolean parameter to check entity protection from mods & plugins correctly (for real this time).
ICloneHandler:
-Implemented ignoreProtection boolean value for the spawn() function.
2022-07-06 01:29:43 -07:00
c0508383
a4585fdf4d
IWorld:
...
-Undid previous commit, not implemented correctly.
2022-07-06 00:24:14 -07:00
c0508383
43e41a0e95
IWorld:
...
-Added new spawnClone function with an extra boolean parameter to check for spawn protection or not.
2022-07-05 22:55:38 -07:00
c0508383
bd0d7cecf9
Fixed misspelling of "setRangedRange" from "setRangedRage". Kept old function name as a deprecated function not visible in the interface.
2022-07-05 16:31:39 -07:00
Luis C.M
cc61684fb8
Fixed custom item console
2022-07-03 09:46:40 -05:00
Luis C.M
c8a3b7825d
Particle packets are only sent to players in the particle's world now.
2022-07-02 13:07:23 -05:00
Luis C.M
79a703429c
ISkinOverlay:
...
-Removed set/getLocation, only supposed to be used during rendering.
2022-07-02 06:22:43 -05:00
Luis C.M
1cdc47864b
ISkinOverlay:
...
-Removed set/getLocation, only supposed to be used during rendering.
2022-07-02 03:23:24 -05:00
Luis C.M
b51c47c2d4
IItemCustom:
...
-Added setArmorType
2022-07-02 03:15:38 -05:00
Luis C.M
4b7d8e744e
ScriptCustomItem:
...
-Increased max stack size to 127.
2022-07-02 03:14:06 -05:00
Luis C.M
f3f209820c
IParticle:
...
-Added glow option.
2022-07-02 03:10:11 -05:00
Luis C.M
256ba5c599
Removed ScriptFaction in place of IFaction.
2022-07-01 23:26:47 -05:00
Luis C.M
496961ccc5
NpcAPI:
...
-Added getObjectSize() function for calculating object sizes.
RenderCNPCPlayer:
-Added gender & age/child compatibility for DBC rendering.
2022-07-01 17:02:40 -05:00
Luis C.M
e65088f796
INaturalSpawnsHandler:
...
Added a way to add and remove specific spawn data.
2022-06-29 14:51:09 -05:00
Luis C.M
dd700c677b
Natural Spawn Entries:
...
-Added GUI options for new natural spawn attributes.
-Added 4 more entity options
-Fixed natural spawning not working at night
2022-06-29 14:21:55 -05:00
Luis C.M
55b21de050
Added drowning types:
...
In Air,
In Water,
or
Never
to CNPCs.
2022-06-29 12:21:30 -05:00
Luis C.M
4094f3e851
Added 4 different spawning options, and spawning height max and mins to natural spawn entries.
2022-06-29 03:36:52 -05:00
Luis C.M
7d0b124422
Npc API:
...
-Added natural spawn controller support
2022-06-29 00:06:38 -05:00
Luis C.M
58932ffe55
Fixes to scripted item rendering.
...
IItemCustom:
-Removed unnecessary setters.
2022-06-28 04:39:50 -05:00