Fully packet based PetsAPI (1.8 - 1.21) using PacketEvents and EntityLib
Important
Project version is required to be Java 16 at least!
- Clone repo
run mvn install
- Add this to pom.xml
<dependency> <groupId>dev.lrxh</groupId> <artifactId>PetsAPI</artifactId> <version>1.0.0</version> </dependency>
PetsAPI.init(this)
Player player = ...
PlayerPet pet = new PlayerPet(SkinData.ofPlayerName(player.getName()));
pet.spawn(player);
// Example Animal Head
Player player = ...
PlayerPet pet = new PlayerPet(AnimalSkinData.COW);
pet.setLookAtPlayer(true);
pet.spawn(player);
// Remove player pets
for (Pet pet : PetsAPI.getPets(player)) {
pet.remove();
}
pet. // See all methods