Render Documentation

This class focuses on player apparel, specifically a player’s skins and capes.

This does not include optifine capes.

Basic Example:

import aiomojang
import asyncio

async def get_user_skins():
    # If you want a user's cape, you can run aiomojang.Cape() instead.
    skin = aiomojang.Skin("Hypermnesia")
    # This may be confusing, but by passing in a user's name, you are getting their skin.
    # You can get a skins url using skin.url()
    # If you only need the last part of the link, you can do skin.id()
    return await skin.url()

asyncio.run(get_user_skins())  # Running the function

Render

The base class, it handles things other than skins and capes such as:

  • A user’s uuid.

  • A user’s name

  • Date the information was accessed.

  • The base64 signature if enabled.

class aiomojang.renders.Render(player, unsigned: Optional[bool] = True)

Gets information on a skin or cape.

player

The user’s profile you want to search up.

Type

str

unsigned

If the request is unsigned.

Type

bool

async profile_id()

Returns the profile’s uuid for the user being requested. :returns: The players uuid. :rtype: str

async profile_name()

Returns the profile’s name for the user being requested. :returns: The players name. :rtype: str

async raw()

Returns raw json for a skin or a cape :returns: The raw data. :rtype: dict

async signature()

Returns the requester’s base64 signature.

Will only work if unsigned is False. :returns: The base64 signature. :rtype: str

async timestamp()

Returns the formatted timestamp in which the data has been requested at. :returns: The formatted timestamp. :rtype: str

Skin

This class focuses on the player’s skin.

class aiomojang.renders.Skin(player, unsigned: Optional[bool] = True)
async id()

Returns the skin render id.

Returns

The id for the skin.

Return type

str

async url()

Returns the skin render url.

Returns

The url for the skin.

Return type

str

Cape

This class focuses on the player’s cape.

class aiomojang.renders.Cape(player, unsigned: Optional[bool] = True)
async id()

Returns the cape render id.

Returns

The id for the cape.

Return type

str

async url()

Returns the cape render url.

Returns

The render url for the cape.

Return type

str