Java Code Examples for java.util.UUID.hashCode()

The following are Jave code examples for showing how to use hashCode() of the java.util.UUID class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: DecompiledMinecraft   File: DefaultPlayerSkin.java   View Source Code Vote up 4 votes
/**
 * Checks if a players skin model is slim or the default. The Alex model is slime while the Steve model is default.
 */
private static boolean isSlimSkin(UUID playerUUID)
{
    return (playerUUID.hashCode() & 1) == 1;
}
 
Example 2
Project: BaseClient   File: DefaultPlayerSkin.java   View Source Code Vote up 4 votes
/**
 * Checks if a players skin model is slim or the default. The Alex model is slime while the Steve model is default.
 */
private static boolean isSlimSkin(UUID playerUUID)
{
    return (playerUUID.hashCode() & 1) == 1;
}
 
Example 3
Project: BaseClient   File: DefaultPlayerSkin.java   View Source Code Vote up 4 votes
/**
 * Checks if a players skin model is slim or the default. The Alex model is slime while the Steve model is default.
 */
private static boolean isSlimSkin(UUID playerUUID)
{
    return (playerUUID.hashCode() & 1) == 1;
}
 
Example 4
Project: Backmemed   File: DefaultPlayerSkin.java   View Source Code Vote up 4 votes
/**
 * Checks if a players skin model is slim or the default. The Alex model is slime while the Steve model is default.
 */
private static boolean isSlimSkin(UUID playerUUID)
{
    return (playerUUID.hashCode() & 1) == 1;
}
 
Example 5
Project: CustomWorldGen   File: DefaultPlayerSkin.java   View Source Code Vote up 4 votes
/**
 * Checks if a players skin model is slim or the default. The Alex model is slime while the Steve model is default.
 */
private static boolean isSlimSkin(UUID playerUUID)
{
    return (playerUUID.hashCode() & 1) == 1;
}