Placeholder | Description / Usage |
Code (Text):
TPM.plugin()
|
Returns the running TexturepackManager plugin instance (for advanced integrations). |
Code (Text):
TPM.tokensToGlyphs(":heart: Hello")
|
Converts
Code (Text):
:token:
Code (Text):
emojis/emoji_sizes.yml
|
Code (Text):
TPM.items()
|
Entry point for item API (see methods below). |
Code (Text):
TPM.blocks()
|
Entry point for block API (see methods below). |
Code (Text):
TPM.furniture()
|
Entry point for furniture API (see methods below). |
Code (Text):
TPM.font()
|
Entry point for emoji/font image helpers (see methods below). |
Code (Text):
TPM.sounds()
|
Entry point for sound helpers (see methods below). |
Code (Text):
TPM.totems()
|
Entry point for totem animation helpers (see methods below). |
Code (Text):
TPM.currentPackUrl()
|
Returns the URL of the currently built pack, if any. |
Code (Text):
TPM.currentPackSha1()
|
Returns the SHA-1 of the current pack, if any (may be
Code (Text):
null
|
Code (Text):
TpmItems#get("sky_pick")
|
Returns
Code (Text):
Optional<TpmStack>
Code (Text):
TPM.items().get("id").ifPresent(s -> s.give(player, 1));
|
Code (Text):
TpmItems#getItemStack("id")
|
Returns
Code (Text):
Optional<ItemStack>
|
Code (Text):
TpmItems#isCustom(itemStack)
|
True if the stack matches a TPM custom item (via Material + CustomModelData lookup). |
Code (Text):
TpmItems#idOf(itemStack)
|
Best-effort reverse lookup of the custom item id from Material + CustomModelData. |
Code (Text):
TpmStack#getId()
|
Returns the TPM item id used to create this stack. |
Code (Text):
TpmStack#getItemStack()
|
Returns a cloneable Bukkit
Code (Text):
ItemStack
|
Code (Text):
TpmStack#give(player, amount)
|
Convenience: gives the item to a player (sets amount and adds to inventory). |
Code (Text):
TpmBlocks#place(location, "sky_ore")
|
Places a custom block at a location; returns true on success. |
Code (Text):
TpmBlocks#isCustom(block)
|
True if the world block is managed by TPM (when available via BlockManager). |
Code (Text):
TpmBlocks#idOf(block)
|
Returns the custom block id (if exposed by the BlockManager), otherwise
Code (Text):
null
|
Code (Text):
TpmFurniture#spawn(location, "chair_oak")
|
Spawns furniture; returns
Code (Text):
Optional<UUID>
|
Code (Text):
TpmFurniture#isFurniture(entity)
|
True if the entity is a TPM furniture instance (when supported by FurnitureManager). |
Code (Text):
TpmFont#image("heart")
|
Returns a
Code (Text):
TpmFontImage
|
Code (Text):
TpmFontImage#getString()
|
Returns the single-character glyph to append into text strings. |
Code (Text):
TpmFontImage#height()
|
Resolved render height for the emoji (from
Code (Text):
emoji_sizes.yml
|
Code (Text):
TpmFontImage#ascent()
|
Resolved ascent for the emoji (from
Code (Text):
emoji_sizes.yml
|
Code (Text):
TpmFontImage#isPresent()
|
True if the emoji exists (glyph mapped); false if unknown token. |
Code (Text):
TPM.sounds().play(player, "bell_ding")
|
Plays a compiled TPM sound event to a player (via
Code (Text):
SoundService
|
Code (Text):
TPM.sounds().exists("id")
|
True if a sound id is registered/compiled. |
Code (Text):
TPM.sounds().allIds()
|
Returns all loaded sound ids. |
Code (Text):
TPM.playTotem(player, "level-up")
|
Triggers the totem animation using the custom model mapped to the given id. Requires that totem PNGs were compiled and assigned CMDs. |
Code (Text):
ProtectedPackService#signedUrlFor(uuid, ip)
|
(If protection enabled) Builds a short-lived, IP-bound signed URL to the current
Code (Text):
pack.zip
|