src/main/java/me/hyfe/simplespigot/item/SpigotItem.java
/**
         * Sets the item to a head and sets it's texture.
         *
         * @param base64OrUsername Base64 texture or username to get texture from.
         * @return The Builder.
         */
Sets the item to a head and sets it's texture.
@param base64OrUsername Base64 texture or username to get texture from.
@return The Builder.
Sets the item to a head and sets it ' s texture . @param base64OrUsername Base64 texture or username to get texture from . @return The Builder .
public Builder head(String base64OrUsername) {
            String materialName = ServerVersion.isOver_V1_12() ? "PLAYER_HEAD" : "SKULL_ITEM";
            this.itemStack = new ItemStack(Material.valueOf(materialName), 1, (byte) 3);
            this.data = 3;
            this.isHead = true;
            this.base64Head = base64OrUsername.length() > 16 ? base64OrUsername : null;
            this.ownerHead = base64OrUsername.length() < 17 ? base64OrUsername : null;
            return this;
        }
public Builder head ( String base64OrUsername ) { String materialName = ServerVersion . isOver_V1_12 ( ) ? "PLAYER_HEAD" : "SKULL_ITEM" ; this . itemStack = new ItemStack ( Material . valueOf ( materialName ) , 1 , ( byte ) 3 ) ; this . data = 3 ; this . isHead = true ; this . base64Head = base64OrUsername . length ( ) > 16 ? base64OrUsername : null ; this . ownerHead = base64OrUsername . length ( ) < 17 ? base64OrUsername : null ; return this ; }
Sets the item to a head and sets it's texture.
Sets the item to a head and sets it ' s texture .