PlayerHeads Compatibility Library v5.2.14 (For Developers)

Details

  • Filename
    PlayerHeads-compatibility-lib.jar
  • Uploaded by
  • Uploaded
    Feb 11, 2021
  • Size
    100.26 KB
  • Downloads
    46
  • MD5
    89e8a467fce7ee0ce62d0f40e7c5b2b7

Supported Bukkit Versions

  • 1.16
  • 1.15
  • 1.14
  • 1.13
  • 1.12
  • 1.11
  • 1.10
  • 1.9
  • 1.8.1
  • 1.8

Changelog

PlayerHeads Compatibility Library v5.2.14:

Added: CompatibleProfile.isValid(profile) method for determining if a profile is null or is empty (missing both of: name, UUID)
Added: hasRequiredFields to CompatibleProfile to determine if the profile is valid or empty.
Added: "clearProfile" Compatibility API method for clearing ownership/textures from heads.
Added: setblock methods to SkullDetails for setting a head block in the world.
Added: getFromEntity to SkullType to determine the legacy skulltype of a mob.
Added: legacyDataValue property to SkullType (explicitly-set value instead of implicit ordinal value)
Added: canDropInVanilla property to SkullType
Added: getKillerEntity method to Compatibility Provider which can perform projectile and tame ownership searching to determine a killer - in addition to the normal entity.getKiller().   Can return non-player killers.
Added: isCustomHead methods which check if an ID is set but username is unset (or the name contains a colon (:)) in order to detect decorative or other heads from external plugins.
Deprecated: Optional Profile APIs deprecated (use Profile or CompatibleProfile APIs instead)

Bugfix: prevent NPE when retrieving the profile from a 'boring' playerhead (add null check to providers, empty profile use)
Bugfix: correctly shade in paperapi-support (only used for Glowstone Servers), was broken in 5.2.13

 

Note: This library is not a plugin - it is intended for developers wanting to add support for heads to their own plugins without reliance on PlayerHeads and this contains all of the version-specific support libraries from PlayerHeads for your use.  More information (and how to use) can be found on the page for the first compatibility-lib version released.

 

Compatibility Documentation: https://crashdemons.github.io/PlayerHeads/

This library is also available as a Maven dependency called "PlayerHeads-compatibility-lib" and can be added to your project in similar to how the PlayerHeads-API is added.  Just, don't forget to shade the classes into your project.