3.0.0-beta4
Pre-release
Pre-release
NPC-Lib Version 3 Beta 4
Changes and fixes in this release:
- The NPC class now has special methods to generate certain outgoing packets directly instead of taking the detour via the PlatformPacketAdapter:
playAnimation
andchangeMetadata
- The bundled PacketEvents version has been updated to support 1.19.4
- The library now fully supports Folia (when running on Folia, all tasks are scheduled fully asynchronously, they do not use a scheduler provided by Folia. This allows reuse of the new async scheduler implementation for new platforms or similar bukkit forks)
Dependency
The dependency can be loaded from 2 repositories: https://jitpack.io/
or https://repository.derklaro.dev/releases/
. The group id for the dependency is com.github.juliarn.NPC-Lib
.
All modules:
Module artifact name | Module description |
---|---|
npc-lib-api | General NPC-Lib API without platform specific class usage. This module should be used when the underlying implementation does not matter. |
npc-lib-common | Abstract implementation of the api module. This module should be used when a new platform implementation is made. |
npc-lib-bukkit | Platform specific implementation for Bukkit. This module implements the complete API (and common) to support Bukkit (and forks). |
npc-lib-minestom | Platform specific implementation for Minestom. This module implements the complete API (and common) to support Minestom (and forks). |
npc-lib-labymod | This module contains helper methods for accessing LabyMod NPC features (such as emotes and stickers). See the LabyMod documentation for more information. |
How to include a module
Maven:
<dependency>
<groupId>com.github.juliarn.NPC-Lib</groupId>
<artifactId><insert module name from list above></artifactId>
<version>3.0.0-beta4</version>
<scope>compile</scope>
</dependency>
Gradle:
implementation("com.github.juliarn.NPC-Lib", "<insert module name from list above>", "3.0.0-beta4")
Bug reports & Feature requests
If you found an issue with v3 or want to request a new feature please do so on the issue tracker.